pub enum DecodedDidKey {
Ed25519(Box<VerifyingKey>),
P256(Vec<u8>),
}Expand description
A public key decoded from a did:key identifier.
Variants§
Ed25519(Box<VerifyingKey>)
Ed25519 verifying key — the eddsa-jcs-2022 cryptosuite.
P256(Vec<u8>)
Compressed P-256 point — the ecdsa-jcs-2019 cryptosuite. Returned as
raw bytes so callers that do not need ES256 pay nothing to parse it.
Trait Implementations§
Source§impl Clone for DecodedDidKey
impl Clone for DecodedDidKey
Source§impl Debug for DecodedDidKey
impl Debug for DecodedDidKey
impl Eq for DecodedDidKey
Source§impl PartialEq for DecodedDidKey
impl PartialEq for DecodedDidKey
impl StructuralPartialEq for DecodedDidKey
Auto Trait Implementations§
impl Freeze for DecodedDidKey
impl RefUnwindSafe for DecodedDidKey
impl Send for DecodedDidKey
impl Sync for DecodedDidKey
impl Unpin for DecodedDidKey
impl UnsafeUnpin for DecodedDidKey
impl UnwindSafe for DecodedDidKey
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