(event: Event)
| 116 | } |
| 117 | |
| 118 | export const isEventSignatureValid = async (event: Event): Promise<boolean> => { |
| 119 | return secp256k1.schnorr.verify(event.sig, event.id, event.pubkey) |
| 120 | } |
| 121 | |
| 122 | export const identifyEvent = async (event: UnidentifiedEvent): Promise<UnsignedEvent> => { |
| 123 | const id = await getEventHash(event) |
no outgoing calls
no test coverage detected