mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
Update 108.md
NIP-04 takes the users sk and the gated note creator's pk Co-authored-by: Asai Toshiya <to.asai.60@gmail.com>
This commit is contained in:
parent
5b501c0ed7
commit
cab55281f3
2
108.md
2
108.md
|
@ -121,7 +121,7 @@ APP.get("/:noteId/:paymentHash")
|
|||
|
||||
### Encryption/Decryption
|
||||
|
||||
To encrypt/decrypt `kind:56` key notes, we use [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md)'s encrypt/decrypt functions between the gated note's creator's pubkey and your pubkey.
|
||||
To encrypt/decrypt `kind:56` key notes, we use [NIP-04](https://github.com/nostr-protocol/nips/blob/master/04.md)'s encrypt/decrypt functions between the gated note's creator's pubkey and your prikey.
|
||||
|
||||
To encrypt/decrypt the gated note, we use `aes-256-cbc`. Below is a simple implementation in ts:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user