Skip to content

Commit

Permalink
Remove call to deprecated methods
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tcharding committed Feb 22, 2022
1 parent 082a638 commit e18cce9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions no_std_test/src/main.rs
Expand Up @@ -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 _) };
}

Expand Down

0 comments on commit e18cce9

Please sign in to comment.