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

Function hash

atomic-core/src/pristine/traits/view.rs:1134–1136  ·  view source on GitHub ↗
(byte: u8)

Source from the content-addressed store, hash-verified

1132 }
1133
1134 fn hash(byte: u8) -> Hash {
1135 Hash::from_bytes([byte; 32])
1136 }
1137
1138 fn chain_hash(id: u64) -> Hash {
1139 let mut bytes = [0u8; 32];

Calls

no outgoing calls