Merge rust-bitcoin/rust-secp256k1#413: Remove call to deprecated methods

faa153988f Remove call to deprecated methods (Tobin Harding)

Pull request description:

  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.

ACKs for top commit:
  apoelstra:
    ACK faa153988f

Tree-SHA512: 27a66e3e254744dfeae46ecc846e1c3229277254d9847f87de3167704d3425a504f8bee22be859f4e119672b1b18b98c3b31d84149d68b5f9c5c1c580662f989
This commit is contained in:
Andrew Poelstra 2022-03-08 19:48:47 +00:00
commit 69bbe859df
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
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 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 _) };
}