pub enum TxScriptError {
Show 46 variants
MalformedPushSize(Vec<u8>),
MalformedPush(usize, usize),
InvalidInputIndex(i32, usize),
InvalidCovInputIndex(i32),
StackSizeExceeded(usize, usize),
InvalidOpcode(String),
OpcodeReserved(String),
OpcodeDisabled(String),
EmptyStack,
CleanStack(usize),
EvalFalse,
EarlyReturn,
VerifyError,
InvalidState(String),
InvalidPubkey(Error),
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,
NoScripts,
SignatureScriptNotPushOnly,
ErrUnbalancedConditional,
InvalidStackOperation(usize, usize),
ScriptSize(usize, usize),
InvalidOutputIndex(i32, usize),
Serialization(SerializationError),
ExceededCommittedScriptUnits {
used: u64,
limit: u64,
},
ZkIntegrity(String),
OutOfBoundsSubstring(usize, usize, usize),
InvalidIndex(i32),
InvalidRange {
start: usize,
end: usize,
},
InvalidLengthOfBlockHash(usize),
BlockNotSelected(String),
BlockAlreadyPruned(String),
BlockIsTooDeep(String),
CovenantsError(CovenantsError),
}Variants§
MalformedPushSize(Vec<u8>)
MalformedPush(usize, usize)
InvalidInputIndex(i32, usize)
InvalidCovInputIndex(i32)
StackSizeExceeded(usize, usize)
InvalidOpcode(String)
OpcodeReserved(String)
OpcodeDisabled(String)
EmptyStack
CleanStack(usize)
EvalFalse
EarlyReturn
VerifyError
InvalidState(String)
InvalidPubkey(Error)
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
NoScripts
SignatureScriptNotPushOnly
ErrUnbalancedConditional
InvalidStackOperation(usize, usize)
ScriptSize(usize, usize)
InvalidOutputIndex(i32, usize)
Serialization(SerializationError)
ExceededCommittedScriptUnits
ZkIntegrity(String)
OutOfBoundsSubstring(usize, usize, usize)
InvalidIndex(i32)
InvalidRange
InvalidLengthOfBlockHash(usize)
BlockNotSelected(String)
BlockAlreadyPruned(String)
BlockIsTooDeep(String)
CovenantsError(CovenantsError)
Trait Implementations§
Source§impl Clone for TxScriptError
impl Clone for TxScriptError
Source§impl Debug for TxScriptError
impl Debug for TxScriptError
Source§impl Display for TxScriptError
impl Display for TxScriptError
impl Eq for TxScriptError
Source§impl Error for TxScriptError
impl Error for TxScriptError
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<CovenantsError> for TxScriptError
impl From<CovenantsError> for TxScriptError
Source§fn from(source: CovenantsError) -> Self
fn from(source: CovenantsError) -> Self
Converts to this type from the input type.
Source§impl From<SerializationError> for TxScriptError
impl From<SerializationError> for TxScriptError
Source§fn from(source: SerializationError) -> Self
fn from(source: SerializationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TxScriptError
impl PartialEq for TxScriptError
impl StructuralPartialEq for TxScriptError
Auto Trait Implementations§
impl Freeze for TxScriptError
impl RefUnwindSafe for TxScriptError
impl Send for TxScriptError
impl Sync for TxScriptError
impl Unpin for TxScriptError
impl UnsafeUnpin for TxScriptError
impl UnwindSafe for TxScriptError
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more