pub enum UnsupportedScriptPubkey {
WrongPubkeyValue,
NonTaprootV1,
UnsupportedWitnessVersion(WitnessVersion),
}
Expand description
Errors indicating variants of misformatted or unsupported (future)
pubkeyScript
Variants§
WrongPubkeyValue
public key in scriptPubkey
does not belong to Secp256k1 curve
NonTaprootV1
input spends non-taproot witness version 1
UnsupportedWitnessVersion(WitnessVersion)
input spends future witness version {0}
Trait Implementations§
source§impl Clone for UnsupportedScriptPubkey
impl Clone for UnsupportedScriptPubkey
source§fn clone(&self) -> UnsupportedScriptPubkey
fn clone(&self) -> UnsupportedScriptPubkey
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 UnsupportedScriptPubkey
impl Debug for UnsupportedScriptPubkey
source§impl Display for UnsupportedScriptPubkey
impl Display for UnsupportedScriptPubkey
source§impl Error for UnsupportedScriptPubkey
impl Error for UnsupportedScriptPubkey
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<Error> for UnsupportedScriptPubkey
impl From<Error> for UnsupportedScriptPubkey
source§impl From<Error> for UnsupportedScriptPubkey
impl From<Error> for UnsupportedScriptPubkey
source§impl From<UnsupportedScriptPubkey> for String
impl From<UnsupportedScriptPubkey> for String
source§fn from(err: UnsupportedScriptPubkey) -> Self
fn from(err: UnsupportedScriptPubkey) -> Self
Converts to this type from the input type.
source§impl Hash for UnsupportedScriptPubkey
impl Hash for UnsupportedScriptPubkey
source§impl Ord for UnsupportedScriptPubkey
impl Ord for UnsupportedScriptPubkey
source§fn cmp(&self, other: &UnsupportedScriptPubkey) -> Ordering
fn cmp(&self, other: &UnsupportedScriptPubkey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<UnsupportedScriptPubkey> for UnsupportedScriptPubkey
impl PartialEq<UnsupportedScriptPubkey> for UnsupportedScriptPubkey
source§fn eq(&self, other: &UnsupportedScriptPubkey) -> bool
fn eq(&self, other: &UnsupportedScriptPubkey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UnsupportedScriptPubkey> for UnsupportedScriptPubkey
impl PartialOrd<UnsupportedScriptPubkey> for UnsupportedScriptPubkey
source§fn partial_cmp(&self, other: &UnsupportedScriptPubkey) -> Option<Ordering>
fn partial_cmp(&self, other: &UnsupportedScriptPubkey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more