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

Function identifyEvent

src/utils/event.ts:122–126  ·  view source on GitHub ↗
(event: UnidentifiedEvent)

Source from the content-addressed store, hash-verified

120}
121
122export const identifyEvent = async (event: UnidentifiedEvent): Promise<UnsignedEvent> => {
123 const id = await getEventHash(event)
124
125 return { ...event, id }
126}
127
128let privateKeyCache: string | undefined
129export function getRelayPrivateKey(secret?: string): string {

Callers 3

createAuthEventFunction · 0.90
makeValidEventFunction · 0.90

Calls 1

getEventHashFunction · 0.85

Tested by 2

createAuthEventFunction · 0.72
makeValidEventFunction · 0.72