-
Notifications
You must be signed in to change notification settings - Fork 143
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
Proposal for LUD-03 spec addition: wallet must nod send an invoice with tag h
in callback
#206
Comments
Or as an alternative: we could require that |
Both service and wallet already know the preimage of the hashed description. It is the metadata. |
I'm talking about |
There is no description hash on |
Sorry, maybe I understood something wrong here. I was thinking of the following flow:
And I was thinking about this last step:
If it would return an invoice containing a hash (tag Did I get this flow wrong? |
The wallet shouldn't make an invoice containing a I mean, what if you owe me money for an ice cream and you ask me to give you an invoice, then I make an invoice with an NIP-06 has more structure to it, but even then nothing is guaranteed. |
Yeah, I understand. Also I don't assume that any currently existing wallet would include an Maybe we could add a suggestion to the I guess it's not important what actually is written in the description (that's subjective as you said) but more important that there is anything. I guess that's Rusty's concern with this. A node (or a node's external signer) might have interest in having at least some infos (for their internal transaction list, for bookkeeping, whatever..). |
The spec is bad, the description should be actually be defined in the spec as some templated string, otherwise it's useless and dangerous. Having a description helps no one as it will be paid blindly by the service. Rusty's concerns are not satisfied anyway. I used to agree with Rusty's point about having descriptions and signatures and paying attention to these things, but it's a waste of time, no one cares about the signatures or the descriptions. |
h
in callback
Yes, hmm.. You're right. It's the whole point of Nevertheless a wallet never should send an invoice with But it's in the interest of the wallet to receive the funds, so I guess no wallet has an incentive of doing so. As the spec already exists in this form, it might be useful to add this note, to LUD-03. I changed the title of this issue to reflect this. |
In
LUD-03
in the callback theLN WALLET
send a Bolt11 Lightning payment request (invoice).Bolt11 allows that a payment request might contain only a hash of the description (tag
h
)Bolt11 specifies that if the tag
h
is present in a payment request a lightning node:To be able to do so, a lightning node must learn the preimage together with the bolt11 payment request (containing a hashed description) before it can initiate a payment.
Consequence:
LN Wallet
must also provide the pre-image of the hashed description used in the Bolt11 payment request (aka LN invoice).LUD-03
would need to be extended, so that if aLN WALLET
uses tagh
in the generated Bolt11 payment request, it also MUST return the preimage of tagh
in its callback.LUD-03
should make this mandatory and introduce an additional GET parameter for the callback (in addition to already existingk1
andpr
).The text was updated successfully, but these errors were encountered: