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.
This commit is contained in:
Tobin Harding 2022-02-21 14:07:26 +00:00
parent dc90a43e68
commit faa153988f
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 2 additions and 2 deletions

View File

@ -133,8 +133,8 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
let public_key = PublicKey::from_secret_key(&secp_alloc, &secret_key); let public_key = PublicKey::from_secret_key(&secp_alloc, &secret_key);
let message = Message::from_slice(&[0xab; 32]).expect("32 bytes"); let message = Message::from_slice(&[0xab; 32]).expect("32 bytes");
let sig = secp_alloc.sign(&message, &secret_key); let sig = secp_alloc.sign_ecdsa(&message, &secret_key);
assert!(secp_alloc.verify(&message, &sig, &public_key).is_ok()); assert!(secp_alloc.verify_ecdsa(&message, &sig, &public_key).is_ok());
unsafe { libc::printf("Verified alloc Successfully!\n\0".as_ptr() as _) }; unsafe { libc::printf("Verified alloc Successfully!\n\0".as_ptr() as _) };
} }