@@ -73,7 +73,7 @@ impl str::FromStr for Signature {
73
73
}
74
74
75
75
impl Signature {
76
- /// Creates a Signature directly from a slice
76
+ /// Creates a ` Signature` directly from a slice.
77
77
#[ inline]
78
78
pub fn from_slice ( data : & [ u8 ] ) -> Result < Signature , Error > {
79
79
match data. len ( ) {
@@ -119,20 +119,20 @@ impl<C: Signing> Secp256k1<C> {
119
119
}
120
120
}
121
121
122
- /// Create a schnorr signature internally using the ThreadRng random number
122
+ /// Creates a schnorr signature internally using the [`rand::rngs:: ThreadRng`] random number
123
123
/// generator to generate the auxiliary random data.
124
124
#[ cfg( feature = "rand-std" ) ]
125
125
#[ cfg_attr( docsrs, doc( cfg( feature = "rand-std" ) ) ) ]
126
126
pub fn sign_schnorr ( & self , msg : & Message , keypair : & KeyPair ) -> Signature {
127
127
self . sign_schnorr_with_rng ( msg, keypair, & mut rand:: thread_rng ( ) )
128
128
}
129
129
130
- /// Create a schnorr signature without using any auxiliary random data.
130
+ /// Creates a schnorr signature without using any auxiliary random data.
131
131
pub fn sign_schnorr_no_aux_rand ( & self , msg : & Message , keypair : & KeyPair ) -> Signature {
132
132
self . sign_schnorr_helper ( msg, keypair, ptr:: null ( ) )
133
133
}
134
134
135
- /// Create a schnorr signature using the given auxiliary random data.
135
+ /// Creates a schnorr signature using the given auxiliary random data.
136
136
pub fn sign_schnorr_with_aux_rand (
137
137
& self ,
138
138
msg : & Message ,
@@ -142,7 +142,7 @@ impl<C: Signing> Secp256k1<C> {
142
142
self . sign_schnorr_helper ( msg, keypair, aux_rand. as_c_ptr ( ) as * const ffi:: types:: c_uchar )
143
143
}
144
144
145
- /// Create a schnorr signature using the given random number generator to
145
+ /// Creates a schnorr signature using the given random number generator to
146
146
/// generate the auxiliary random data.
147
147
#[ cfg( feature = "rand" ) ]
148
148
#[ cfg_attr( docsrs, doc( cfg( feature = "rand" ) ) ) ]
@@ -159,7 +159,7 @@ impl<C: Signing> Secp256k1<C> {
159
159
}
160
160
161
161
impl < C : Verification > Secp256k1 < C > {
162
- /// Verify a schnorr signature.
162
+ /// Verifies a schnorr signature.
163
163
pub fn verify_schnorr (
164
164
& self ,
165
165
sig : & Signature ,
0 commit comments