Struct coins_bip32::enc::BitcoinEncoder
source · pub struct BitcoinEncoder<P: NetworkParams>(_);
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>where
W: Write,
K: AsRef<XPub>,
fn write_xpub<W, K>(writer: &mut W, key: &K) -> Result<usize, Bip32Error>where W: Write, K: AsRef<XPub>,
Serialize the xpub to std::io::Write
source§fn write_xpriv<W, K>(writer: &mut W, key: &K) -> Result<usize, Bip32Error>where
W: Write,
K: AsRef<XPriv>,
fn write_xpriv<W, K>(writer: &mut W, key: &K) -> Result<usize, Bip32Error>where W: Write, K: AsRef<XPriv>,
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>where
K: AsRef<XPriv>,
fn xpriv_to_base58<K>(k: &K) -> Result<String, Bip32Error>where K: AsRef<XPriv>,
Serialize an XPriv to base58
source§fn xpub_to_base58<K>(k: &K) -> Result<String, Bip32Error>where
K: AsRef<XPub>,
fn xpub_to_base58<K>(k: &K) -> Result<String, Bip32Error>where K: AsRef<XPub>,
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> 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