mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-12-08 16:18:50 +00:00
move relay tags into encrypted section and remove from nip51
This commit is contained in:
1
51.md
1
51.md
@@ -32,7 +32,6 @@ For example, _mute list_ can contain the public keys of spammers and bad actors
|
|||||||
| Blocked relays | 10006 | relays clients should never connect to | `"relay"` (relay URLs) |
|
| Blocked relays | 10006 | relays clients should never connect to | `"relay"` (relay URLs) |
|
||||||
| Search relays | 10007 | relays clients should use when performing search queries | `"relay"` (relay URLs) |
|
| Search relays | 10007 | relays clients should use when performing search queries | `"relay"` (relay URLs) |
|
||||||
| 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 |
|
| 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 |
|
||||||
| 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) |
|
|
||||||
| Relay feeds | 10012 | user favorite browsable relays (and relay sets) | `"relay"` (relay URLs) and `"a"` (kind:30002 relay set) |
|
| Relay feeds | 10012 | user favorite browsable relays (and relay sets) | `"relay"` (relay URLs) and `"a"` (kind:30002 relay set) |
|
||||||
| Interests | 10015 | topics a user may be interested in and pointers | `"t"` (hashtags) and `"a"` (kind:30015 interest set) |
|
| Interests | 10015 | topics a user may be interested in and pointers | `"t"` (hashtags) and `"a"` (kind:30015 interest set) |
|
||||||
| Media follows | 10020 | multimedia (photos, short video) follow list | `"p"` (pubkeys -- with optional relay hint and petname) |
|
| Media follows | 10020 | multimedia (photos, short video) follow list | `"p"` (pubkeys -- with optional relay hint and petname) |
|
||||||
|
|||||||
9
60.md
9
60.md
@@ -28,18 +28,17 @@ This NIP doesn't deal with users' *receiving* money from someone else, it's just
|
|||||||
"content": nip44_encrypt([
|
"content": nip44_encrypt([
|
||||||
[ "privkey", "hexkey" ],
|
[ "privkey", "hexkey" ],
|
||||||
[ "mint", "https://mint1" ],
|
[ "mint", "https://mint1" ],
|
||||||
[ "mint", "https://mint2" ]
|
[ "mint", "https://mint2" ],
|
||||||
]),
|
|
||||||
"tags": [
|
|
||||||
[ "relay", "wss://relay1.example.com" ],
|
[ "relay", "wss://relay1.example.com" ],
|
||||||
[ "relay", "wss://relay2.example.com" ]
|
[ "relay", "wss://relay2.example.com" ]
|
||||||
]
|
]),
|
||||||
|
"tags": []
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The wallet event is an replaceable event `kind:17375`.
|
The wallet event is an replaceable event `kind:17375`.
|
||||||
|
|
||||||
Tags:
|
Encrypted Tags:
|
||||||
* `mint` - Mint(s) this wallet uses -- there MUST be one or more mint tags.
|
* `mint` - Mint(s) this wallet uses -- there MUST be one or more mint tags.
|
||||||
* `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.
|
* `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.
|
||||||
* `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.
|
* `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.
|
||||||
|
|||||||
Reference in New Issue
Block a user