MCPcopy Index your code
hub / github.com/cameri/nostream / isEventSignatureValid

Function isEventSignatureValid

src/utils/event.ts:118–120  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

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

Callers 6

event.spec.tsFile · 0.90
importFromCandidatesMethod · 0.90
handleMessageMethod · 0.90
isEventValidMethod · 0.90
createMirrorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected