pub enum TxScriptError {
Show 31 variants
MalformedPushSize(Vec<u8>),
MalformedPush(usize, usize),
FalseStackEntry,
InvalidIndex(usize, usize),
StackSizeExceeded(usize, usize),
InvalidOpcode(String),
OpcodeReserved(String),
OpcodeDisabled(String),
EmptyStack,
CleanStack(usize),
EvalFalse,
EarlyReturn,
VerifyError,
InvalidState(String),
InvalidSignature(Error),
SigcacheSignatureInvalid,
TooManyOperations(i32),
NotATransactionInput,
ElementTooBig(usize, usize),
NotMinimalData(String),
InvalidSource(String),
UnsatisfiedLockTime(String),
NumberTooBig(String),
NullFail,
InvalidSignatureCount(String),
InvalidPubKeyCount(String),
InvalidSigHashType(u8),
PubKeyFormat,
SigLength(usize),
NoScripts,
SignatureScriptNotPushOnly,
}
Variants§
MalformedPushSize(Vec<u8>)
MalformedPush(usize, usize)
FalseStackEntry
InvalidIndex(usize, usize)
StackSizeExceeded(usize, usize)
InvalidOpcode(String)
OpcodeReserved(String)
OpcodeDisabled(String)
EmptyStack
CleanStack(usize)
EvalFalse
EarlyReturn
VerifyError
InvalidState(String)
InvalidSignature(Error)
SigcacheSignatureInvalid
TooManyOperations(i32)
NotATransactionInput
ElementTooBig(usize, usize)
NotMinimalData(String)
InvalidSource(String)
UnsatisfiedLockTime(String)
NumberTooBig(String)
NullFail
InvalidSignatureCount(String)
InvalidPubKeyCount(String)
InvalidSigHashType(u8)
PubKeyFormat
SigLength(usize)
NoScripts
SignatureScriptNotPushOnly
Trait Implementations§
source§impl Clone for TxScriptError
impl Clone for TxScriptError
source§fn clone(&self) -> TxScriptError
fn clone(&self) -> TxScriptError
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 TxScriptError
impl Debug for TxScriptError
source§impl Display for TxScriptError
impl Display for TxScriptError
source§impl Error for TxScriptError
impl Error for TxScriptError
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 PartialEq<TxScriptError> for TxScriptError
impl PartialEq<TxScriptError> for TxScriptError
source§fn eq(&self, other: &TxScriptError) -> bool
fn eq(&self, other: &TxScriptError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.