Enum crypto_addr::WIFFormat
source · #[non_exhaustive]
pub enum WIFFormat {
Bitcoin,
Litecoin,
Dash,
Dogecoin,
Europecoin,
Peercoin,
Ethereum,
}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.
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