pub struct ObjectStoreReclamationEvidenceDigest(/* private fields */);Expand description
Digest of host-retained evidence for one object-store reclamation contract.
The source evidence should identify the provider, bucket, exact Trine key prefix, configuration revision, and the control-plane observations proving that the prefix is exclusively owned by Trine, unversioned, and not covered by bucket locks, retention rules, legal holds, or restore-on-delete automation. Do not hash credentials or other secrets into this value.
Trine persists this digest in every Prepared cloud sweep. Reopening with a different qualification therefore retains bytes rather than continuing an irreversible operation under changed evidence.
Implementations§
Source§impl ObjectStoreReclamationEvidenceDigest
impl ObjectStoreReclamationEvidenceDigest
Sourcepub fn for_bytes(evidence: &[u8]) -> Self
pub fn for_bytes(evidence: &[u8]) -> Self
Hashes a canonical, non-secret evidence document with SHA-256.
Sourcepub fn from_bytes(bytes: [u8; 33]) -> Result<Self>
pub fn from_bytes(bytes: [u8; 33]) -> Result<Self>
Reconstructs a digest from its portable algorithm-tagged bytes.
§Errors
Returns Error::InvalidFormat when the algorithm tag is unknown.
Trait Implementations§
Source§impl Clone for ObjectStoreReclamationEvidenceDigest
impl Clone for ObjectStoreReclamationEvidenceDigest
Source§fn clone(&self) -> ObjectStoreReclamationEvidenceDigest
fn clone(&self) -> ObjectStoreReclamationEvidenceDigest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more