MCPcopy Create free account
hub / github.com/cloudflare/computer / sha256

Function sha256

packages/rpc/src/sync-driver.test.ts:1277–1282  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

1275});
1276
1277async function sha256(bytes: Uint8Array): Promise<Uint8Array> {
1278 const { createHash } = await import("node:crypto");
1279 const hash = createHash("sha256");
1280 hash.update(bytes);
1281 return new Uint8Array(hash.digest());
1282}

Callers 1

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected