diff options
| author | pablof7z <pfer@me.com> | 2025-10-08 15:37:10 +0300 |
|---|---|---|
| committer | pablof7z <pfer@me.com> | 2025-10-08 15:37:10 +0300 |
| commit | baa382ca7d14de54b192096d172dce2dfd993778 (patch) | |
| tree | 50dd38bebbc55e8b5b262c09b3ca4de8022aa0f0 | |
| parent | 58cfc3189c700d1f0fb53cebc6819af12fa3b4ef (diff) | |
move relay tags into encrypted section and remove from nip51nip-60-relays2
| -rw-r--r-- | 51.md | 1 | ||||
| -rw-r--r-- | 60.md | 9 |
2 files changed, 4 insertions, 6 deletions
| @@ -32,7 +32,6 @@ For example, _mute list_ can contain the public keys of spammers and bad actors | |||
| 32 | | Blocked relays | 10006 | relays clients should never connect to | `"relay"` (relay URLs) | | 32 | | Blocked relays | 10006 | relays clients should never connect to | `"relay"` (relay URLs) | |
| 33 | | Search relays | 10007 | relays clients should use when performing search queries | `"relay"` (relay URLs) | | 33 | | Search relays | 10007 | relays clients should use when performing search queries | `"relay"` (relay URLs) | |
| 34 | | Simple groups | 10009 | [NIP-29](29.md) groups the user is in | `"group"` ([NIP-29](29.md) group id + relay URL + optional group name), `"r"` for each relay in use | | 34 | | Simple groups | 10009 | [NIP-29](29.md) groups the user is in | `"group"` ([NIP-29](29.md) group id + relay URL + optional group name), `"r"` for each relay in use | |
| 35 | | Wallet relays | 17375 | relays for [NIP-60](60.md) wallet operations | `"relay"` (relay URLs) - stored in the wallet event itself, see [NIP-60](60.md) | | ||
| 36 | | Relay feeds | 10012 | user favorite browsable relays (and relay sets) | `"relay"` (relay URLs) and `"a"` (kind:30002 relay set) | | 35 | | Relay feeds | 10012 | user favorite browsable relays (and relay sets) | `"relay"` (relay URLs) and `"a"` (kind:30002 relay set) | |
| 37 | | Interests | 10015 | topics a user may be interested in and pointers | `"t"` (hashtags) and `"a"` (kind:30015 interest set) | | 36 | | Interests | 10015 | topics a user may be interested in and pointers | `"t"` (hashtags) and `"a"` (kind:30015 interest set) | |
| 38 | | Media follows | 10020 | multimedia (photos, short video) follow list | `"p"` (pubkeys -- with optional relay hint and petname) | | 37 | | Media follows | 10020 | multimedia (photos, short video) follow list | `"p"` (pubkeys -- with optional relay hint and petname) | |
| @@ -28,18 +28,17 @@ This NIP doesn't deal with users' *receiving* money from someone else, it's just | |||
| 28 | "content": nip44_encrypt([ | 28 | "content": nip44_encrypt([ |
| 29 | [ "privkey", "hexkey" ], | 29 | [ "privkey", "hexkey" ], |
| 30 | [ "mint", "https://mint1" ], | 30 | [ "mint", "https://mint1" ], |
| 31 | [ "mint", "https://mint2" ] | 31 | [ "mint", "https://mint2" ], |
| 32 | ]), | ||
| 33 | "tags": [ | ||
| 34 | [ "relay", "wss://relay1.example.com" ], | 32 | [ "relay", "wss://relay1.example.com" ], |
| 35 | [ "relay", "wss://relay2.example.com" ] | 33 | [ "relay", "wss://relay2.example.com" ] |
| 36 | ] | 34 | ]), |
| 35 | "tags": [] | ||
| 37 | } | 36 | } |
| 38 | ``` | 37 | ``` |
| 39 | 38 | ||
| 40 | The wallet event is an replaceable event `kind:17375`. | 39 | The wallet event is an replaceable event `kind:17375`. |
| 41 | 40 | ||
| 42 | Tags: | 41 | Encrypted Tags: |
| 43 | * `mint` - Mint(s) this wallet uses -- there MUST be one or more mint tags. | 42 | * `mint` - Mint(s) this wallet uses -- there MUST be one or more mint tags. |
| 44 | * `privkey` - Private key used to unlock P2PK ecash. MUST be stored encrypted in the `.content` field. **This is a different private key exclusively used for the wallet, not associated in any way to the user's Nostr private key** -- This is only used for receiving [NIP-61](61.md) nutzaps. | 43 | * `privkey` - Private key used to unlock P2PK ecash. MUST be stored encrypted in the `.content` field. **This is a different private key exclusively used for the wallet, not associated in any way to the user's Nostr private key** -- This is only used for receiving [NIP-61](61.md) nutzaps. |
| 45 | * `relay` - Relay(s) where the wallet's events (`kind:7374`, `kind:7375`, `kind:7376`) are published to and queried from. Clients MUST use these relays for all wallet operations. If no `relay` tags are present, clients SHOULD fall back to the user's [NIP-65](65.md) relay list. | 44 | * `relay` - Relay(s) where the wallet's events (`kind:7374`, `kind:7375`, `kind:7376`) are published to and queried from. Clients MUST use these relays for all wallet operations. If no `relay` tags are present, clients SHOULD fall back to the user's [NIP-65](65.md) relay list. |