MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / sha256

Function sha256

atomic-repository/examples/imported_materialize_bench.rs:48–51  ·  view source on GitHub ↗
(bytes: &[u8])

Source from the content-addressed store, hash-verified

46}
47
48fn sha256(bytes: &[u8]) -> String {
49 use data_encoding::HEXLOWER;
50 HEXLOWER.encode(&Sha256::digest(bytes))
51}
52
53fn verify_files(root: &Path, files: &[ExpectedFile]) -> Result<()> {
54 for file in files {

Callers

nothing calls this directly

Calls 2

digestFunction · 0.50
encodeMethod · 0.45

Tested by

no test coverage detected