Enum bp::SegwitError 
source · 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)>
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<SegwitError> for SegwitError
 
impl PartialEq<SegwitError> for SegwitError
source§fn eq(&self, other: &SegwitError) -> bool
 
fn eq(&self, other: &SegwitError) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Copy for SegwitError
impl Eq for SegwitError
impl StructuralEq for SegwitError
impl StructuralPartialEq for SegwitError
Auto Trait Implementations§
impl RefUnwindSafe for SegwitError
impl Send for SegwitError
impl Sync for SegwitError
impl Unpin for SegwitError
impl UnwindSafe for SegwitError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.