Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
48
fn sha256(bytes: &[u8]) -> String {
49
use data_encoding::HEXLOWER;
50
HEXLOWER.encode(&Sha256::digest(bytes))
51
}
52
53
fn verify_files(root: &Path, files: &[ExpectedFile]) -> Result<()> {
54
for file in files {
Callers
nothing calls this directly
Calls
2
digest
Function · 0.50
encode
Method · 0.45
Tested by
no test coverage detected