diff --git a/Cargo-minimal.lock b/Cargo-minimal.lock index a23367b82..917c53258 100644 --- a/Cargo-minimal.lock +++ b/Cargo-minimal.lock @@ -272,7 +272,7 @@ checksum = "ea6a9290e3c9cf0f18145ef7ffa62d68ee0bf5fcd651017e586dc7fd5da448c2" [[package]] name = "secp256k1" -version = "0.30.0" +version = "0.30.1" dependencies = [ "bincode", "bitcoin_hashes", diff --git a/Cargo-recent.lock b/Cargo-recent.lock index da1b239aa..d9e235a6e 100644 --- a/Cargo-recent.lock +++ b/Cargo-recent.lock @@ -193,7 +193,7 @@ checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" [[package]] name = "secp256k1" -version = "0.30.0" +version = "0.30.1" dependencies = [ "bincode", "bitcoin_hashes", diff --git a/Cargo.toml b/Cargo.toml index c2bd1ff4d..62dbbbe56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "secp256k1" -version = "0.30.0" +version = "0.30.1" authors = [ "Dawid Ciężarkiewicz ", "Andrew Poelstra " ] license = "CC0-1.0" diff --git a/src/ecdh.rs b/src/ecdh.rs index 382b3e440..115cf82bc 100644 --- a/src/ecdh.rs +++ b/src/ecdh.rs @@ -64,7 +64,7 @@ impl SharedSecret { pub fn from_bytes(bytes: [u8; SHARED_SECRET_SIZE]) -> SharedSecret { SharedSecret(bytes) } /// Creates a shared secret from `bytes` slice. - #[deprecated(since = "TBD", note = "Use `from_bytes` instead.")] + #[deprecated(since = "0.30.0", note = "Use `from_bytes` instead.")] #[inline] pub fn from_slice(bytes: &[u8]) -> Result { match bytes.len() { diff --git a/src/key.rs b/src/key.rs index 6c1d8b5f2..a18401cf4 100644 --- a/src/key.rs +++ b/src/key.rs @@ -219,7 +219,7 @@ impl SecretKey { /// use secp256k1::SecretKey; /// let sk = SecretKey::from_slice(&[0xcd; 32]).expect("32 bytes, within curve order"); /// ``` - #[deprecated(since = "TBD", note = "Use `from_byte_array` instead.")] + #[deprecated(since = "0.30.0", note = "Use `from_byte_array` instead.")] #[inline] pub fn from_slice(data: &[u8]) -> Result { match <[u8; constants::SECRET_KEY_SIZE]>::try_from(data) { @@ -1215,7 +1215,7 @@ impl XOnlyPublicKey { /// /// Returns [`Error::InvalidPublicKey`] if the length of the data slice is not 32 bytes or the /// slice does not represent a valid Secp256k1 point x coordinate. - #[deprecated(since = "TBD", note = "Use `from_byte_array` instead.")] + #[deprecated(since = "0.30.0", note = "Use `from_byte_array` instead.")] #[inline] pub fn from_slice(data: &[u8]) -> Result { match <[u8; constants::SCHNORR_PUBLIC_KEY_SIZE]>::try_from(data) { diff --git a/src/lib.rs b/src/lib.rs index 9cfcb5c0a..146e7c368 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -255,7 +255,7 @@ impl Message { /// /// [secure signature]: https://twitter.com/pwuille/status/1063582706288586752 #[inline] - #[deprecated(since = "TBD", note = "use from_digest instead")] + #[deprecated(since = "0.30.0", note = "use from_digest instead")] pub fn from_digest_slice(digest: &[u8]) -> Result { Ok(Message::from_digest(digest.try_into().map_err(|_| Error::InvalidMessage)?)) } diff --git a/src/schnorr.rs b/src/schnorr.rs index e83bd8fec..45e8ae3d8 100644 --- a/src/schnorr.rs +++ b/src/schnorr.rs @@ -78,7 +78,7 @@ impl Signature { pub fn from_byte_array(sig: [u8; constants::SCHNORR_SIGNATURE_SIZE]) -> Self { Self(sig) } /// Creates a `Signature` directly from a slice. - #[deprecated(since = "TBD", note = "Use `from_byte_array` instead.")] + #[deprecated(since = "0.30.0", note = "Use `from_byte_array` instead.")] #[inline] pub fn from_slice(data: &[u8]) -> Result { match data.len() {