Compare commits

..

1 Commits

Author SHA1 Message Date
fiatjaf
84e4fb1f92 update noble secp256k1 and ensure we always return hex. 2022-02-11 16:20:47 -03:00
2 changed files with 4 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ export function verifySignature(event) {
} }
export async function signEvent(event, key) { export async function signEvent(event, key) {
return Buffer.from( return Buffer.from(secp256k1.schnorr.sign(getEventHash(event), key)).toString(
await secp256k1.schnorr.sign(getEventHash(event), key) 'hex'
).toString('hex') )
} }

View File

@@ -1,6 +1,6 @@
{ {
"name": "nostr-tools", "name": "nostr-tools",
"version": "0.22.1", "version": "0.22.0",
"description": "Tools for making a Nostr client.", "description": "Tools for making a Nostr client.",
"repository": { "repository": {
"type": "git", "type": "git",