From 8004e5550e49e67b7acd7f989867b45e58cf0bb8 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 5 Feb 2025 10:21:15 -0300 Subject: [PATCH] adds branch `b` tag to NIP-22 --- 22.md | 6 ++++++ README.md | 1 + 2 files changed, 7 insertions(+) diff --git a/22.md b/22.md index 2ad1fd81..149902b3 100644 --- a/22.md +++ b/22.md @@ -54,6 +54,12 @@ Their uppercase versions use the same type of values but relate to the root item ["q", " or ", "", ""] ``` +`b` tags SHOULD be used to list all events in a thread branch, sorted from root to the direct parent. `b` tags help clients load an entire branch in a single filter. + +```json +["b", " or ", "", ""] +``` + `p` tags SHOULD be used when mentioning pubkeys in the `.content` with [NIP-21](21.md). Comments MUST NOT be used to reply to kind 1 notes. [NIP-10](10.md) should instead be followed. diff --git a/README.md b/README.md index dd3c0f74..0d9628a0 100644 --- a/README.md +++ b/README.md @@ -277,6 +277,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | ----------------- | ------------------------------------ | ------------------------------- | -------------------------------------------------- | | `a` | coordinates to an event | relay URL | [01](01.md) | | `A` | root address | relay URL | [22](22.md) | +| `b` | event id or event address | relay URL, pubkey (hex if id) | [22](22.md) | | `d` | identifier | -- | [01](01.md) | | `e` | event id (hex) | relay URL, marker, pubkey (hex) | [01](01.md), [10](10.md) | | `E` | root event id | relay URL | [22](22.md) |