mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 00:28:51 +00:00
add a bunch of tests.
This commit is contained in:
2
event.ts
2
event.ts
@@ -64,6 +64,6 @@ export function verifySignature(
|
||||
|
||||
export async function signEvent(event: Event, key: string): Promise<string> {
|
||||
return Buffer.from(
|
||||
await secp256k1.schnorr.sign(getEventHash(event), key)
|
||||
await secp256k1.schnorr.sign(event.id || getEventHash(event), key)
|
||||
).toString('hex')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user