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

Function encodeBase64

packages/consortium-web/src/lib/encryption.ts:24–26  ·  view source on GitHub ↗
(data: Uint8Array)

Source from the content-addressed store, hash-verified

22// --- Base64 helpers ---
23
24export function encodeBase64(data: Uint8Array): string {
25 return sodium.to_base64(data, sodium.base64_variants.ORIGINAL);
26}
27
28export function decodeBase64(str: string): Uint8Array {
29 return sodium.from_base64(str, sodium.base64_variants.ORIGINAL);

Callers 3

sendMessageFunction · 0.90
rpcCallFunction · 0.90
authenticateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected