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

Function hash_bytes

libatomic/src/daemon/state.rs:462–464  ·  view source on GitHub ↗

A quick helper so handlers can echo hash bytes consistently.

(hash: &atomic_core::types::Merkle)

Source from the content-addressed store, hash-verified

460
461/// A quick helper so handlers can echo hash bytes consistently.
462pub fn hash_bytes(hash: &atomic_core::types::Merkle) -> Vec<u8> {
463 hash.0.to_vec()
464}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected