mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-12 23:19:08 -05:00
adds definition to nip44 function
This commit is contained in:
parent
4fbac8d769
commit
d12ae7ed90
2
73.md
2
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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user