@@ -50,10 +50,6 @@ pub enum StmSignatureError<D: Digest + FixedOutput> {
50
50
#[ error( "Indeces are not unique." ) ]
51
51
IndexNotUnique ,
52
52
53
- /// The path is not valid for the Merkle Tree
54
- #[ error( "The path of the Merkle Tree is invalid." ) ]
55
- PathInvalid ( Path < D > ) ,
56
-
57
53
/// MSP.Eval was computed incorrectly
58
54
#[ error( "The claimed evaluation of function phi is incorrect." ) ]
59
55
EvalInvalid ( [ u8 ; 64 ] ) ,
@@ -76,7 +72,7 @@ pub enum StmSignatureError<D: Digest + FixedOutput> {
76
72
77
73
/// Invalid merkle batch path
78
74
#[ error( "Batch path does not verify against root" ) ]
79
- BatchPathInvalid ( BatchPath < D > ) ,
75
+ PathInvalid ( BatchPath < D > ) ,
80
76
}
81
77
82
78
/// Error types for aggregation.
@@ -141,9 +137,9 @@ impl<D: Digest + FixedOutput> From<RegisterError> for StmSignatureError<D> {
141
137
impl < D : Digest + FixedOutput > From < MerkleTreeError < D > > for StmSignatureError < D > {
142
138
fn from ( e : MerkleTreeError < D > ) -> Self {
143
139
match e {
144
- MerkleTreeError :: PathInvalid ( e) => Self :: PathInvalid ( e) ,
140
+ MerkleTreeError :: BatchPathInvalid ( e) => Self :: PathInvalid ( e) ,
145
141
MerkleTreeError :: SerializationError => Self :: SerializationError ,
146
- MerkleTreeError :: BatchPathInvalid ( e ) => Self :: BatchPathInvalid ( e ) ,
142
+ MerkleTreeError :: PathInvalid ( _e ) => unreachable ! ( ) ,
147
143
}
148
144
}
149
145
}
0 commit comments