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