From 94330ffb10fc60d882e3c03504d0f8fa7aa1a7b3 Mon Sep 17 00:00:00 2001 From: Jonathan Staab Date: Fri, 11 Aug 2023 13:24:29 -0700 Subject: [PATCH] Fix typo --- 44.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/44.md b/44.md index c6fb69a7..980ea88f 100644 --- a/44.md +++ b/44.md @@ -74,8 +74,9 @@ export function encrypt(privkey: string, pubkey: string, text: string, v = 1) { } export function decrypt(privkey: string, pubkey: string, payload: string) { + let data try { - payload = JSON.parse(payload) as { + data = JSON.parse(payload) as { ciphertext: string nonce: string v: number