Set deprecation to released date of to_inner
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.
This commit is contained in:
parent
723cf91060
commit
51fe619fe0
|
@ -887,8 +887,10 @@ impl TweakedPublicKey {
|
||||||
TweakedPublicKey(key)
|
TweakedPublicKey(key)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns the underlying public key.
|
||||||
|
#[inline]
|
||||||
#[doc(hidden)]
|
#[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 }
|
pub fn to_inner(self) -> XOnlyPublicKey { self.0 }
|
||||||
|
|
||||||
/// Returns the underlying x-only public key.
|
/// Returns the underlying x-only public key.
|
||||||
|
@ -915,8 +917,10 @@ impl TweakedKeypair {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn dangerous_assume_tweaked(pair: Keypair) -> TweakedKeypair { TweakedKeypair(pair) }
|
pub fn dangerous_assume_tweaked(pair: Keypair) -> TweakedKeypair { TweakedKeypair(pair) }
|
||||||
|
|
||||||
|
/// Returns the underlying key pair.
|
||||||
|
#[inline]
|
||||||
#[doc(hidden)]
|
#[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 }
|
pub fn to_inner(self) -> Keypair { self.0 }
|
||||||
|
|
||||||
/// Returns the underlying key pair.
|
/// Returns the underlying key pair.
|
||||||
|
|
Loading…
Reference in New Issue