MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / sha256

Function sha256

apps/kimi-code/src/native/native-assets.ts:96–98  ·  view source on GitHub ↗
(bytes: Buffer | Uint8Array | string)

Source from the content-addressed store, hash-verified

94}
95
96function sha256(bytes: Buffer | Uint8Array | string): string {
97 return createHash('sha256').update(bytes).digest('hex');
98}
99
100function optionalEnvValue(env: NodeJS.ProcessEnv, key: string): string | null {
101 const value = env[key];

Callers 4

getNativeAssetCacheRootFunction · 0.70
readFileSha256Function · 0.70
ensureEntryFileFunction · 0.70
ensureNativeAssetTreeFunction · 0.70

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected