chore: update nostr-tools (#248)
This commit is contained in:
parent
124239839c
commit
84ef234d38
3 changed files with 6 additions and 10 deletions
8
package-lock.json
generated
8
package-lock.json
generated
|
|
@ -38,7 +38,7 @@
|
||||||
"i18next-browser-languagedetector": "^8.0.4",
|
"i18next-browser-languagedetector": "^8.0.4",
|
||||||
"lru-cache": "^11.0.2",
|
"lru-cache": "^11.0.2",
|
||||||
"lucide-react": "^0.469.0",
|
"lucide-react": "^0.469.0",
|
||||||
"nostr-tools": "^2.10.4",
|
"nostr-tools": "^2.12.0",
|
||||||
"nstart-modal": "^1.4.0",
|
"nstart-modal": "^1.4.0",
|
||||||
"path-to-regexp": "^8.2.0",
|
"path-to-regexp": "^8.2.0",
|
||||||
"qrcode.react": "^4.2.0",
|
"qrcode.react": "^4.2.0",
|
||||||
|
|
@ -7101,9 +7101,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/nostr-tools": {
|
"node_modules/nostr-tools": {
|
||||||
"version": "2.10.4",
|
"version": "2.12.0",
|
||||||
"resolved": "https://registry.npmjs.org/nostr-tools/-/nostr-tools-2.10.4.tgz",
|
"resolved": "https://registry.npmjs.org/nostr-tools/-/nostr-tools-2.12.0.tgz",
|
||||||
"integrity": "sha512-biU7sk+jxHgVASfobg2T5ttxOGGSt69wEVBC51sHHOEaKAAdzHBLV/I2l9Rf61UzClhliZwNouYhqIso4a3HYg==",
|
"integrity": "sha512-pUWEb020gTvt1XZvTa8AKNIHWFapjsv2NKyk43Ez2nnvz6WSXsrTFE0XtkNLSRBjPn6EpxumKeNiVzLz74jNSA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@noble/ciphers": "^0.5.1",
|
"@noble/ciphers": "^0.5.1",
|
||||||
"@noble/curves": "1.2.0",
|
"@noble/curves": "1.2.0",
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
"i18next-browser-languagedetector": "^8.0.4",
|
"i18next-browser-languagedetector": "^8.0.4",
|
||||||
"lru-cache": "^11.0.2",
|
"lru-cache": "^11.0.2",
|
||||||
"lucide-react": "^0.469.0",
|
"lucide-react": "^0.469.0",
|
||||||
"nostr-tools": "^2.10.4",
|
"nostr-tools": "^2.12.0",
|
||||||
"nstart-modal": "^1.4.0",
|
"nstart-modal": "^1.4.0",
|
||||||
"path-to-regexp": "^8.2.0",
|
"path-to-regexp": "^8.2.0",
|
||||||
"qrcode.react": "^4.2.0",
|
"qrcode.react": "^4.2.0",
|
||||||
|
|
|
||||||
|
|
@ -41,11 +41,7 @@ export class BunkerSigner implements ISigner {
|
||||||
if (!this.signer) {
|
if (!this.signer) {
|
||||||
throw new Error('Not logged in')
|
throw new Error('Not logged in')
|
||||||
}
|
}
|
||||||
const pubkey = await this.getPublicKey()
|
return this.signer.signEvent(draftEvent)
|
||||||
return this.signer.signEvent({
|
|
||||||
...draftEvent,
|
|
||||||
pubkey
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async nip04Encrypt(pubkey: string, plainText: string) {
|
async nip04Encrypt(pubkey: string, plainText: string) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue