pub enum CovError {
MissingScriptCode,
MissingValue,
MissingSighashItem(u8),
MissingCovSignature,
BadCovDescriptor,
CovenantLift,
CovenantSighashTypeMismatch,
}
Expand description
Covenant related Errors
Variants§
MissingScriptCode
Missing script code (segwit sighash)
MissingValue
Missing value (segwit sighash)
MissingSighashItem(u8)
Missing a sighash Item in satisfier,
MissingCovSignature
Missing Sighash Signature This must be a secp signature serialized in DER format with the sighash byte
BadCovDescriptor
Bad(Malformed) Covenant Descriptor
CovenantLift
Cannot lift a Covenant Descriptor This is because the different components of the covenants might interact across branches and thus is not composable and could not be analyzed individually.
CovenantSighashTypeMismatch
The Covenant Sighash type and the satisfier sighash type must be the same
Trait Implementations§
Source§impl Error for CovError
impl Error for CovError
1.30.0 · 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 Ord for CovError
impl Ord for CovError
Source§impl PartialOrd for CovError
impl PartialOrd for CovError
impl Copy for CovError
impl Eq for CovError
impl StructuralPartialEq for CovError
Auto Trait Implementations§
impl Freeze for CovError
impl RefUnwindSafe for CovError
impl Send for CovError
impl Sync for CovError
impl Unpin for CovError
impl UnwindSafe for CovError
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