adds definition to nip44 function

This commit is contained in:
Vitor Pamplona 2024-05-02 14:31:43 -04:00
parent 4fbac8d769
commit d12ae7ed90

2
73.md
View File

@ -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.