mutiny-node icon indicating copy to clipboard operation
mutiny-node copied to clipboard

Bolt 12

Open benthecarman opened this issue 1 year ago • 3 comments

This can pay bolt 12 offers!

bolt12 made by the LSP:

lno1qgs0v8hw8d368q9yw7sx8tejk2aujlyll8cp7tzzyh5h8xyppqqqqqqgqvqcdgq2qenxzatrv46pvggrv64u366d5c0rr2xjc3fq6vw2hh6ce3f9p7z4v4ee0u7avfynjw9q

need to add tests that all the storage around bolt11 vs bolt12 is handled properly, probably some cleanup can be done too

benthecarman avatar Oct 25 '23 05:10 benthecarman

FYI, if you implement your own MessageRouter that simply copies the default one but uses your LSP's node id as the only intermediate node, then I believe two Mutiny users could pay each other without a direct connection assuming the LSP supports onion messages.

https://github.com/lightningdevkit/rust-lightning/blob/d2242f604dc7c5c51de8f5612274ca73c2bb809a/lightning/src/onion_message/messenger.rs#L206

jkczyz avatar Oct 26 '23 23:10 jkczyz

@jkczyz pusshed up what i have, isn't currently working however, gets this error image

benthecarman avatar Oct 27 '23 00:10 benthecarman

@jkczyz pusshed up what i have, isn't currently working however, gets this error image

Hmm... seems like you are getting an invoice at least. The failure is from trying to pay it. The "retry" portion of the message may be misleading though as it used for the initial send. Let's sync up tomorrow to debug.

jkczyz avatar Oct 27 '23 00:10 jkczyz