mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-13 02:46:24 +00:00
Fixing kind numbers
This commit is contained in:
parent
4e0b5fa038
commit
3ba8526756
6
81.md
6
81.md
@ -6,7 +6,7 @@ Relationship Status
|
|||||||
|
|
||||||
`draft` `optional`
|
`draft` `optional`
|
||||||
|
|
||||||
This NIP defines two new event kinds (`30382` and `30383`) to document the relationship between two keys.
|
This NIP defines two new event kinds (`30382` and `31382`) to document the relationship between two keys.
|
||||||
|
|
||||||
Both kinds offer public and private tags to describe that relationship. Private tags are JSON Stringified, [NIP-44](44.md)-encrypted to the signer's keys and placed inside the `.content` of the event.
|
Both kinds offer public and private tags to describe that relationship. Private tags are JSON Stringified, [NIP-44](44.md)-encrypted to the signer's keys and placed inside the `.content` of the event.
|
||||||
|
|
||||||
@ -55,11 +55,11 @@ For private cases, a new event kind named "Event Set Names" (`kind:10008`) uses
|
|||||||
|
|
||||||
### Private Relationship Status
|
### Private Relationship Status
|
||||||
|
|
||||||
For relationships that must remain private (e.g private follows, client lists, etc), the event kind `31383` uses a similar structure but with a hashed `d` tag using [NIP-44](44.md)'s `hkdf` function.
|
For relationships that must remain private (e.g private follows, client lists, etc), the event kind `31382` uses a similar structure but with a hashed `d` tag using [NIP-44](44.md)'s `hkdf` function.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
"kind": 31383,
|
"kind": 31382,
|
||||||
"tags": [
|
"tags": [
|
||||||
["d", sha256(hkdf(private_key, salt: 'nip81') || "<pubkey>")],
|
["d", sha256(hkdf(private_key, salt: 'nip81') || "<pubkey>")],
|
||||||
["n", "6064460175057025"],
|
["n", "6064460175057025"],
|
||||||
|
Loading…
Reference in New Issue
Block a user