#[non_exhaustive]pub enum WIFFormat {
Show 15 variants
Bitcoin = 128,
BitcoinTestnet = 239,
Litecoin = 176,
Dash = 204,
Dogecoin = 158,
Europecoin = 168,
Peercoin = 183,
Feathercoin = 142,
Fujicoin = 164,
VCash = 199,
Stratis = 191,
Clams = 133,
Blackcoin = 153,
Asiacoin = 151,
Hex = 152,
}Expand description
Format specification for formatting a private key as WIF.
Currently, this just specifies the blockchain network for which the WIF is intended to be used because for each blockchain network there is exactly one supported way to serialize the private key as a string.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bitcoin = 128
BitcoinTestnet = 239
Litecoin = 176
Dash = 204
Dogecoin = 158
Europecoin = 168
Peercoin = 183
Feathercoin = 142
Fujicoin = 164
VCash = 199
Stratis = 191
Clams = 133
Blackcoin = 153
Asiacoin = 151
Hex = 152
Format the private key directly as a hex string representing the raw private key bytes
Trait Implementations§
Source§impl From<&AddressFormat> for WIFFormat
impl From<&AddressFormat> for WIFFormat
Source§fn from(opts: &AddressFormat) -> Self
fn from(opts: &AddressFormat) -> Self
Obtain a WIFFormat using the same blockchain network as an AddressFormat
impl Copy for WIFFormat
impl Eq for WIFFormat
impl StructuralPartialEq for WIFFormat
Auto Trait Implementations§
impl Freeze for WIFFormat
impl RefUnwindSafe for WIFFormat
impl Send for WIFFormat
impl Sync for WIFFormat
impl Unpin for WIFFormat
impl UnwindSafe for WIFFormat
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