pub struct XpubCompact {
pub version: [u8; 4],
pub parent_fingerprint: [u8; 4],
pub chain_code: [u8; 32],
pub public_key: [u8; 33],
}Expand description
73-byte compact form.
Fields§
§version: [u8; 4]4-byte BIP 32 version prefix.
parent_fingerprint: [u8; 4]4-byte parent-key fingerprint.
chain_code: [u8; 32]32-byte BIP 32 chain code.
public_key: [u8; 33]33-byte compressed secp256k1 public key.
Implementations§
Trait Implementations§
Source§impl Clone for XpubCompact
impl Clone for XpubCompact
Source§fn clone(&self) -> XpubCompact
fn clone(&self) -> XpubCompact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XpubCompact
impl Debug for XpubCompact
Source§impl PartialEq for XpubCompact
impl PartialEq for XpubCompact
Source§fn eq(&self, other: &XpubCompact) -> bool
fn eq(&self, other: &XpubCompact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for XpubCompact
impl StructuralPartialEq for XpubCompact
Auto Trait Implementations§
impl Freeze for XpubCompact
impl RefUnwindSafe for XpubCompact
impl Send for XpubCompact
impl Sync for XpubCompact
impl Unpin for XpubCompact
impl UnsafeUnpin for XpubCompact
impl UnwindSafe for XpubCompact
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