pub enum PublishedKey {
Ed25519([u8; 32]),
P256([u8; 33]),
}Expand description
A signing key a DID document publishes, in the encoding the multicodec names. Compared byte for byte against the key a signature embeds.
Variants§
Ed25519([u8; 32])
An Ed25519 public key.
P256([u8; 33])
A P-256 public key as a compressed SEC1 point.
Implementations§
Trait Implementations§
Source§impl Clone for PublishedKey
impl Clone for PublishedKey
impl Copy for PublishedKey
Source§impl Debug for PublishedKey
impl Debug for PublishedKey
impl Eq for PublishedKey
Source§impl Hash for PublishedKey
impl Hash for PublishedKey
Source§impl PartialEq for PublishedKey
impl PartialEq for PublishedKey
impl StructuralPartialEq for PublishedKey
Auto Trait Implementations§
impl Forget for PublishedKey
impl Freeze for PublishedKey
impl Move for PublishedKey
impl RefUnwindSafe for PublishedKey
impl Send for PublishedKey
impl Sync for PublishedKey
impl Unpin for PublishedKey
impl UnsafeUnpin for PublishedKey
impl UnwindSafe for PublishedKey
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