pub struct ParsedMultikey {
pub codec_name: &'static str,
pub alg: &'static str,
pub public_key: Vec<u8>,
pub key_length: usize,
}Expand description
A multikey decoded into its codec metadata and raw public key bytes.
Fields§
§codec_name: &'static strCanonical multicodec name of the key type (e.g. ed25519-pub).
alg: &'static strHuman-readable algorithm name implied by the codec (e.g. Ed25519).
public_key: Vec<u8>Raw public key bytes with the multicodec prefix stripped.
key_length: usizeExpected public key length for the codec.
Auto Trait Implementations§
impl Freeze for ParsedMultikey
impl RefUnwindSafe for ParsedMultikey
impl Send for ParsedMultikey
impl Sync for ParsedMultikey
impl Unpin for ParsedMultikey
impl UnsafeUnpin for ParsedMultikey
impl UnwindSafe for ParsedMultikey
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