diff --git a/44.md b/44.md index 8f840aa..3952b98 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')