@@ -34,12 +34,6 @@ pub enum ErrorKind {
34
34
/// Multisignature or threshold policy has a `k` value in
35
35
/// excess of the number of subfragments
36
36
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 ,
43
37
/// Many fragments (all disjunctions except `or_i` as well as
44
38
/// `andor` require their left child be dissatisfiable.
45
39
LeftNotDissatisfiable ,
@@ -71,15 +65,6 @@ pub enum ErrorKind {
71
65
ThresholdDissat ( usize ) ,
72
66
/// The nth child of a threshold fragment was not a unit
73
67
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
- } ,
83
68
}
84
69
85
70
/// Error type for typechecking
@@ -115,13 +100,6 @@ impl fmt::Display for Error {
115
100
make sense" ,
116
101
self . fragment_string, k, n,
117
102
) ,
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
- ) ,
125
103
ErrorKind :: LeftNotDissatisfiable => write ! (
126
104
f,
127
105
"fragment «{}» requires its left child be dissatisfiable" ,
@@ -185,17 +163,6 @@ impl fmt::Display for Error {
185
163
exactly 1 on the stack given a satisfying input)",
186
164
self . fragment_string, idx,
187
165
) ,
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
- ) ,
199
166
}
200
167
}
201
168
}
0 commit comments