Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
69
function
sha256(filePath) {
70
const
hash = require(
'crypto'
).createHash(
'sha256'
);
71
hash.update(fs.readFileSync(filePath));
72
return
hash.digest(
'hex'
);
73
}
74
75
function
walk(dir, base = dir) {
76
const
out = [];
Callers
1
main
Function · 0.85
Calls
1
update
Method · 0.80
Tested by
no test coverage detected