MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / getSigningKey

Function getSigningKey

packages/hosts/mcp/src/envelope.ts:297–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

295 let signingKey: Uint8Array | undefined;
296
297 const getSigningKey = (): Uint8Array =>
298 (signingKey ??= crypto.getRandomValues(new Uint8Array(32)));
299
300 const handlerFor = (resource: McpResource): McpHttpHandler => {
301 const key = mcpResourceKey(resource);

Callers 1

handlerForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected