mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 16:48:50 +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) {
|
export async function signEvent(event, key) {
|
||||||
return Buffer.from(secp256k1.schnorr.sign(getEventHash(event), key)).toString(
|
return Buffer.from(
|
||||||
'hex'
|
await secp256k1.schnorr.sign(getEventHash(event), key)
|
||||||
)
|
).toString('hex')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nostr-tools",
|
"name": "nostr-tools",
|
||||||
"version": "0.22.0",
|
"version": "0.22.1",
|
||||||
"description": "Tools for making a Nostr client.",
|
"description": "Tools for making a Nostr client.",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user