pub enum FreshnessEvidence {
Offline,
SourceAge(Duration),
FresherTip {
latest_seq: u128,
slice_as_of: u128,
},
}Expand description
What the verifier knows about a source fresher than the supplied slice (ADR 009 D3–D5). The verifier reads no clock and no network — this is an INPUT supplied at the boundary (a bundle timestamp, a witness head, a transparency-log tip), the one model both the time-based (bundle) and positional (KEL/credential) call sites share.
Variants§
Offline
No source fresher than the supplied slice was available (offline) → Unknown.
SourceAge(Duration)
The age of the freshest available source (a witness-head / checkpoint timestamp);
time-based, used by bundle verification. Within the policy window → Fresh, beyond
it → Stale.
FresherTip
A known-fresher tip handed to the verifier out of band (a witness head / log tip),
compared against the slice’s as_of; positional, used by KEL/credential verification.
Trait Implementations§
Source§impl Clone for FreshnessEvidence
impl Clone for FreshnessEvidence
Source§fn clone(&self) -> FreshnessEvidence
fn clone(&self) -> FreshnessEvidence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FreshnessEvidence
Source§impl Debug for FreshnessEvidence
impl Debug for FreshnessEvidence
impl Eq for FreshnessEvidence
Source§impl PartialEq for FreshnessEvidence
impl PartialEq for FreshnessEvidence
impl StructuralPartialEq for FreshnessEvidence
Auto Trait Implementations§
impl Freeze for FreshnessEvidence
impl RefUnwindSafe for FreshnessEvidence
impl Send for FreshnessEvidence
impl Sync for FreshnessEvidence
impl Unpin for FreshnessEvidence
impl UnsafeUnpin for FreshnessEvidence
impl UnwindSafe for FreshnessEvidence
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.