pub struct At9pAliasResolver { /* private fields */ }Expand description
did:web / did:key → did:at9p aliasing resolver.
Wraps an untrusted CapsuleSource (the mainline locator is the production
implementation) and resolves a classical DID to its authoritative at9p
identity via mutual alsoKnownAs attestation + the GATE pipeline.
Implementations§
Source§impl At9pAliasResolver
impl At9pAliasResolver
Sourcepub fn new(source: Arc<dyn CapsuleSource>) -> Self
pub fn new(source: Arc<dyn CapsuleSource>) -> Self
Build an aliasing resolver over an untrusted capsule source.
Resolve classical_did to its authoritative did:at9p identity.
classical_aka_at9p is the classical leg’s claim — the did:at9p
identifier the classical DID document names in its own alsoKnownAs
(classical-signed, best-effort). This fetches the capsule for that at9p
DID from the (untrusted) source, runs the full GATE pipeline over the
bytes, and applies the mutual-attestation / authoritative-direction rule.
Fails closed at the first GATE failure or any one-way / unattested
claim. On success the at9p identity is authoritative at PqHybrid
assurance (the capsule leg walked).
Resolve a mutually-attested identity and retain the exact GATE witness.
Consumers that install trust material must source it from this verified capsule, not from the classical DID document that only supplies the reciprocal identifier vouch.
Auto Trait Implementations§
impl Freeze for At9pAliasResolver
impl !RefUnwindSafe for At9pAliasResolver
impl Send for At9pAliasResolver
impl Sync for At9pAliasResolver
impl Unpin for At9pAliasResolver
impl UnsafeUnpin for At9pAliasResolver
impl !UnwindSafe for At9pAliasResolver
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<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