From 8a2977bcc51611d0e1b4c9c5870c8da03765ec33 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 15 Aug 2023 11:53:25 -0300 Subject: [PATCH] rename argument. --- 44.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/44.md b/44.md index 8f840aab..3952b980 100644 --- a/44.md +++ b/44.md @@ -75,7 +75,7 @@ export function encrypt(privkey: string, pubkey: string, text: string, v = 1) { return base64.encode(payload) } -export function decrypt(privkey: string, pubkey: string, payload: string) { +export function decrypt(privkey: string, pubkey: string, blob: string) { const payload = base64.decode(blob) if (payload[0] !== 1) { throw new Error('NIP44: unknown encryption version')