pub struct BitcoinWifData(/* private fields */);Expand description
Constants for generating addresses and private keys in Bitcoin-based coins, when converting to Wallet Import Format (WIF).
Implementations§
Source§impl BitcoinWifData
impl BitcoinWifData
Sourcepub fn network_version(self) -> &'static [u8] ⓘ
pub fn network_version(self) -> &'static [u8] ⓘ
Gets the network version used in WIF conversion.
Sourcepub fn private_key_prefix(self) -> u8
pub fn private_key_prefix(self) -> u8
Gets the prefix to prepend when creating the WIF private key.
Sourcepub fn wif_start(self) -> &'static str
pub fn wif_start(self) -> &'static str
Returns the WIF character set for the beginning of the string.
Sourcepub fn cwif_start(self) -> &'static str
pub fn cwif_start(self) -> &'static str
Returns the CWIF character set for the beginning of the string.
Sourcepub fn check_wif(self, s: &str) -> bool
pub fn check_wif(self, s: &str) -> bool
See if the given string matches the character set returned by wif_start().
Sourcepub fn check_cwif(self, s: &str) -> bool
pub fn check_cwif(self, s: &str) -> bool
See if the given string matches the character set returned by cwif_start().
Trait Implementations§
Source§impl Clone for BitcoinWifData
impl Clone for BitcoinWifData
Source§fn clone(&self) -> BitcoinWifData
fn clone(&self) -> BitcoinWifData
Returns a duplicate 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 Debug for BitcoinWifData
impl Debug for BitcoinWifData
Source§impl Hash for BitcoinWifData
impl Hash for BitcoinWifData
Source§impl PartialEq for BitcoinWifData
impl PartialEq for BitcoinWifData
impl Copy for BitcoinWifData
impl Eq for BitcoinWifData
impl StructuralPartialEq for BitcoinWifData
Auto Trait Implementations§
impl Freeze for BitcoinWifData
impl RefUnwindSafe for BitcoinWifData
impl Send for BitcoinWifData
impl Sync for BitcoinWifData
impl Unpin for BitcoinWifData
impl UnwindSafe for BitcoinWifData
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more