From 34a3b8ad4ea9355e2f76908d1887a97820d83146 Mon Sep 17 00:00:00 2001 From: Tom French Date: Wed, 20 Sep 2023 19:17:42 +0100 Subject: [PATCH] chore: fix incorrect test input --- blackbox_solver/src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/blackbox_solver/src/lib.rs b/blackbox_solver/src/lib.rs index 294a3c71..c7f99404 100644 --- a/blackbox_solver/src/lib.rs +++ b/blackbox_solver/src/lib.rs @@ -388,8 +388,12 @@ mod secp256r1_tests { let mut long_hashed_message = HASHED_MESSAGE.to_vec(); long_hashed_message.push(0xff); - let valid = - verify_secp256r1_ecdsa_signature(&HASHED_MESSAGE, &PUB_KEY_X, &PUB_KEY_Y, &SIGNATURE); + let valid = verify_secp256r1_ecdsa_signature( + &long_hashed_message, + &PUB_KEY_X, + &PUB_KEY_Y, + &SIGNATURE, + ); assert!(valid) }