-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sending a bolt12 offer a standardized part of fetchinvoice #1203
Comments
I don't understand why you'd like to mix Bolt 11 and Bolt 12 (and this most likely won't be implemented)? You can do all of this using Bolt 12 only and the refund flow? This is already specified in https://github.com/lightning/bolts/blob/master/12-offer-encoding.md#payment-flow-scenarios (see the "merchant-pays-user-flow"), doesn't that work for you? |
Thanks for the reply. Yes, this might be what I was looking for but I don't have the time at the moment. Closing this issue for now. I will look into this later and thanks again! |
As it is difficult to explain what I mean, I've written a bash shell lightning "game" (100% bolt12) that works between my CLN node (node 1, game) and CLN test node (node 2, player's wallet). The player always wins, only has to pay and never has to register :-) Here: cli1= cli2=
Is this really also possible with I've implemented this idea now in my lighnting game, playable with Phoenix wallet. Where the trick of sending ones lightning address could be done by the wallet, possibly only after crossing a checkbox. |
To explain better what I mean here a demonstration video of my modified spark-wallet, where someone pays 100 sats + 30 sats deposit and after a few days gets the deposit back. |
Allow any lightning wallet to include an offer in a standardized manner when paying a bolt11 invoice.
Let me give 2 examples where this is (very) useful.
A family goes on vacation to some country and rents an apartment for a week. The rent for that week will be $1000 but there is an obligatory deposit of $300 to cover the risk of damage during their stay. They book the apartment via a website, the website generates the bolt11 qr-code for $1300 and they pay it with their lightning wallet and the payment also includes the/an offer of that wallet. Now if they don't damage anything during their stay, the owner can pay back the $300 or less if there was some minor damage like breaking a cup. Since the wallet automatically included the offer, the family didn't had to insert any extra (complicated) information for the payback.
You play a lightning game where you can win some money, like my own game where you have to guess if the price of bitcoin will be higher of lower after a certain amount of time. Playing the game would go as follows:
Note that no registration was necessary to play the game, which always makes trying out a (lightning) game a bit annoying.
The text was updated successfully, but these errors were encountered: