From 997b4b35a9f014b8a37087ff6857d74adc82a2d9 Mon Sep 17 00:00:00 2001 From: Tibo-lg Date: Fri, 6 May 2022 16:00:32 +0900 Subject: [PATCH] Fix depreciation warning typos --- src/ecdsa/mod.rs | 2 +- src/schnorr.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ecdsa/mod.rs b/src/ecdsa/mod.rs index 1e8725a..4f4a42c 100644 --- a/src/ecdsa/mod.rs +++ b/src/ecdsa/mod.rs @@ -442,7 +442,7 @@ impl Secp256k1 { /// signature implementation of bitcoin core. In average, this function /// will perform two signing operations. /// Requires a signing capable context. - #[deprecated(since = "0.21.0", note = "Use sign_ecdsa_grind_r instead.")] + #[deprecated(since = "0.21.0", note = "Use sign_ecdsa_low_r instead.")] pub fn sign_low_r(&self, msg: &Message, sk: &SecretKey) -> Signature { self.sign_grind_with_check(msg, sk, compact_sig_has_zero_first_bit) } diff --git a/src/schnorr.rs b/src/schnorr.rs index 523cf67..9c745e4 100644 --- a/src/schnorr.rs +++ b/src/schnorr.rs @@ -262,7 +262,7 @@ impl Secp256k1 { #[inline] #[cfg(any(test, feature = "rand"))] #[cfg_attr(docsrs, doc(cfg(feature = "rand")))] - #[deprecated(since = "0.21.0", note = "Use kp = KeyPair::new() and kp.public_key()")] + #[deprecated(since = "0.21.0", note = "Use kp = KeyPair::new() and kp.x_only_public_key().0")] pub fn generate_schnorrsig_keypair( &self, rng: &mut R,