pub trait Densor {
// Required methods
fn densor_id(&self) -> &str;
fn densor_kind(&self) -> DensorKind;
fn evidence_hash(&self) -> [u8; 32];
fn verify(&self) -> Result<(), DensorError>;
}Expand description
A sealed, self-verifying evidence object.
Required Methods§
Sourcefn densor_kind(&self) -> DensorKind
fn densor_kind(&self) -> DensorKind
The densor’s coarse kind (routing/inventory only).
Sourcefn evidence_hash(&self) -> [u8; 32]
fn evidence_hash(&self) -> [u8; 32]
The 32-byte evidence hash this densor seals to.
Sourcefn verify(&self) -> Result<(), DensorError>
fn verify(&self) -> Result<(), DensorError>
Re-derive the seal and confirm it matches (tamper-evident). Implementors must check densor_id is
non-empty and that a freshly computed seal equals Densor::evidence_hash.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".