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.