nip46: fix legacyDecrypt argument.

This commit is contained in:
fiatjaf 2024-11-02 08:13:33 -03:00
parent cb29d62033
commit 29270c8c9d
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@nostr/tools", "name": "@nostr/tools",
"version": "2.10.0", "version": "2.10.1",
"exports": { "exports": {
".": "./index.ts", ".": "./index.ts",
"./core": "./core.ts", "./core": "./core.ts",

View File

@ -125,7 +125,7 @@ export class BunkerSigner {
try { try {
o = JSON.parse(decrypt(event.content, convKey)) o = JSON.parse(decrypt(event.content, convKey))
} catch (err) { } 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 const { id, result, error } = o

View File

@ -1,7 +1,7 @@
{ {
"type": "module", "type": "module",
"name": "nostr-tools", "name": "nostr-tools",
"version": "2.10.0", "version": "2.10.1",
"description": "Tools for making a Nostr client.", "description": "Tools for making a Nostr client.",
"repository": { "repository": {
"type": "git", "type": "git",