mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-13 02:46:24 +00:00
Moves to 10008 kind for name maps
This commit is contained in:
parent
fbb5abac84
commit
1e7da2bb70
10
81.md
10
81.md
@ -59,15 +59,15 @@ Clients MAY filter by `kind:30382`, with or without `n` tags, to determine how t
|
|||||||
|
|
||||||
### Private `n`-tags
|
### Private `n`-tags
|
||||||
|
|
||||||
Clients MAY hide human readable `n`-tags behind a code and list their code maps in `kind:10007` using the `n_name` tag.
|
Clients MAY hide human readable `n`-tags behind a code and list their code maps in the new "Unbound List Names" event kind (`kind:10008`), using the `map` tag from code to name.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"kind": 10007,
|
"kind": 10008,
|
||||||
"content": nip44Encrypt(JSON.stringify([
|
"content": nip44Encrypt(JSON.stringify([
|
||||||
["n_name", "<Code used in other events>", "<Human readable name>"],
|
["map", "<Code used in other events>", "<Human readable name>"],
|
||||||
["n_name", "Clients", "Clients"] // public list of my Clients
|
["map", "Clients", "Clients"], // public list of my Clients
|
||||||
["n_name", "6064460175057025", "Idiots"] // private list of idiots
|
["map", "6064460175057025", "Idiots"] // private list of idiots
|
||||||
])),
|
])),
|
||||||
// ...other fields
|
// ...other fields
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
|||||||
- [NIP-72: Moderated Communities](72.md)
|
- [NIP-72: Moderated Communities](72.md)
|
||||||
- [NIP-75: Zap Goals](75.md)
|
- [NIP-75: Zap Goals](75.md)
|
||||||
- [NIP-78: Application-specific data](78.md)
|
- [NIP-78: Application-specific data](78.md)
|
||||||
|
- [NIP-81: Relationship Status](81.md)
|
||||||
- [NIP-84: Highlights](84.md)
|
- [NIP-84: Highlights](84.md)
|
||||||
- [NIP-89: Recommended Application Handlers](89.md)
|
- [NIP-89: Recommended Application Handlers](89.md)
|
||||||
- [NIP-90: Data Vending Machines](90.md)
|
- [NIP-90: Data Vending Machines](90.md)
|
||||||
@ -123,6 +124,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
|||||||
| `10005` | Public chats list | [51](51.md) |
|
| `10005` | Public chats list | [51](51.md) |
|
||||||
| `10006` | Blocked relays list | [51](51.md) |
|
| `10006` | Blocked relays list | [51](51.md) |
|
||||||
| `10007` | Search relays list | [51](51.md) |
|
| `10007` | Search relays list | [51](51.md) |
|
||||||
|
| `10008` | Unbound List Names | [81](81.md) |
|
||||||
| `10015` | Interests list | [51](51.md) |
|
| `10015` | Interests list | [51](51.md) |
|
||||||
| `10030` | User emoji list | [51](51.md) |
|
| `10030` | User emoji list | [51](51.md) |
|
||||||
| `10096` | File storage server list | [96](96.md) |
|
| `10096` | File storage server list | [96](96.md) |
|
||||||
@ -151,6 +153,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
|
|||||||
| `30078` | Application-specific Data | [78](78.md) |
|
| `30078` | Application-specific Data | [78](78.md) |
|
||||||
| `30311` | Live Event | [53](53.md) |
|
| `30311` | Live Event | [53](53.md) |
|
||||||
| `30315` | User Statuses | [38](38.md) |
|
| `30315` | User Statuses | [38](38.md) |
|
||||||
|
| `30382` | Relationship Status | [81](81.md) |
|
||||||
| `30402` | Classified Listing | [99](99.md) |
|
| `30402` | Classified Listing | [99](99.md) |
|
||||||
| `30403` | Draft Classified Listing | [99](99.md) |
|
| `30403` | Draft Classified Listing | [99](99.md) |
|
||||||
| `31922` | Date-Based Calendar Event | [52](52.md) |
|
| `31922` | Date-Based Calendar Event | [52](52.md) |
|
||||||
|
Loading…
Reference in New Issue
Block a user