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

Function node_id

atomic-core/src/pristine/git_closure.rs:17–22  ·  view source on GitHub ↗
(node: &[u8; 64])

Source from the content-addressed store, hash-verified

15}
16
17fn node_id(node: &[u8; 64]) -> [u8; 32] {
18 let mut hasher = blake3::Hasher::new();
19 hasher.update(DOMAIN);
20 hasher.update(node);
21 *hasher.finalize().as_bytes()
22}
23
24pub(crate) fn encode(
25 closure: &[Hash],

Calls 3

updateMethod · 0.45
as_bytesMethod · 0.45
finalizeMethod · 0.45