mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-12 23:19:08 -05:00
Update 108.md
NIP-04 takes the user's sk and the gate note creators pk Co-authored-by: Asai Toshiya <to.asai.60@gmail.com>
This commit is contained in:
parent
4e535c5b3c
commit
1ab71fd083
2
108.md
2
108.md
|
@ -32,7 +32,7 @@ An example client can be found at [Nostr Playground](https://nip-108.nostrplaygr
|
|||
5. Client pays the amount
|
||||
6. Client uses the `successAction` url returned in the PR to fetch the `secret` which will unlock the gated content.
|
||||
7. Client uses the `secret` and the gated note's `iv` tag to decrypt the content using `aes-256-cbc`
|
||||
8. Client then creates a key note `kind:56` with the content being the `nip-04` encrypted secret with their publicKey and the gate note's creator publicKey.
|
||||
8. Client then creates a key note `kind:56` with the content being the `nip-04` encrypted secret with their privateKey and the gate note's creator publicKey.
|
||||
9. Upon revisiting the gated note, the client can then decrypt the content using their key note.
|
||||
|
||||
## Server Functions
|
||||
|
|
Loading…
Reference in New Issue
Block a user