Compare commits

..

1 Commits

Author SHA1 Message Date
fiatjaf
c47f091d9b update noble secp256k1 and ensure we always return hex. 2022-02-11 16:27:23 -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) {
return Buffer.from(secp256k1.schnorr.sign(getEventHash(event), key)).toString(
'hex'
)
return Buffer.from(
await secp256k1.schnorr.sign(getEventHash(event), key)
).toString('hex')
}

View File

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