pub enum ResolvedIdentity {
Key {
did: String,
public_key: Ed25519PublicKey,
},
Keri {
did: String,
public_key: Ed25519PublicKey,
sequence: u64,
can_rotate: bool,
},
}Expand description
Cryptographic material resolved from a decentralized identifier.
Usage:
ⓘ
use auths_core::ports::network::ResolvedIdentity;
let identity: ResolvedIdentity = resolver.resolve_identity("did:key:z...").await?;
let pk = identity.public_key();Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ResolvedIdentity
impl Clone for ResolvedIdentity
Source§fn clone(&self) -> ResolvedIdentity
fn clone(&self) -> ResolvedIdentity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedIdentity
impl RefUnwindSafe for ResolvedIdentity
impl Send for ResolvedIdentity
impl Sync for ResolvedIdentity
impl Unpin for ResolvedIdentity
impl UnsafeUnpin for ResolvedIdentity
impl UnwindSafe for ResolvedIdentity
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