Skip to content

Commit 712a378

Browse files
committed
Merge #442: Fix depreciation warning typos
997b4b3 Fix depreciation warning typos (Tibo-lg) Pull request description: It got me confused for a second, might save a few minutes to the next person :). ACKs for top commit: apoelstra: ACK 997b4b3 Tree-SHA512: 313409bec0841c1dae6dd54511fad5ecf3ffbc48ea8df18d0916a299f60f38b7fd204f7d8720a89539ad8fc329bbea5f6eabf573278f773a0b982f72af31acf2
2 parents a0064c2 + 997b4b3 commit 712a378

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ecdsa/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ impl<C: Signing> Secp256k1<C> {
442442
/// signature implementation of bitcoin core. In average, this function
443443
/// will perform two signing operations.
444444
/// Requires a signing capable context.
445-
#[deprecated(since = "0.21.0", note = "Use sign_ecdsa_grind_r instead.")]
445+
#[deprecated(since = "0.21.0", note = "Use sign_ecdsa_low_r instead.")]
446446
pub fn sign_low_r(&self, msg: &Message, sk: &SecretKey) -> Signature {
447447
self.sign_grind_with_check(msg, sk, compact_sig_has_zero_first_bit)
448448
}

src/schnorr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl <C: Signing> Secp256k1<C> {
262262
#[inline]
263263
#[cfg(any(test, feature = "rand"))]
264264
#[cfg_attr(docsrs, doc(cfg(feature = "rand")))]
265-
#[deprecated(since = "0.21.0", note = "Use kp = KeyPair::new() and kp.public_key()")]
265+
#[deprecated(since = "0.21.0", note = "Use kp = KeyPair::new() and kp.x_only_public_key().0")]
266266
pub fn generate_schnorrsig_keypair<R: Rng + ?Sized>(
267267
&self,
268268
rng: &mut R,

0 commit comments

Comments
 (0)