File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl SharedSecret {
64
64
pub fn from_bytes ( bytes : [ u8 ; SHARED_SECRET_SIZE ] ) -> SharedSecret { SharedSecret ( bytes) }
65
65
66
66
/// 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." ) ]
68
68
#[ inline]
69
69
pub fn from_slice ( bytes : & [ u8 ] ) -> Result < SharedSecret , Error > {
70
70
match bytes. len ( ) {
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ impl SecretKey {
219
219
/// use secp256k1::SecretKey;
220
220
/// let sk = SecretKey::from_slice(&[0xcd; 32]).expect("32 bytes, within curve order");
221
221
/// ```
222
- #[ deprecated( since = "TBD " , note = "Use `from_byte_array` instead." ) ]
222
+ #[ deprecated( since = "0.30.0 " , note = "Use `from_byte_array` instead." ) ]
223
223
#[ inline]
224
224
pub fn from_slice ( data : & [ u8 ] ) -> Result < SecretKey , Error > {
225
225
match <[ u8 ; constants:: SECRET_KEY_SIZE ] >:: try_from ( data) {
@@ -1215,7 +1215,7 @@ impl XOnlyPublicKey {
1215
1215
///
1216
1216
/// Returns [`Error::InvalidPublicKey`] if the length of the data slice is not 32 bytes or the
1217
1217
/// 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." ) ]
1219
1219
#[ inline]
1220
1220
pub fn from_slice ( data : & [ u8 ] ) -> Result < XOnlyPublicKey , Error > {
1221
1221
match <[ u8 ; constants:: SCHNORR_PUBLIC_KEY_SIZE ] >:: try_from ( data) {
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ impl Message {
255
255
///
256
256
/// [secure signature]: https://twitter.com/pwuille/status/1063582706288586752
257
257
#[ inline]
258
- #[ deprecated( since = "TBD " , note = "use from_digest instead" ) ]
258
+ #[ deprecated( since = "0.30.0 " , note = "use from_digest instead" ) ]
259
259
pub fn from_digest_slice ( digest : & [ u8 ] ) -> Result < Message , Error > {
260
260
Ok ( Message :: from_digest ( digest. try_into ( ) . map_err ( |_| Error :: InvalidMessage ) ?) )
261
261
}
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ impl Signature {
78
78
pub fn from_byte_array ( sig : [ u8 ; constants:: SCHNORR_SIGNATURE_SIZE ] ) -> Self { Self ( sig) }
79
79
80
80
/// 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." ) ]
82
82
#[ inline]
83
83
pub fn from_slice ( data : & [ u8 ] ) -> Result < Signature , Error > {
84
84
match data. len ( ) {
You can’t perform that action at this time.
0 commit comments