Skip to content

Commit 2a0409e

Browse files
committed
deprecations: replace all TBDs with 0.30.0
We accidentally released 0.30.0 and 0.31.0 with "in future" deprecations. Most users will not see these since the lint for them is different from the normal deprecation warning (and it's undocumented except to say that we "should not use" future deprecations, even though it works and there is no alternative).
1 parent 379e128 commit 2a0409e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/ecdh.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl SharedSecret {
6464
pub fn from_bytes(bytes: [u8; SHARED_SECRET_SIZE]) -> SharedSecret { SharedSecret(bytes) }
6565

6666
/// Creates a shared secret from `bytes` slice.
67-
#[deprecated(since = "TBD", note = "Use `from_bytes` instead.")]
67+
#[deprecated(since = "0.30.0", note = "Use `from_bytes` instead.")]
6868
#[inline]
6969
pub fn from_slice(bytes: &[u8]) -> Result<SharedSecret, Error> {
7070
match bytes.len() {

src/key.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ impl SecretKey {
219219
/// use secp256k1::SecretKey;
220220
/// let sk = SecretKey::from_slice(&[0xcd; 32]).expect("32 bytes, within curve order");
221221
/// ```
222-
#[deprecated(since = "TBD", note = "Use `from_byte_array` instead.")]
222+
#[deprecated(since = "0.30.0", note = "Use `from_byte_array` instead.")]
223223
#[inline]
224224
pub fn from_slice(data: &[u8]) -> Result<SecretKey, Error> {
225225
match <[u8; constants::SECRET_KEY_SIZE]>::try_from(data) {
@@ -1215,7 +1215,7 @@ impl XOnlyPublicKey {
12151215
///
12161216
/// Returns [`Error::InvalidPublicKey`] if the length of the data slice is not 32 bytes or the
12171217
/// slice does not represent a valid Secp256k1 point x coordinate.
1218-
#[deprecated(since = "TBD", note = "Use `from_byte_array` instead.")]
1218+
#[deprecated(since = "0.30.0", note = "Use `from_byte_array` instead.")]
12191219
#[inline]
12201220
pub fn from_slice(data: &[u8]) -> Result<XOnlyPublicKey, Error> {
12211221
match <[u8; constants::SCHNORR_PUBLIC_KEY_SIZE]>::try_from(data) {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ impl Message {
255255
///
256256
/// [secure signature]: https://twitter.com/pwuille/status/1063582706288586752
257257
#[inline]
258-
#[deprecated(since = "TBD", note = "use from_digest instead")]
258+
#[deprecated(since = "0.30.0", note = "use from_digest instead")]
259259
pub fn from_digest_slice(digest: &[u8]) -> Result<Message, Error> {
260260
Ok(Message::from_digest(digest.try_into().map_err(|_| Error::InvalidMessage)?))
261261
}

src/schnorr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl Signature {
7878
pub fn from_byte_array(sig: [u8; constants::SCHNORR_SIGNATURE_SIZE]) -> Self { Self(sig) }
7979

8080
/// Creates a `Signature` directly from a slice.
81-
#[deprecated(since = "TBD", note = "Use `from_byte_array` instead.")]
81+
#[deprecated(since = "0.30.0", note = "Use `from_byte_array` instead.")]
8282
#[inline]
8383
pub fn from_slice(data: &[u8]) -> Result<Signature, Error> {
8484
match data.len() {

0 commit comments

Comments
 (0)