pub struct Multikey { /* private fields */ }Expand description
A fully recognized public Multikey. Private fields and checked constructors prevent invalid values from being serialized. No secret-key API is provided.
Implementations§
Source§impl Multikey
impl Multikey
pub fn new(codec: PublicKeyCodec, bytes: &[u8]) -> Result<Self, MultikeyError>
Sourcepub fn parse(text: &str) -> Result<Self, MultikeyError>
pub fn parse(text: &str) -> Result<Self, MultikeyError>
Recognize canonical base58btc and the complete public-key payload.
pub fn codec(&self) -> PublicKeyCodec
pub fn public_key_bytes(&self) -> &[u8] ⓘ
pub fn to_multibase(&self) -> String
Trait Implementations§
impl Eq for Multikey
impl StructuralPartialEq for Multikey
Auto Trait Implementations§
impl Forget for Multikey
impl Freeze for Multikey
impl Move for Multikey
impl RefUnwindSafe for Multikey
impl Send for Multikeywhere
RawVecInner: Send,
impl Sync for Multikeywhere
RawVecInner: Sync,
impl Unpin for Multikey
impl UnsafeUnpin for Multikey
impl UnwindSafe for Multikeywhere
RawVecInner: UnwindSafe,
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