@@ -34,12 +34,6 @@ pub enum ErrorKind {
3434 /// Multisignature or threshold policy has a `k` value in
3535 /// excess of the number of subfragments
3636 OverThreshold ( usize , usize ) ,
37- /// Attempted to construct a disjunction (or `andor`) for which
38- /// none of the child nodes were strong. This means that a 3rd
39- /// party could produce a satisfaction for any branch, meaning
40- /// that no matter which one an honest signer chooses, it is
41- /// possible to malleate the transaction.
42- NoStrongChild ,
4337 /// Many fragments (all disjunctions except `or_i` as well as
4438 /// `andor` require their left child be dissatisfiable.
4539 LeftNotDissatisfiable ,
@@ -71,15 +65,6 @@ pub enum ErrorKind {
7165 ThresholdDissat ( usize ) ,
7266 /// The nth child of a threshold fragment was not a unit
7367 ThresholdNonUnit ( usize ) ,
74- /// Insufficiently many children of a threshold fragment were strong
75- ThresholdNotStrong {
76- /// Threshold parameter
77- k : usize ,
78- /// Number of children
79- n : usize ,
80- /// Number of strong children
81- n_strong : usize ,
82- } ,
8368}
8469
8570/// Error type for typechecking
@@ -115,13 +100,6 @@ impl fmt::Display for Error {
115100 make sense" ,
116101 self . fragment_string, k, n,
117102 ) ,
118- ErrorKind :: NoStrongChild => write ! (
119- f,
120- "fragment «{}» requires at least one strong child \
121- (a 3rd party cannot create a witness without having \
122- seen one before) to prevent malleability",
123- self . fragment_string,
124- ) ,
125103 ErrorKind :: LeftNotDissatisfiable => write ! (
126104 f,
127105 "fragment «{}» requires its left child be dissatisfiable" ,
@@ -185,17 +163,6 @@ impl fmt::Display for Error {
185163 exactly 1 on the stack given a satisfying input)",
186164 self . fragment_string, idx,
187165 ) ,
188- ErrorKind :: ThresholdNotStrong { k, n, n_strong } => write ! (
189- f,
190- "fragment «{}» is a {}-of-{} threshold, and needs {} of \
191- its children to be strong to prevent malleability; however \
192- only {} children were strong.",
193- self . fragment_string,
194- k,
195- n,
196- n - k,
197- n_strong,
198- ) ,
199166 }
200167 }
201168}
0 commit comments