pub enum VerifiedKeyMaterial {
Unverified,
Classical,
PqHybrid,
}Expand description
How a principal’s key material was verified, used to derive (never trust) an
Assurance. Produced by the envelope/claims verification layer — this type
is the seam between “what crypto verified” and “what the lattice sees”.
This intentionally mirrors the existing crypto reality (crypto/pq.rs,
register_pq_trust, crate::crypto::CryptoPolicy): an Ed25519 identity is
Classical until a bound ML-DSA-65 anchor lifts it to PqHybrid.
Variants§
Unverified
Identity / signature could not be verified at all → floor.
Classical
A classical signature verified (Ed25519 / p256 / secp256k1), and no bound post-quantum anchor is present. The federation edge.
PqHybrid
A hybrid composite verified: an Ed25519 identity with a bound ML-DSA-65
verifying key (the register_pq_trust binding) under
crate::crypto::CryptoPolicy::Hybrid.
Implementations§
Trait Implementations§
Source§impl Clone for VerifiedKeyMaterial
impl Clone for VerifiedKeyMaterial
Source§fn clone(&self) -> VerifiedKeyMaterial
fn clone(&self) -> VerifiedKeyMaterial
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 VerifiedKeyMaterial
impl Debug for VerifiedKeyMaterial
Source§impl<'de> Deserialize<'de> for VerifiedKeyMaterial
impl<'de> Deserialize<'de> for VerifiedKeyMaterial
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerifiedKeyMaterial, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VerifiedKeyMaterial, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for VerifiedKeyMaterial
impl PartialEq for VerifiedKeyMaterial
Source§fn eq(&self, other: &VerifiedKeyMaterial) -> bool
fn eq(&self, other: &VerifiedKeyMaterial) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for VerifiedKeyMaterial
impl Serialize for VerifiedKeyMaterial
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for VerifiedKeyMaterial
impl Eq for VerifiedKeyMaterial
impl StructuralPartialEq for VerifiedKeyMaterial
Auto Trait Implementations§
impl Freeze for VerifiedKeyMaterial
impl RefUnwindSafe for VerifiedKeyMaterial
impl Send for VerifiedKeyMaterial
impl Sync for VerifiedKeyMaterial
impl Unpin for VerifiedKeyMaterial
impl UnsafeUnpin for VerifiedKeyMaterial
impl UnwindSafe for VerifiedKeyMaterial
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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
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
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request