Enum bitcoin::util::base58::Error [−][src]
pub enum Error {
BadByte(u8),
BadChecksum(u32, u32),
InvalidLength(usize),
InvalidExtendedKeyVersion([u8; 4]),
InvalidAddressVersion(u8),
TooShort(usize),
Secp256k1(Error),
}
Expand description
An error that might occur during base58 decoding
Variants
BadByte(u8)
Invalid character encountered
Tuple Fields of BadByte
0: u8
Checksum was not correct (expected, actual)
InvalidLength(usize)
The length (in bytes) of the object was not correct Note that if the length is excessively long the provided length may be an estimate (and the checksum step may be skipped).
Tuple Fields of InvalidLength
0: usize
Extended Key version byte(s) were not recognized
InvalidAddressVersion(u8)
Address version byte were not recognized
Tuple Fields of InvalidAddressVersion
0: u8
TooShort(usize)
Checked data was less than 4 bytes
Tuple Fields of TooShort
0: usize
Secp256k1(Error)
Secp256k1 error while parsing a secret key
Tuple Fields of Secp256k1
0: Error
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more