Enum bitcoin::util::address::Error [−][src]
pub enum Error {
Base58(Error),
Bech32(Error),
EmptyBech32Payload,
InvalidWitnessVersion(u8),
InvalidWitnessProgramLength(usize),
InvalidSegwitV0ProgramLength(usize),
UncompressedPubkey,
}Expand description
Address error.
Variants
Base58(Error)
Tuple Fields
0: ErrorBase58 encoding error
Bech32(Error)
Tuple Fields
0: ErrorBech32 encoding error
EmptyBech32Payload
The bech32 payload was empty
InvalidWitnessVersion(u8)
Tuple Fields
0: u8Script version must be 0 to 16 inclusive
InvalidWitnessProgramLength(usize)
Tuple Fields
0: usizeThe witness program must be between 2 and 40 bytes in length.
InvalidSegwitV0ProgramLength(usize)
Tuple Fields
0: usizeA v0 witness program must be either of length 20 or 32.
UncompressedPubkey
An uncompressed pubkey was used where it is not allowed.
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