#[non_exhaustive]pub struct VerifiedIdentity { /* private fields */ }Expand description
A signature-verified requester identity (SPEC.md §14.6, §14.10). Carries only the SPKI: this
level-00 crate cannot compute a peer_id from it (that is dig_tls::peer_id_from_tls_spki_der,
a dig-* crate this one must never depend on) — callers that want the peer_id hash the SPKI
with that function themselves.
What this does NOT prove, stated once so nothing downstream over-reads it: network
membership, relay registration, on-chain standing, or that any later claim from the same
session is true (SPEC.md §14.1, §14.10, §7). It proves exactly key possession, freshness, and
return-routability.
#[non_exhaustive]: constructed only by verify_signed_request, so an additive field is a
patch release for every consumer.
Implementations§
Trait Implementations§
Source§impl Clone for VerifiedIdentity
impl Clone for VerifiedIdentity
Source§fn clone(&self) -> VerifiedIdentity
fn clone(&self) -> VerifiedIdentity
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 VerifiedIdentity
Source§impl Debug for VerifiedIdentity
impl Debug for VerifiedIdentity
impl Eq for VerifiedIdentity
Source§impl PartialEq for VerifiedIdentity
impl PartialEq for VerifiedIdentity
impl StructuralPartialEq for VerifiedIdentity
Auto Trait Implementations§
impl Freeze for VerifiedIdentity
impl RefUnwindSafe for VerifiedIdentity
impl Send for VerifiedIdentity
impl Sync for VerifiedIdentity
impl Unpin for VerifiedIdentity
impl UnsafeUnpin for VerifiedIdentity
impl UnwindSafe for VerifiedIdentity
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