pub struct VerificationReport {
pub status: VerificationStatus,
pub chain: Vec<ChainLink>,
pub warnings: Vec<String>,
pub witness_quorum: Option<WitnessQuorum>,
pub anchored: Option<AnchorStatus>,
pub duplicity_warning: Option<DuplicityReport>,
}Expand description
Machine-readable verification result containing status, chain details, and warnings.
Fields§
§status: VerificationStatusThe overall verification status
chain: Vec<ChainLink>Details of each link in the verification chain
warnings: Vec<String>Non-fatal warnings encountered during verification
witness_quorum: Option<WitnessQuorum>Optional witness quorum result (present when witness verification was performed)
anchored: Option<AnchorStatus>Whether the attestation is anchored in the issuer’s KEL via an ixn seal.
duplicity_warning: Option<DuplicityReport>Structured duplicity warning from the shared-KEL detector.
Fail-open: Valid with a Some(Diverging { … }) warning still
means the attestation signature verified. The warning surfaces
so CLI / iOS / CI can render a banner and point the user at
auths device remove to resolve.
None indicates no divergence was observed (or no shared-KEL
replay was performed).
Implementations§
Source§impl VerificationReport
impl VerificationReport
Sourcepub fn valid(chain: Vec<ChainLink>) -> Self
pub fn valid(chain: Vec<ChainLink>) -> Self
Creates a new valid VerificationReport with the given chain.
Sourcepub fn with_status(status: VerificationStatus, chain: Vec<ChainLink>) -> Self
pub fn with_status(status: VerificationStatus, chain: Vec<ChainLink>) -> Self
Creates a new VerificationReport with the given status and chain.
Sourcepub fn with_duplicity_warning(self, warning: DuplicityReport) -> Self
pub fn with_duplicity_warning(self, warning: DuplicityReport) -> Self
Attach a duplicity warning to this report. Does not change status —
fail-open policy: a diverging shared KEL is an orthogonal signal to
per-attestation signature validity.
Trait Implementations§
Source§impl Clone for VerificationReport
impl Clone for VerificationReport
Source§fn clone(&self) -> VerificationReport
fn clone(&self) -> VerificationReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerificationReport
impl Debug for VerificationReport
Source§impl<'de> Deserialize<'de> for VerificationReport
impl<'de> Deserialize<'de> for VerificationReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for VerificationReport
impl PartialEq for VerificationReport
Source§fn eq(&self, other: &VerificationReport) -> bool
fn eq(&self, other: &VerificationReport) -> bool
self and other values to be equal, and is used by ==.