Struct coins_bip32::enc::BitcoinEncoder
source · pub struct BitcoinEncoder<P: NetworkParams>(/* private fields */);
Expand description
Parameterizable Bitcoin encoder
Trait Implementations§
source§impl<P: Clone + NetworkParams> Clone for BitcoinEncoder<P>
impl<P: Clone + NetworkParams> Clone for BitcoinEncoder<P>
source§fn clone(&self) -> BitcoinEncoder<P>
fn clone(&self) -> BitcoinEncoder<P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<P: Debug + NetworkParams> Debug for BitcoinEncoder<P>
impl<P: Debug + NetworkParams> Debug for BitcoinEncoder<P>
source§impl<P: NetworkParams> XKeyEncoder for BitcoinEncoder<P>
impl<P: NetworkParams> XKeyEncoder for BitcoinEncoder<P>
source§fn write_xpub<W, K>(writer: &mut W, key: &K) -> Result<usize, Bip32Error>
fn write_xpub<W, K>(writer: &mut W, key: &K) -> Result<usize, Bip32Error>
Serialize the xpub to std::io::Write
source§fn write_xpriv<W, K>(writer: &mut W, key: &K) -> Result<usize, Bip32Error>
fn write_xpriv<W, K>(writer: &mut W, key: &K) -> Result<usize, Bip32Error>
Serialize the xpriv to std::io::Write
source§fn read_xpriv<R>(reader: &mut R) -> Result<XPriv, Bip32Error>where
R: Read,
fn read_xpriv<R>(reader: &mut R) -> Result<XPriv, Bip32Error>where
R: Read,
source§fn xpriv_to_base58<K>(k: &K) -> Result<String, Bip32Error>
fn xpriv_to_base58<K>(k: &K) -> Result<String, Bip32Error>
Serialize an XPriv to base58
source§fn xpub_to_base58<K>(k: &K) -> Result<String, Bip32Error>
fn xpub_to_base58<K>(k: &K) -> Result<String, Bip32Error>
Serialize an XPub to base58
source§fn xpriv_from_base58(s: &str) -> Result<XPriv, Bip32Error>
fn xpriv_from_base58(s: &str) -> Result<XPriv, Bip32Error>
Attempt to read an XPriv from a b58check string. Read more
source§fn xpub_from_base58(s: &str) -> Result<XPub, Bip32Error>
fn xpub_from_base58(s: &str) -> Result<XPub, Bip32Error>
Attempt to read an XPub from a b58check string Read more
Auto Trait Implementations§
impl<P> Freeze for BitcoinEncoder<P>
impl<P> RefUnwindSafe for BitcoinEncoder<P>
impl<P> Send for BitcoinEncoder<P>
impl<P> Sync for BitcoinEncoder<P>
impl<P> Unpin for BitcoinEncoder<P>
impl<P> UnwindSafe for BitcoinEncoder<P>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)