diff options
| author | pablof7z <pfer@me.com> | 2026-02-16 08:51:23 +0000 |
|---|---|---|
| committer | pablof7z <pfer@me.com> | 2026-02-23 13:05:45 +0200 |
| commit | b805093e5ca36ae9ac33bfcbf8daa61d1902e9c4 (patch) | |
| tree | 2aa9b160944017f2e59b190dd065d763f7c5206f | |
| parent | b914aeffd8d0e1593a1e1cc27e3c70da19a27f13 (diff) | |
IP-C1: Collaborative Ownership
| -rw-r--r-- | C1.md | 113 | ||||
| -rw-r--r-- | README.md | 2 |
2 files changed, 115 insertions, 0 deletions
| @@ -0,0 +1,113 @@ | |||
| 1 | NIP-C1 | ||
| 2 | ====== | ||
| 3 | |||
| 4 | Collaborative Ownership | ||
| 5 | ----------------------- | ||
| 6 | |||
| 7 | `draft` `optional` | ||
| 8 | |||
| 9 | This NIP defines a mechanism for multiple pubkeys to collaboratively maintain addressable events while preserving backwards compatibility. | ||
| 10 | |||
| 11 | ## Motivation | ||
| 12 | |||
| 13 | Certain applications require shared ownership where: | ||
| 14 | |||
| 15 | 1. **Attribution matters**: Each collaborator signs with their own key | ||
| 16 | 2. **Dynamic membership**: Owners can be added or removed | ||
| 17 | 3. **Backwards compatibility**: Non-supporting clients see normal events | ||
| 18 | |||
| 19 | ## Specification | ||
| 20 | |||
| 21 | ### Collaborative Pointer Event | ||
| 22 | |||
| 23 | A new addressable event kind `39382` serves as a pointer to collaboratively-owned content: | ||
| 24 | |||
| 25 | ```jsonc | ||
| 26 | { | ||
| 27 | "kind": 39382, | ||
| 28 | "pubkey": "<creator-pubkey>", | ||
| 29 | "tags": [ | ||
| 30 | ["d", "<slug>"], | ||
| 31 | ["k", "<target-kind>"], | ||
| 32 | ["p", "<owner-1-pubkey>"], | ||
| 33 | ["p", "<owner-2-pubkey>"], | ||
| 34 | ["p", "<owner-3-pubkey>"] | ||
| 35 | ], | ||
| 36 | "content": "", | ||
| 37 | "created_at": 1234567890 | ||
| 38 | } | ||
| 39 | ``` | ||
| 40 | |||
| 41 | #### Tag Definitions | ||
| 42 | |||
| 43 | | Tag | Required | Description | | ||
| 44 | |-----|----------|-------------| | ||
| 45 | | `d` | Yes | `<slug> |` | ||
| 46 | | `k` | Yes | Target event kind | | ||
| 47 | | `p` | Yes | Owner pubkeys (one or more) | | ||
| 48 | |||
| 49 | ### Resolution Algorithm | ||
| 50 | |||
| 51 | To resolve the current state of collaboratively-owned content: | ||
| 52 | |||
| 53 | 1. Parse the `39382` pointer event to extract owners (`p` tags) and target kind (`k` tag) | ||
| 54 | 2. Extract the slug from the `d` tag (everything after the first `-`) | ||
| 55 | 3. Query: `{"kinds": [<target-kind>], "authors": [<all-owners>], "#d": ["<slug>"], "limit": 1}` | ||
| 56 | |||
| 57 | ### Back-Reference | ||
| 58 | |||
| 59 | Target events MUST include an `a` tag pointing to the `39382` pointer: | ||
| 60 | |||
| 61 | ```jsonc | ||
| 62 | { | ||
| 63 | "kind": 30023, | ||
| 64 | "tags": [ | ||
| 65 | ["d", "my-article"], | ||
| 66 | ["a", "39382:<pointer-creator-pubkey>:30023-my-article"] | ||
| 67 | ] | ||
| 68 | } | ||
| 69 | ``` | ||
| 70 | |||
| 71 | This allows clients to discover collaborative ownership from either direction: pointer → content or content → pointer. | ||
| 72 | |||
| 73 | ## Example | ||
| 74 | |||
| 75 | ### Pointer Event | ||
| 76 | |||
| 77 | ```jsonc | ||
| 78 | { | ||
| 79 | "kind": 39382, | ||
| 80 | "pubkey": "alice-pubkey", | ||
| 81 | "tags": [ | ||
| 82 | ["d", "collaborative-guide"], | ||
| 83 | ["k", "30023"], | ||
| 84 | ["p", "alice-pubkey"], | ||
| 85 | ["p", "bob-pubkey"], | ||
| 86 | ["p", "carol-pubkey"] | ||
| 87 | ], | ||
| 88 | "content": "" | ||
| 89 | } | ||
| 90 | ``` | ||
| 91 | |||
| 92 | ### Target Article (by any owner) | ||
| 93 | |||
| 94 | ```jsonc | ||
| 95 | { | ||
| 96 | "kind": 30023, | ||
| 97 | "pubkey": "bob-pubkey", | ||
| 98 | "tags": [ | ||
| 99 | ["d", "collaborative-guide"], | ||
| 100 | ["title", "A Collaborative Guide"], | ||
| 101 | ["a", "39382:alice-pubkey:30023-collaborative-guide"] | ||
| 102 | ], | ||
| 103 | "content": "..." | ||
| 104 | } | ||
| 105 | ``` | ||
| 106 | |||
| 107 | ### Client Resolution | ||
| 108 | |||
| 109 | 1. Client receives `naddr` for the `39382` pointer | ||
| 110 | 2. Parses owners: `[alice, bob, carol]` | ||
| 111 | 3. Queries: `{"kinds": [30023], "authors": ["alice", "bob", "carol"], "#d": ["collaborative-guide"], "limit": 1}` | ||
| 112 | 4. Returns most recent version regardless of which owner published it | ||
| 113 | |||
| @@ -109,6 +109,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | |||
| 109 | - [NIP-B7: Blossom](B7.md) | 109 | - [NIP-B7: Blossom](B7.md) |
| 110 | - [NIP-BE: Nostr BLE Communications Protocol](BE.md) | 110 | - [NIP-BE: Nostr BLE Communications Protocol](BE.md) |
| 111 | - [NIP-C0: Code Snippets](C0.md) | 111 | - [NIP-C0: Code Snippets](C0.md) |
| 112 | - [NIP-C1: Collaborative Ownership](C1.md) | ||
| 112 | - [NIP-C7: Chats](C7.md) | 113 | - [NIP-C7: Chats](C7.md) |
| 113 | - [NIP-EE: E2EE Messaging using MLS Protocol](EE.md) --- **unrecommended**: superseded by the [Marmot Protocol](https://github.com/marmot-protocol/marmot) | 114 | - [NIP-EE: E2EE Messaging using MLS Protocol](EE.md) --- **unrecommended**: superseded by the [Marmot Protocol](https://github.com/marmot-protocol/marmot) |
| 114 | 115 | ||
| @@ -294,6 +295,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos | |||
| 294 | | `39000-9` | Group metadata events | [29](29.md) | | 295 | | `39000-9` | Group metadata events | [29](29.md) | |
| 295 | | `39089` | Starter packs | [51](51.md) | | 296 | | `39089` | Starter packs | [51](51.md) | |
| 296 | | `39092` | Media starter packs | [51](51.md) | | 297 | | `39092` | Media starter packs | [51](51.md) | |
| 298 | | `39382` | Collaborative Pointer | [C1](C1.md) | | ||
| 297 | | `39701` | Web bookmarks | [B0](B0.md) | | 299 | | `39701` | Web bookmarks | [B0](B0.md) | |
| 298 | 300 | ||
| 299 | [NUD: Custom Feeds]: https://wikifreedia.xyz/cip-01/ | 301 | [NUD: Custom Feeds]: https://wikifreedia.xyz/cip-01/ |