upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--44.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/44.md b/44.md
index c6fb69a..980ea88 100644
--- a/44.md
+++ b/44.md
@@ -74,8 +74,9 @@ export function encrypt(privkey: string, pubkey: string, text: string, v = 1) {
74} 74}
75 75
76export function decrypt(privkey: string, pubkey: string, payload: string) { 76export function decrypt(privkey: string, pubkey: string, payload: string) {
77 let data
77 try { 78 try {
78 payload = JSON.parse(payload) as { 79 data = JSON.parse(payload) as {
79 ciphertext: string 80 ciphertext: string
80 nonce: string 81 nonce: string
81 v: number 82 v: number