File tree 2 files changed +2
-5
lines changed
2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ pub enum VerificationError {
12
12
BatchErr ,
13
13
#[ error( "Generic error" ) ]
14
14
GenericErr ,
15
- #[ error( "Message is longer than supported" ) ]
16
- MessageTooLong ,
17
15
#[ error( "Invalid hash format" ) ]
18
16
InvalidHashFormat ,
19
17
#[ error( "Invalid signature format" ) ]
@@ -45,7 +43,6 @@ impl PartialEq<VerificationError> for VerificationError {
45
43
match self {
46
44
VerificationError :: BatchErr => matches ! ( rhs, VerificationError :: BatchErr ) ,
47
45
VerificationError :: GenericErr => matches ! ( rhs, VerificationError :: GenericErr ) ,
48
- VerificationError :: MessageTooLong => matches ! ( rhs, VerificationError :: MessageTooLong ) ,
49
46
VerificationError :: InvalidHashFormat => {
50
47
matches ! ( rhs, VerificationError :: InvalidHashFormat )
51
48
}
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ impl Api for ExternalApi {
279
279
match result {
280
280
0 => Ok ( true ) ,
281
281
1 => Ok ( false ) ,
282
- 2 => Err ( VerificationError :: MessageTooLong ) ,
282
+ 2 => panic ! ( " MessageTooLong must not happen. This is a bug in the VM." ) ,
283
283
3 => panic ! ( "InvalidHashFormat must not happen. This is a bug in the VM." ) ,
284
284
4 => Err ( VerificationError :: InvalidSignatureFormat ) ,
285
285
5 => Err ( VerificationError :: InvalidPubkeyFormat ) ,
@@ -311,7 +311,7 @@ impl Api for ExternalApi {
311
311
match result {
312
312
0 => Ok ( true ) ,
313
313
1 => Ok ( false ) ,
314
- 2 => Err ( VerificationError :: MessageTooLong ) ,
314
+ 2 => panic ! ( " MessageTooLong must not happen. This is a bug in the VM." ) ,
315
315
3 => panic ! ( "InvalidHashFormat must not happen. This is a bug in the VM." ) ,
316
316
4 => Err ( VerificationError :: InvalidSignatureFormat ) ,
317
317
5 => Err ( VerificationError :: InvalidPubkeyFormat ) ,
You can’t perform that action at this time.
0 commit comments