pub enum FailureEvidence {
ReplicationFailure {
peer: PeerId,
key: XorName,
},
AuditFailure {
challenge_id: u64,
challenged_peer: PeerId,
confirmed_failed_keys: Vec<XorName>,
summary: AuditFailureSummary,
reason: AuditFailureReason,
},
BootstrapClaimAbuse {
peer: PeerId,
first_seen: Instant,
},
QuoteCommitmentMismatch {
peer: PeerId,
pinned_commitment: [u8; 32],
quoted_key_count: u32,
committed_key_count: u32,
quote_artifact: Vec<u8>,
commitment: Box<StorageCommitment>,
},
}Expand description
Failure evidence types emitted to TrustEngine (Section 14).
Variants§
ReplicationFailure
Failed fetch attempt from a source peer.
Fields
AuditFailure
Audit failure with confirmed responsible keys.
Fields
summary: AuditFailureSummaryAggregated reason counts for the confirmed failures.
reason: AuditFailureReasonWhy the audit failed.
BootstrapClaimAbuse
Peer claiming bootstrap past grace period.
QuoteCommitmentMismatch
ADR-0004: a quote’s claimed committed key count contradicts the signed commitment it pinned. The quote and the commitment are both signed by the same key, so this is a deterministic, first-occurrence contradiction — not bad luck — and lands in the same trust lane as a confirmed deterministic audit failure. Reported only in the client-put context (a replication receipt’s pin has legitimately aged out). The fields are the portable contradiction: any third party holding the two signed artifacts can recompute it.
Fields
pinned_commitment: [u8; 32]The commitment hash the quote pinned (identifies the signed
commitment artifact); equals commitment.hash().
quote_artifact: Vec<u8>The signed quote artifact that carries the contradicting
committed_key_count + pin, ML-DSA-signed by peer, as canonical
serialized bytes. Carried opaquely (rmp of a PaymentQuote on the
single-node path, or a MerklePaymentCandidateNode on the merkle
path) so the one variant serves both paths; a third party
deserializes and re-verifies it against peer.
commitment: Box<StorageCommitment>The signed commitment artifact the quote pinned (ML-DSA-signed by
the same peer). Together with quote_artifact, this is the
PORTABLE evidence: any third party re-verifies both signatures and
recomputes quoted_key_count != commitment.key_count without
trusting the reporter.
Trait Implementations§
Source§impl Clone for FailureEvidence
impl Clone for FailureEvidence
Source§fn clone(&self) -> FailureEvidence
fn clone(&self) -> FailureEvidence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for FailureEvidence
impl RefUnwindSafe for FailureEvidence
impl Send for FailureEvidence
impl Sync for FailureEvidence
impl Unpin for FailureEvidence
impl UnsafeUnpin for FailureEvidence
impl UnwindSafe for FailureEvidence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more