mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c47f091d9b |
6
event.js
6
event.js
@@ -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')
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user