From 1ab71fd0836a4429c785fdd0e1b26b3830957a28 Mon Sep 17 00:00:00 2001 From: Christian Krueger Date: Thu, 19 Oct 2023 09:50:48 -0600 Subject: [PATCH] Update 108.md NIP-04 takes the user's sk and the gate note creators pk Co-authored-by: Asai Toshiya --- 108.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/108.md b/108.md index d7673072..4c309410 100644 --- a/108.md +++ b/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