@@ -128,7 +128,6 @@ impl<C: Signing> Secp256k1<C> {
128
128
129
129
/// Create a schnorr signature internally using the ThreadRng random number
130
130
/// generator to generate the auxiliary random data.
131
- /// Requires compilation with "rand-std" feature.
132
131
#[ cfg( any( test, feature = "rand-std" ) ) ]
133
132
#[ cfg_attr( docsrs, doc( cfg( feature = "rand-std" ) ) ) ]
134
133
#[ deprecated( since = "0.21.0" , note = "Use sign_schnorr instead." ) ]
@@ -138,7 +137,6 @@ impl<C: Signing> Secp256k1<C> {
138
137
139
138
/// Create a schnorr signature internally using the ThreadRng random number
140
139
/// generator to generate the auxiliary random data.
141
- /// Requires compilation with "rand-std" feature.
142
140
#[ cfg( any( test, feature = "rand-std" ) ) ]
143
141
#[ cfg_attr( docsrs, doc( cfg( feature = "rand-std" ) ) ) ]
144
142
pub fn sign_schnorr ( & self , msg : & Message , keypair : & KeyPair ) -> Signature {
@@ -191,8 +189,7 @@ impl<C: Signing> Secp256k1<C> {
191
189
}
192
190
193
191
/// Create a schnorr signature using the given random number generator to
194
- /// generate the auxiliary random data. Requires compilation with "rand"
195
- /// feature.
192
+ /// generate the auxiliary random data.
196
193
#[ cfg( any( test, feature = "rand" ) ) ]
197
194
#[ cfg_attr( docsrs, doc( cfg( feature = "rand" ) ) ) ]
198
195
#[ deprecated( since = "0.21.0" , note = "Use sign_schnorr_with_rng instead." ) ]
@@ -206,8 +203,7 @@ impl<C: Signing> Secp256k1<C> {
206
203
}
207
204
208
205
/// Create a schnorr signature using the given random number generator to
209
- /// generate the auxiliary random data. Requires compilation with "rand"
210
- /// feature.
206
+ /// generate the auxiliary random data.
211
207
#[ cfg( any( test, feature = "rand" ) ) ]
212
208
#[ cfg_attr( docsrs, doc( cfg( feature = "rand" ) ) ) ]
213
209
pub fn sign_schnorr_with_rng < R : Rng + CryptoRng > (
@@ -262,7 +258,7 @@ impl <C: Signing> Secp256k1<C> {
262
258
/// Generates a random Schnorr `KeyPair` and its associated Schnorr `XOnlyPublicKey`.
263
259
///
264
260
/// Convenience function for [KeyPair::new] and [KeyPair::public_key].
265
- /// Requires a signing-capable context and requires compilation with the "rand" feature .
261
+ /// Requires a signing-capable context.
266
262
#[ inline]
267
263
#[ cfg( any( test, feature = "rand" ) ) ]
268
264
#[ cfg_attr( docsrs, doc( cfg( feature = "rand" ) ) ) ]
0 commit comments