pub enum Error {
Show 29 variants
ScriptLexer(Error),
AddrError(ParseError),
AddrP2shError(P2shError),
UnexpectedStart,
Unexpected(String),
UnknownWrapper(char),
NonTopLevel(String),
Trailing(String),
MissingSig(PublicKey),
CouldNotSatisfy,
TypeCheck(String),
Secp(Error),
ConcretePolicy(PolicyError),
LiftError(LiftError),
ContextError(ScriptContextError),
TapTreeDepthError(TapTreeDepthError),
MaxRecursiveDepthExceeded,
NonStandardBareScript,
AnalysisError(AnalysisError),
ImpossibleSatisfaction,
BareDescriptorAddr,
PubKeyCtxError(KeyError, &'static str),
TrNoScriptCode,
MultipathDescLenMismatch,
AbsoluteLockTime(AbsLockTimeError),
RelativeLockTime(RelLockTimeError),
Threshold(ThresholdError),
ParseThreshold(ParseThresholdError),
Parse(ParseError),
}Expand description
Miniscript
Variants§
ScriptLexer(Error)
Error when lexing a bitcoin Script.
AddrError(ParseError)
rust-bitcoin address error
AddrP2shError(P2shError)
rust-bitcoin p2sh address error
UnexpectedStart
While parsing backward, hit beginning of script
Unexpected(String)
Got something we were not expecting
UnknownWrapper(char)
Encountered a wrapping character that we don’t recognize
NonTopLevel(String)
Parsed a miniscript and the result was not of type T
Trailing(String)
Parsed a miniscript but there were more script opcodes after it
MissingSig(PublicKey)
Could not satisfy a script (fragment) because of a missing signature
CouldNotSatisfy
General failure to satisfy
TypeCheck(String)
Typechecking failed
Secp(Error)
Forward-secp related errors
ConcretePolicy(PolicyError)
Errors related to policy
LiftError(LiftError)
Errors related to lifting
ContextError(ScriptContextError)
Forward script context related errors
TapTreeDepthError(TapTreeDepthError)
Tried to construct a Taproot tree which was too deep.
MaxRecursiveDepthExceeded
Recursion depth exceeded when parsing policy/miniscript from string
NonStandardBareScript
Anything but c:pk(key) (P2PK), c:pk_h(key) (P2PKH), and thresh_m(k,…) up to n=3 is invalid by standardness (bare)
AnalysisError(AnalysisError)
Analysis Error
ImpossibleSatisfaction
Miniscript is equivalent to false. No possible satisfaction
BareDescriptorAddr
Bare descriptors don’t have any addresses
PubKeyCtxError(KeyError, &'static str)
PubKey invalid under current context
TrNoScriptCode
No script code for Tr descriptors
MultipathDescLenMismatch
At least two BIP389 key expressions in the descriptor contain tuples of derivation indexes of different lengths.
AbsoluteLockTime(AbsLockTimeError)
Invalid absolute locktime
RelativeLockTime(RelLockTimeError)
Invalid absolute locktime
Threshold(ThresholdError)
Invalid threshold.
ParseThreshold(ParseThresholdError)
Invalid threshold.
Parse(ParseError)
Invalid expression tree.
Trait Implementations§
Source§impl Error for Error
Available on crate feature std only.
impl Error for Error
std only.