pub enum SegwitError {
InvalidWitnessVersion(u8),
MalformedWitnessVersion,
InvalidWitnessProgramLength(usize),
InvalidSegwitV0ProgramLength(usize),
UncompressedPubkey,
}
Variants§
InvalidWitnessVersion(u8)
Script version must be 0 to 16 inclusive.
MalformedWitnessVersion
Bitcoin script opcode does not match any known witness version, the script is malformed.
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.
UncompressedPubkey
An uncompressed pubkey was used where it is not allowed.
Trait Implementations§
Source§impl Clone for SegwitError
impl Clone for SegwitError
Source§fn clone(&self) -> SegwitError
fn clone(&self) -> SegwitError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SegwitError
impl Debug for SegwitError
Source§impl Display for SegwitError
impl Display for SegwitError
Source§impl Error for SegwitError
impl Error for SegwitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<SegwitError> for String
impl From<SegwitError> for String
Source§fn from(err: SegwitError) -> String
fn from(err: SegwitError) -> String
Converts to this type from the input type.
Source§impl Hash for SegwitError
impl Hash for SegwitError
Source§impl PartialEq for SegwitError
impl PartialEq for SegwitError
impl Copy for SegwitError
impl Eq for SegwitError
impl StructuralPartialEq for SegwitError
Auto Trait Implementations§
impl Freeze for SegwitError
impl RefUnwindSafe for SegwitError
impl Send for SegwitError
impl Sync for SegwitError
impl Unpin for SegwitError
impl UnwindSafe for SegwitError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.