From e18cce9ffbacfba10b083bdafca416c319990817 Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Mon, 21 Feb 2022 14:07:26 +0000 Subject: [PATCH] Remove call to deprecated methods We recently added `sign_ecdsa` and `verify_ecdsa` and deprecated `sign` and `verify`. The `no_std_test` crate got missed during the upgrade. Remove call to deprecated methods `sign` and `verify` in `no_std_test` crate. --- no_std_test/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/no_std_test/src/main.rs b/no_std_test/src/main.rs index d245ce9dd..68cdd9184 100644 --- a/no_std_test/src/main.rs +++ b/no_std_test/src/main.rs @@ -139,8 +139,8 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize { let public_key = PublicKey::from_secret_key(&secp_alloc, &secret_key); let message = Message::from_slice(&[0xab; 32]).expect("32 bytes"); - let sig = secp_alloc.sign(&message, &secret_key); - assert!(secp_alloc.verify(&message, &sig, &public_key).is_ok()); + let sig = secp_alloc.sign_ecdsa(&message, &secret_key); + assert!(secp_alloc.verify_ecdsa(&message, &sig, &public_key).is_ok()); unsafe { libc::printf("Verified alloc Successfully!\n\0".as_ptr() as _) }; }