[−][src]Enum miniscript::interpreter::Error
Detailed Error type for Interpreter
Variants
AbsoluteLocktimeNotMet(u32)
Could not satisfy, absolute locktime not met
General Interpreter error.
We expected a push (including a OP_1
but no other numeric pushes)
The preimage to the hash function must be exactly 32 bytes.
Incorrect scriptPubKey (pay-to-pubkeyhash) for the provided public key
Incorrect scriptPubKey for the provided redeem script
Incorrect scriptPubKey (pay-to-witness-pubkeyhash) for the provided public key
Incorrect scriptPubKey for the provided witness script
MultiSig missing at least 1
witness elements out of k + 1
required
InvalidSignature(PublicKey)
Signature failed to verify
Miniscript(Error)
Miniscript error
MultiSig requires 1 extra zero element apart from the k
signatures
Script abortion because of incorrect dissatisfaction for multisig. Any input witness apart from sat(0 sig ...) or nsat(0 0 ..) leads to this error. This is network standardness assumption and miniscript only supports standard scripts
Witness must be empty for pre-segwit transactions
ScriptSig must be empty for pure segwit transactions
PkEvaluationError(PublicKey)
Script abortion because of incorrect dissatisfaction for Checksig. Any input witness apart from sat(sig) or nsat(0) leads to this error. This is network standardness assumption and miniscript only supports standard scripts
The Public Key hash check for the given pubkey. This occurs in PkH
node when the given key does not match to Hash in script.
Parse Error while parsing a stack::Element::Push
as a Pubkey. Both
33 byte and 65 bytes are supported.
RelativeLocktimeNotMet(u32)
Could not satisfy, relative locktime not met
Forward-secp related errors
Miniscript requires the entire top level script to be satisfied.
An uncompressed public key was encountered in a context where it is disallowed (e.g. in a Segwit script or p2wpkh output)
Got stack::Element::Satisfied
or stack::Element::Dissatisfied
when the
interpreter was expecting stack::Element::Push
Unexpected Stack End, caused by popping extra elements from stack
Unexpected Stack Push stack::Element::Push
element when the interpreter
was expecting a stack boolean stack::Element::Satisfied
or
stack::Element::Dissatisfied
Verify expects stack top element exactly to be stack::Element::Satisfied
.
This error is raised even if the stack top is stack::Element::Push
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,