#[repr(u8)]pub enum Assurance {
Unverified = 0,
Classical = 1,
PqHybrid = 2,
}Expand description
Crypto-assurance axis (#548) — a total order derived from verified key material, never claimed.
This is the dimension that lets a classical (ATProto/p256/secp256k1) federation perimeter coexist with the mandatory PQC interior without a hole: PQC-required data is labeled at an assurance only a PQC-bound principal dominates, and the ordinary dominance check does the rest.
Derivation (a property of the verified identity — see
super::context::SecurityContext::derive_assurance):
Unverified— assurance could not be established (fail-closed; the floor).Classical— authenticated by a classical DID only (Ed25519/p256/ secp256k1); no bound PQC anchor.PqHybrid— has a verified hybrid-PQC anchor (Ed25519 ↔ ML-DSA-65 bound viaregister_pq_trust), i.e. thecrate::crypto::CryptoPolicy::Hybridcomposite verified.
Variants§
Unverified = 0
Assurance could not be verified. Floor of the axis. A subject at
Unverified dominates nothing above it; an object requiring more than
Unverified is therefore unreachable by such a subject — fail-closed.
Classical = 1
Classical DID, no post-quantum binding (the federation edge).
PqHybrid = 2
Verified hybrid post-quantum anchor (EdDSA + ML-DSA-65).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Assurance
impl<'de> Deserialize<'de> for Assurance
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 Ord for Assurance
impl Ord for Assurance
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Assurance
impl PartialOrd for Assurance
impl Copy for Assurance
impl Eq for Assurance
impl StructuralPartialEq for Assurance
Auto Trait Implementations§
impl Freeze for Assurance
impl RefUnwindSafe for Assurance
impl Send for Assurance
impl Sync for Assurance
impl Unpin for Assurance
impl UnsafeUnpin for Assurance
impl UnwindSafe for Assurance
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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