MCPcopy Create free account
hub / github.com/ConsortiumAI/Consortium / getRandomBytes

Function getRandomBytes

packages/consortium-web/src/lib/encryption.ts:38–40  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

36// --- Random bytes ---
37
38export function getRandomBytes(size: number): Uint8Array {
39 return sodium.randombytes_buf(size);
40}
41
42// --- Auth challenge-response ---
43

Callers 4

authenticateFunction · 0.90
authChallengeFunction · 0.70
encryptLegacyFunction · 0.70
encryptWithDataKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected