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:
Christian Krueger 2023-10-19 09:50:48 -06:00 committed by GitHub
parent 4e535c5b3c
commit 1ab71fd083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
108.md
View File

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