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

Function sha256

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

Source from the content-addressed store, hash-verified

12} from '../../../scripts/native/web-assets.mjs';
13
14function sha256(bytes: Buffer | string): string {
15 return createHash('sha256').update(bytes).digest('hex');
16}
17
18describe('collectWebAssets', () => {
19 it('collects dist-web files into deterministic SEA asset keys', async () => {

Callers 1

web-assets.test.tsFile · 0.70

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected