mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
NIP-57: Clarify description tag
This commit is contained in:
parent
a7ed4e805f
commit
c30971ff0c
2
57.md
2
57.md
|
@ -131,7 +131,7 @@ The following should be true of the `zap receipt` event:
|
||||||
- The `created_at` date SHOULD be set to the invoice `paid_at` date for idempotency.
|
- The `created_at` date SHOULD be set to the invoice `paid_at` date for idempotency.
|
||||||
- `tags` MUST include the `p` tag (zap recipient) AND optional `e` tag from the `zap request` AND optional `a` tag from the `zap request` AND optional `P` tag from the pubkey of the zap request (zap sender).
|
- `tags` MUST include the `p` tag (zap recipient) AND optional `e` tag from the `zap request` AND optional `a` tag from the `zap request` AND optional `P` tag from the pubkey of the zap request (zap sender).
|
||||||
- The `zap receipt` MUST have a `bolt11` tag containing the description hash bolt11 invoice.
|
- The `zap receipt` MUST have a `bolt11` tag containing the description hash bolt11 invoice.
|
||||||
- The `zap receipt` MUST contain a `description` tag which is the JSON-encoded invoice description.
|
- The `zap receipt` MUST contain a `description` tag which is the JSON-encoded zap request.
|
||||||
- `SHA256(description)` MUST match the description hash in the bolt11 invoice.
|
- `SHA256(description)` MUST match the description hash in the bolt11 invoice.
|
||||||
- The `zap receipt` MAY contain a `preimage` tag to match against the payment hash of the bolt11 invoice. This isn't really a payment proof, there is no real way to prove that the invoice is real or has been paid. You are trusting the author of the `zap receipt` for the legitimacy of the payment.
|
- The `zap receipt` MAY contain a `preimage` tag to match against the payment hash of the bolt11 invoice. This isn't really a payment proof, there is no real way to prove that the invoice is real or has been paid. You are trusting the author of the `zap receipt` for the legitimacy of the payment.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user