Merge rust-bitcoin/rust-bitcoin#4451: Set deprecation to released date of to_inner

51fe619fe0 Set deprecation to released date of to_inner (Tobin C. Harding)

Pull request description:

  In #4373 we added a couple new conversion methods and deprecated the `to_inner` ones. During that the deprecation date was set to `0.33.0`.

  We have backported the changes and will deprecate in `0.32.6` so set the version number now so we don't forget later.

ACKs for top commit:
  apoelstra:
    ACK 51fe619fe0c9e154a7979a3a71c56707bfa73e9c; successfully ran local tests
  shinghim:
    ACK 51fe619fe0

Tree-SHA512: 9f8badee92684204966107013b272ff51b88bee632bd6779ec6ecf2c78221c2228428a3c180200db5ae3205d042e58a6919dc9e621e153171e200e9b81c628d6
This commit is contained in:
merge-script 2025-05-07 13:28:56 +00:00
commit 3b57bd1ea9
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 6 additions and 2 deletions

View File

@ -887,8 +887,10 @@ impl TweakedPublicKey {
TweakedPublicKey(key)
}
/// Returns the underlying public key.
#[inline]
#[doc(hidden)]
#[deprecated(since = "0.33.0", note = "use to_x_only_public_key() instead")]
#[deprecated(since = "0.32.6", note = "use to_x_only_public_key() instead")]
pub fn to_inner(self) -> XOnlyPublicKey { self.0 }
/// Returns the underlying x-only public key.
@ -915,8 +917,10 @@ impl TweakedKeypair {
#[inline]
pub fn dangerous_assume_tweaked(pair: Keypair) -> TweakedKeypair { TweakedKeypair(pair) }
/// Returns the underlying key pair.
#[inline]
#[doc(hidden)]
#[deprecated(since = "0.33.0", note = "use to_keypair() instead")]
#[deprecated(since = "0.32.6", note = "use to_keypair() instead")]
pub fn to_inner(self) -> Keypair { self.0 }
/// Returns the underlying key pair.