From b0c79bc60a74df16fdc4a5880763ad0d5c5e5e1b Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 7 May 2024 18:52:54 -0400 Subject: [PATCH] fixes variable names --- 73.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/73.md b/73.md index 29ced048..24e299c4 100644 --- a/73.md +++ b/73.md @@ -88,16 +88,16 @@ The viewing private key is a new Nostr Private Key in hex, NIP-44-encrypted to e The `.content` is then encrypted by a conversation key between the new author's private key and the viewing public key. ```js -val keyPair = nostr.generateKeyPair() +val viewingKeyPair = nostr.generateKeyPair() { "pubkey": author.pubkey "kind": 35337, "tags": [ ["d", ""] - ["p", "", "", nip44Encrypt(keyPair.privateKeyHex, author.privateKey, "") ] - ["p", "", "", nip44Encrypt(keyPair.privateKeyHex, author.privateKey, "") ] - ["p", "", "", nip44Encrypt(keyPair.privateKeyHex, author.privateKey, "") ] + ["p", "", "", nip44Encrypt(viewingKeyPair.privateKeyHex, author.privateKey, "") ] + ["p", "", "", nip44Encrypt(viewingKeyPair.privateKeyHex, author.privateKey, "") ] + ["p", "", "", nip44Encrypt(viewingKeyPair.privateKeyHex, author.privateKey, "") ] ], "content": nip44Encrypt([ ["title", "Name of this spreadsheet"], // private title @@ -105,7 +105,7 @@ val keyPair = nostr.generateKeyPair() ["data", "", "", "", "", "