Fixing kind numbers

This commit is contained in:
Vitor Pamplona 2024-06-20 14:35:45 -04:00
parent 4e0b5fa038
commit 3ba8526756

6
81.md
View File

@ -6,7 +6,7 @@ Relationship Status
`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.
@ -55,11 +55,11 @@ For private cases, a new event kind named "Event Set Names" (`kind:10008`) uses
### 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
{
"kind": 31383,
"kind": 31382,
"tags": [
["d", sha256(hkdf(private_key, salt: 'nip81') || "<pubkey>")],
["n", "6064460175057025"],