pub trait SensingEvidenceAuthenticator {
// Required method
fn authenticates(&self, evidence: &SensingEvidence) -> bool;
// Provided method
fn calibration_verified(&self, _evidence: &SensingEvidence) -> bool { ... }
}Expand description
Implemented only at the trust boundary that can verify the signed evidence
envelope and its source/grant/revocation/retention state. true must bind
every field of evidence, including its fact bytes, unit, uncertainty,
calibration declaration and IDs; a bare hash or unsigned record is never
sufficient. This trait is an authority boundary, not a signature algorithm.
Required Methods§
fn authenticates(&self, evidence: &SensingEvidence) -> bool
Provided Methods§
Sourcefn calibration_verified(&self, _evidence: &SensingEvidence) -> bool
fn calibration_verified(&self, _evidence: &SensingEvidence) -> bool
Confirm that the referenced calibration artifact itself is valid for this source/sample/quantity/time. A signed declaration alone is not calibration verification. Implementations may conservatively return false when no calibration authority or resolver is available.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".