pub struct PatchSetDigest(pub [u8; 32]);Expand description
RFC 117 T1: the newtype itself now lives in prikk-object (TagPayload carries one, and
prikk-object cannot depend on this crate) – re-exported here so every existing
crate::patch_set_digest::PatchSetDigest / prikk_store::PatchSetDigest path keeps resolving
to the same type, unchanged. Every function below that computes one stays here, matching
MerkleRoot/compute_state_root’s own split.
A 32-byte digest over a canonicalized set of patch ids (RFC 115 Stage 1 design D4). Not
persisted as its own object – a pure comparison value, MerkleRoot’s own shape. Lives here
rather than in prikk-store (where every value that computes one still does,
compute_patch_set_digest and friends) because TagPayload (RFC 117 T1) carries one, and
prikk-object cannot depend on prikk-store – the same crate-boundary reason
state_root.rs’s compute_state_root stays in prikk-store while MerkleRoot itself lives
here.
Tuple Fields§
§0: [u8; 32]Trait Implementations§
Source§impl Clone for PatchSetDigest
impl Clone for PatchSetDigest
Source§fn clone(&self) -> PatchSetDigest
fn clone(&self) -> PatchSetDigest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more