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:
parent
dc90a43e68
commit
faa153988f
|
@ -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 _) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue