We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77e31b1 commit 2d1e4f2Copy full SHA for 2d1e4f2
1 file changed
crates/vapp/tests/clear.rs
@@ -1412,9 +1412,14 @@ fn test_clear_invalid_request_signature() {
1412
clear.request.signature[0] ^= 0xFF;
1413
}
1414
1415
- // Execute should fail because the corrupted request signature recovers the wrong address.
+ // A bit-flipped ECDSA signature either fails recovery or recovers a different signer
1416
+ // that then fails the request_id binding.
1417
let result = test.state.execute::<MockVerifier>(&clear_tx);
- assert!(result.is_err());
1418
+ assert!(matches!(
1419
+ result,
1420
+ Err(VAppError::Panic(VAppPanic::InvalidSignature { .. }))
1421
+ | Err(VAppError::Panic(VAppPanic::RequestIdMismatch { .. }))
1422
+ ));
1423
1424
1425
#[test]
0 commit comments