Skip to content

feat: add redeemL402 contract#16

Closed
martinsaposnic wants to merge 1 commit intomainfrom
feat/redeem-l402
Closed

feat: add redeemL402 contract#16
martinsaposnic wants to merge 1 commit intomainfrom
feat/redeem-l402

Conversation

@martinsaposnic
Copy link
Contributor

Summary

  • Adds redeemL402 contract to checkout for L402 credential consumption (one payment = one use)
  • Adds RedeemL402Input / RedeemL402Output types
  • Adds redeemL402 to sdkContract.checkout

Context

Part of the L402 replay protection feature. The backend uses this to atomically mark an invoice as consumed when a valid preimage is presented.

Adds a new redeemL402 endpoint to the checkout contract that allows
atomically marking an L402 credential as consumed (one payment = one use).
@martinsaposnic
Copy link
Contributor Author

Wrong repo - should be on lightning-node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant