diff --git a/jsr.json b/jsr.json index 9a0dbc2..249c2ca 100644 --- a/jsr.json +++ b/jsr.json @@ -1,6 +1,6 @@ { "name": "@nostr/tools", - "version": "2.10.0", + "version": "2.10.1", "exports": { ".": "./index.ts", "./core": "./core.ts", diff --git a/nip46.ts b/nip46.ts index 2e7e657..f07a4a9 100644 --- a/nip46.ts +++ b/nip46.ts @@ -125,7 +125,7 @@ export class BunkerSigner { try { o = JSON.parse(decrypt(event.content, convKey)) } catch (err) { - o = JSON.parse(await legacyDecrypt(event.content, event.pubkey, event.content)) + o = JSON.parse(await legacyDecrypt(clientSecretKey, event.pubkey, event.content)) } const { id, result, error } = o diff --git a/package.json b/package.json index d21e33c..8e2e347 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "nostr-tools", - "version": "2.10.0", + "version": "2.10.1", "description": "Tools for making a Nostr client.", "repository": { "type": "git",