update nip-57 zap receipt spec to include 'a' tag

This commit is contained in:
Keyan 2023-09-28 15:43:03 -05:00 committed by GitHub
parent 84f1915cec
commit 423dda195b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
57.md
View File

@ -128,7 +128,7 @@ The following should be true of the `zap receipt` event:
- The `content` SHOULD be empty.
- The `created_at` date SHOULD be set to the invoice `paid_at` date for idempotency.
- `tags` MUST include the `p` tag AND optional `e` tag from the `zap request`.
- `tags` MUST include the `p` tag AND optional `e` tag from the `zap request` AND optional `a` tag from the `zap request`.
- 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.
- `SHA256(description)` MUST match the description hash in the bolt11 invoice.