Merge rust-bitcoin/rust-secp256k1#377: Use the new recover_ecdsa in bench function

c7a8bbb772 Use the new recover_ecdsa in bench function (Tobin Harding)

Pull request description:

  We recently deprecated `recover` in favour of `recover_ecdsa` but missed
  one call site in benches.

ACKs for top commit:
  apoelstra:
    ACK c7a8bbb772

Tree-SHA512: c57625ff50aea6c3985f7c7d52bf47ba6a48e93d3c60408edb6ab9ddc6e014171f8691dab954472b02ac745fcefa95c9206000560ef1ba64308b521b36563bfa
This commit is contained in:
Andrew Poelstra 2022-01-14 19:36:13 +00:00
commit 045896dae7
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -387,7 +387,7 @@ mod benches {
let sig = s.sign_ecdsa_recoverable(&msg, &sk); let sig = s.sign_ecdsa_recoverable(&msg, &sk);
bh.iter(|| { bh.iter(|| {
let res = s.recover(&msg, &sig).unwrap(); let res = s.recover_ecdsa(&msg, &sig).unwrap();
black_box(res); black_box(res);
}); });
} }