mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 08:55:52 -05:00
Switch to random UUID for better security.
This commit is contained in:
parent
225be8a2a1
commit
0f4edef69f
4
81.md
4
81.md
|
@ -8,7 +8,7 @@ Private Relationship Status
|
||||||
|
|
||||||
A new `kind:30382` event documents a "Private Relationship Status" between two users of the network.
|
A new `kind:30382` event documents a "Private Relationship Status" between two users of the network.
|
||||||
|
|
||||||
It is defined as a _parameterized replaceable event_ with a single `d` tag as hash of the target `.pubkey`. An optional `n` tag adds the target key to an unbound list.
|
It is defined as a _parameterized replaceable event_ with a single `d` tag as a random UUID per pubkey. An optional `n` tag adds the target key to an unbound list.
|
||||||
|
|
||||||
The other tags are stringified, NIP-44-encrypted and placed inside the `.content` of the event.
|
The other tags are stringified, NIP-44-encrypted and placed inside the `.content` of the event.
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ For example:
|
||||||
{
|
{
|
||||||
"kind": 30382,
|
"kind": 30382,
|
||||||
"tags": [
|
"tags": [
|
||||||
["d", bytesToHex(sha256(hexToBytes("<pubKey>")))],
|
["d", "<randomUUID>"],
|
||||||
["n", "Clients"]
|
["n", "Clients"]
|
||||||
],
|
],
|
||||||
"content": "<NIP-44 encrypted Stringified TAG-List(
|
"content": "<NIP-44 encrypted Stringified TAG-List(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user