diff --git a/src/lib.rs b/src/lib.rs index 368e72361..f81deacd0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -508,7 +508,7 @@ pub trait ForEachKey { /// Miniscript -#[derive(Debug)] +#[derive(Debug, PartialEq)] pub enum Error { /// Opcode appeared which is not part of the script subset InvalidOpcode(opcodes::All), diff --git a/src/miniscript/analyzable.rs b/src/miniscript/analyzable.rs index 9ed62acf4..a6d84c23d 100644 --- a/src/miniscript/analyzable.rs +++ b/src/miniscript/analyzable.rs @@ -31,7 +31,7 @@ use {Miniscript, MiniscriptKey, ScriptContext}; /// 3. The script is malleable and thereby some of satisfaction weight /// guarantees are not satisfied. /// 4. It has repeated publickeys -#[derive(Debug)] +#[derive(Debug, PartialEq)] pub enum AnalysisError { /// Top level is not safe. SiglessBranch,