-
Notifications
You must be signed in to change notification settings - Fork 366
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
BOLT 12 Proof of Payment #3344
Comments
IIUC, for BOLT11 payments, the onus is on the user to maintain a copy of the invoice. Any reason why we wouldn't do the same for BOLT12 payments? It would require using |
Because using |
Just for proof of payment do you think that would be a nice idea to pop out the invoice through an event? and then also together with the payment completed notification? For payment proof what you need is that at some point you can get the invoice somewhere. Not sure if the case that I described is included with the |
Yea, we could have a separate event for it, but its definitely nicer for the user if we provide it all in one go, and I'm not sure its that much work to do so, just a question of piping the invoice through a few state machine states and popping it back out when we get the preimage. |
Since I am already going down this proof of payment rabbit hole in other projects, and Jeff isn’t looking into it yet, I could explore this task a bit further. |
We currently don't support proof of payment for sent BOLT 12 payments because the user needs the
Bolt12Invoice
in thePaymentSent
Event
. This will require a bit of involvement, we'll need to store theBolt12Invoice
in theChannelMonitorUpdate
s for sent payments so we can restore them if theChannelManager
is stale on reload. When we do this we should also includeDNSSECProof
objects from #3179 so that we get BIP 353 proof of payment too. cc @jkczyzThe text was updated successfully, but these errors were encountered: