Compare commits

...

1 Commits

Author SHA1 Message Date
fiatjaf
29270c8c9d nip46: fix legacyDecrypt argument. 2024-11-02 08:13:33 -03:00
3 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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

View File

@@ -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",