Forward k1 session token in GetLiveDebitRequests for ndebit #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
This is the Lightning.Pub side of the k1 session token feature. See lamassu-next#23 for the full proposal.
Problem
When a wallet sends a debit request (Kind 21002) after scanning an ndebit QR, Lightning.Pub forwards the request to the ATM via
GetLiveDebitRequests. Currently there's no session identifier, so the ATM must match requests by amount (which has edge cases with concurrent sessions).Proposed Change
When the CLINK spec adds an optional
k1parameter to ndebit:Lightning.Pub needs to:
k1in incoming debit request events (Kind 21002)k1inGetLiveDebitRequestsresponses to the ATMExample GetLiveDebitRequests Response
Current:
With k1:
Files to Modify
k1from incoming Kind 21002 eventsk1in forwarded messagesRelated