Skip to content
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

Added x-cashu method to NUT-18 #204

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Egge21M
Copy link
Contributor

@Egge21M Egge21M commented Dec 23, 2024

This adds a new method to NUT-18, that allows payment requests to be used with the X-Cashu protocol. This is an attempt to standardize the flow around x-cashu further, to enable interoperability between protected endpoints and wallets.

- tags: `[["c", "replay"]]`

The payment is expected in the X-Cashu header on a request to the specified endpoint.
The tags specify constraints that the request MUST have. `replay` can be found in Payment Requests on HTTP 402 responses and requires that the exact same request is send again, but with a X-Cashu header paying the PR.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The tags specify constraints that the request MUST have. `replay` can be found in Payment Requests on HTTP 402 responses and requires that the exact same request is send again, but with a X-Cashu header paying the PR.
Tags specify constraints that the request **MUST** satisfy. The presence of a `c` tag with `replay` value informs the payer that "replay" could be returned on HTTP 402 responses, prompting the payer to re-attempt the exact same request but with an X-Cashu header paying the Payment Request.

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.

2 participants