MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / sha256

Function sha256

scripts/build-protocol-tarball.cjs:69–73  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

67}
68
69function sha256(filePath) {
70 const hash = require('crypto').createHash('sha256');
71 hash.update(fs.readFileSync(filePath));
72 return hash.digest('hex');
73}
74
75function walk(dir, base = dir) {
76 const out = [];

Callers 1

mainFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected