mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
Also fix signEvent() type.
This commit is contained in:
committed by
fiatjaf
parent
93cef5d886
commit
d46794c681
2
event.ts
2
event.ts
@@ -105,7 +105,7 @@ export function verifySignature(event: Event & {sig: string}): boolean {
|
||||
)
|
||||
}
|
||||
|
||||
export function signEvent(event: Event, key: string): string {
|
||||
export function signEvent(event: UnsignedEvent, key: string): string {
|
||||
return secp256k1.utils.bytesToHex(
|
||||
secp256k1.schnorr.signSync(getEventHash(event), key)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user