From 0f4edef69fefb1d8d2f7444aa15b443b852d4ffd Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 7 Feb 2024 18:33:15 -0500 Subject: [PATCH] Switch to random UUID for better security. --- 81.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/81.md b/81.md index 958937d..4c8cfa9 100644 --- a/81.md +++ b/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. -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. @@ -18,7 +18,7 @@ For example: { "kind": 30382, "tags": [ - ["d", bytesToHex(sha256(hexToBytes("")))], + ["d", ""], ["n", "Clients"] ], "content": "