You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In LUD-03 in the callback the LN 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:
- MUST check that the SHA2 256-bit hash in the `h` field exactly matches the hashed description.
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:
The (receiving side) LN Wallet must also provide the pre-image of the hashed description used in the Bolt11 payment request (aka LN invoice).
Thus LUD-03 would need to be extended, so that if a LN WALLET uses tag h in the generated Bolt11 payment request, it also MUST return the preimage of tag h in its callback.
LUD-03 should make this mandatory and introduce an additional GET parameter for the callback (in addition to already existing k1 and pr).
In
LUD-03in the callback theLN WALLETsend 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
his 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 Walletmust also provide the pre-image of the hashed description used in the Bolt11 payment request (aka LN invoice).LUD-03would need to be extended, so that if aLN WALLETuses taghin the generated Bolt11 payment request, it also MUST return the preimage of taghin its callback.LUD-03should make this mandatory and introduce an additional GET parameter for the callback (in addition to already existingk1andpr).