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

Function digest

libatomic/src/daemon/sandbox_grants.rs:342–344  ·  view source on GitHub ↗
(token: &[u8])

Source from the content-addressed store, hash-verified

340}
341
342fn digest(token: &[u8]) -> [u8; 32] {
343 *blake3::hash(token).as_bytes()
344}
345
346fn owner(grant: &SandboxGrant) -> Owner {
347 (grant.repository_id.clone(), grant.view.clone())

Callers 2

openMethod · 0.70
resolveMethod · 0.70

Calls 2

hashFunction · 0.50
as_bytesMethod · 0.45

Tested by

no test coverage detected