Skip to main content

Module bytes

Module bytes 

Source
Expand description

Bytes32 — the crate’s own 32-byte value type.

dig-urn-protocol is a LEAF crate (no dig-* dependencies), so it defines its own newtype for the 32-byte identifiers a URN carries — the store id, the generation root hash, the retrieval key, and merkle roots/leaves. It is byte-compatible with digstore_core::Bytes32: a caller bridges the two with Bytes32::from(bytes.0) / bytes.0.

Structs§

Bytes32
A 32-byte value (a store id, a root hash, a retrieval key, or a merkle node).
InvalidBytes32
The input was not exactly 64 lowercase-or-uppercase hex digits.