From d12ae7ed90866597e64afa895f70d7372f2b7793 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 2 May 2024 14:31:43 -0400 Subject: [PATCH] adds definition to nip44 function --- 73.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/73.md b/73.md index 1401069e..b06eed49 100644 --- a/73.md +++ b/73.md @@ -103,6 +103,8 @@ val keyPair = nostr.generateKeyPair() } ``` +with `nip44Encrypt("text to encrypt", sender.privatekey, receiver.publickey)`. + To decrypt, receivers SHOULD find the `p`-tag ciphertext for their key, decrypt that to get the shared private key and use the shared private key to decrypt the `.content`. Clients SHOULD include the author as a `p` tag to save the secret that will allow the author to decrypt and modify the event further.