upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/57.md
diff options
context:
space:
mode:
authorVitor Pamplona <vitor@vitorpamplona.com>2023-09-28 17:09:23 -0400
committerGitHub <noreply@github.com>2023-09-28 17:09:23 -0400
commit7dc6385f1b9f185601c50f84df2e7e06933a71ce (patch)
tree57c2b14dbf912b4ee2aa694236f39716ec41b9b9 /57.md
parent149568f7ba767a2eb732ae308d2d539d5aeacdd0 (diff)
parent423dda195b5251ffac5ec82c4129fe2f916c4d2b (diff)
Merge pull request #800 from huumn/master
update nip-57 zap receipt spec to include 'a' tag
Diffstat (limited to '57.md')
-rw-r--r--57.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/57.md b/57.md
index 729d585..8e2be1b 100644
--- a/57.md
+++ b/57.md
@@ -128,7 +128,7 @@ The following should be true of the `zap receipt` event:
128 128
129- The `content` SHOULD be empty. 129- The `content` SHOULD be empty.
130- The `created_at` date SHOULD be set to the invoice `paid_at` date for idempotency. 130- The `created_at` date SHOULD be set to the invoice `paid_at` date for idempotency.
131- `tags` MUST include the `p` tag AND optional `e` tag from the `zap request`. 131- `tags` MUST include the `p` tag AND optional `e` tag from the `zap request` AND optional `a` tag from the `zap request`.
132- The `zap receipt` MUST have a `bolt11` tag containing the description hash bolt11 invoice. 132- The `zap receipt` MUST have a `bolt11` tag containing the description hash bolt11 invoice.
133- The `zap receipt` MUST contain a `description` tag which is the JSON-encoded invoice description. 133- The `zap receipt` MUST contain a `description` tag which is the JSON-encoded invoice description.
134- `SHA256(description)` MUST match the description hash in the bolt11 invoice. 134- `SHA256(description)` MUST match the description hash in the bolt11 invoice.