Merge pull request #800 from huumn/master

update nip-57 zap receipt spec to include 'a' tag
This commit is contained in:
Vitor Pamplona 2023-09-28 17:09:23 -04:00 committed by GitHub
commit 7dc6385f1b
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 `content` SHOULD be empty.
- 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 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 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 invoice description.
- `SHA256(description)` MUST match the description hash in the bolt11 invoice. - `SHA256(description)` MUST match the description hash in the bolt11 invoice.