From eb30dbe04f2ef5da507af8d8a7f91e652c1b72d3 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Wed, 13 Mar 2024 09:10:16 +0100 Subject: [PATCH] Nip88: Adding dtag, typos - A kind 37001 dtag is referenced in the 7003 description, but was missing in the example -A etag is referenced in the kind 7001 description but an a tag was referenced in the example --- 88.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/88.md b/88.md index 8ecba619..5b6d5a68 100644 --- a/88.md +++ b/88.md @@ -45,6 +45,9 @@ A pubkey that wants to provide others the ability to subscribe to them can creat // Relay and payment-verification [ "r", "wss://my-subscribers-only-relay.com" ], [ "p", "" ], + + // A unique identifier + [ "d", "" ], ] } ``` @@ -77,7 +80,7 @@ Zero or more `p` tags can be included to specify a pubkey that is trusted by the "content": "", "tags": [ [ "p", "" ], - [ "a", "" ], + [ "e", "" ], [ "event", "" ], [ "amount", "", "", "" ], @@ -92,7 +95,7 @@ When a user wants to subscribe to support a user they create a `kind:7001` event * `.content` is an optional message the supporter can write. * The `p` tag MUST tag the pubkey being supported. -* The `a` tag is optional; it should point to a `kind:37001` support tier event. There MUST be exactly 0 or 1 `a` tag. +* The `e` tag is optional; it should point to a `kind:37001` support tier event. There MUST be exactly 0 or 1 `e` tag. * The `event` tag is optional; subscribers can opt to keep the version of the event they subscribed to. There MUST be exactly 0 or 1 `event` tag. * The `amount` tag specifies what the supporters is committing to pay to the supported pubkey and the cadence. MUST be equal to one of the amounts specified in the `kind:37001` event if one is tagged. There MUST be exactly 1 `amount` tag. @@ -113,6 +116,7 @@ The supporting user should create a zap `p`-tagging the receiver and e-tagging t [ "p", "" ], [ "e", "" ] ] +} ``` Clients supporting this NIP can check for zaps e-tagging the `kind:7001` event to find the pubkeys that have a valid, paid subscriptions at each different period.