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)
Tuple Fields
0: u8
Invalid character encountered
BadChecksum(u32, u32)
Checksum was not correct (expected, actual)
InvalidLength(usize)
Tuple Fields
0: 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).
InvalidExtendedKeyVersion([u8; 4])
Extended Key version byte(s) were not recognized
InvalidAddressVersion(u8)
Tuple Fields
0: u8
Address version byte were not recognized
TooShort(usize)
Tuple Fields
0: usize
Checked data was less than 4 bytes
Secp256k1(Error)
Tuple Fields
0: Error
Secp256k1 error while parsing a secret key
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