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

Function sha256

apps/kimi-code/test/native/native-assets.test.ts:17–19  ·  view source on GitHub ↗
(bytes: Buffer | string)

Source from the content-addressed store, hash-verified

15import { loadNativePackage } from '#/native/native-require';
16
17function sha256(bytes: Buffer | string): string {
18 return createHash('sha256').update(bytes).digest('hex');
19}
20
21function fakeManifest(files: Record<string, string>): {
22 manifest: NativeAssetManifest;

Callers 2

fakeManifestFunction · 0.70

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected