Skip to content

Commit

Permalink
nip46: fix legacyDecrypt argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Nov 2, 2024
1 parent cb29d62 commit 29270c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostr/tools",
"version": "2.10.0",
"version": "2.10.1",
"exports": {
".": "./index.ts",
"./core": "./core.ts",
Expand Down
2 changes: 1 addition & 1 deletion nip46.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 29270c8

Please sign in to comment.