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)
Base58 encoding error
Bech32(Error)
Bech32 encoding error
The bech32 payload was empty
InvalidWitnessVersion(u8)
Script version must be 0 to 16 inclusive
InvalidWitnessProgramLength(usize)
The witness program must be between 2 and 40 bytes in length.
InvalidSegwitV0ProgramLength(usize)
A v0 witness program must be either of length 20 or 32.
An uncompressed pubkey was used where it is not allowed.
Trait Implementations
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
use the Display impl or to_string()
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