Struct coins_bip32::enc::BitcoinEncoder
source · [−]pub struct BitcoinEncoder<P: NetworkParams>(_);
Expand description
Parameterizable Bitcoin encoder
Trait Implementations
sourceimpl<P: Clone + NetworkParams> Clone for BitcoinEncoder<P>
impl<P: Clone + NetworkParams> Clone for BitcoinEncoder<P>
sourcefn clone(&self) -> BitcoinEncoder<P>
fn clone(&self) -> BitcoinEncoder<P>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<P: Debug + NetworkParams> Debug for BitcoinEncoder<P>
impl<P: Debug + NetworkParams> Debug for BitcoinEncoder<P>
sourceimpl<P: NetworkParams> XKeyEncoder for BitcoinEncoder<P>
impl<P: NetworkParams> XKeyEncoder for BitcoinEncoder<P>
sourcefn 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
sourcefn 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
sourcefn 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,
Attempt to instantiate an XPriv
from a std::io::Read
Read more
sourcefn read_xpub<R>(reader: &mut R) -> Result<XPub, Bip32Error> where
R: Read,
fn read_xpub<R>(reader: &mut R) -> Result<XPub, Bip32Error> where
R: Read,
Attempt to instantiate an XPub
from a std::io::Read
Read more
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more