Skip to content

Commit 4b840ff

Browse files
committed
Remove schnorrsig from helper method
Recently we moved from using the identifier 'schnorrsig' to 'schnorr', we omitted to update a helper function.
1 parent 79770e1 commit 4b840ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/schnorr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl Signature {
102102
}
103103

104104
impl<C: Signing> Secp256k1<C> {
105-
fn schnorrsig_sign_helper(
105+
fn sign_schnorr_helper(
106106
&self,
107107
msg: &Message,
108108
keypair: &KeyPair,
@@ -160,7 +160,7 @@ impl<C: Signing> Secp256k1<C> {
160160
msg: &Message,
161161
keypair: &KeyPair,
162162
) -> Signature {
163-
self.schnorrsig_sign_helper(msg, keypair, ptr::null())
163+
self.sign_schnorr_helper(msg, keypair, ptr::null())
164164
}
165165

166166
/// Create a Schnorr signature using the given auxiliary random data.
@@ -181,7 +181,7 @@ impl<C: Signing> Secp256k1<C> {
181181
keypair: &KeyPair,
182182
aux_rand: &[u8; 32],
183183
) -> Signature {
184-
self.schnorrsig_sign_helper(
184+
self.sign_schnorr_helper(
185185
msg,
186186
keypair,
187187
aux_rand.as_c_ptr() as *const ffi::types::c_void,
@@ -214,7 +214,7 @@ impl<C: Signing> Secp256k1<C> {
214214
) -> Signature {
215215
let mut aux = [0u8; 32];
216216
rng.fill_bytes(&mut aux);
217-
self.schnorrsig_sign_helper(msg, keypair, aux.as_c_ptr() as *const ffi::types::c_void)
217+
self.sign_schnorr_helper(msg, keypair, aux.as_c_ptr() as *const ffi::types::c_void)
218218
}
219219
}
220220

0 commit comments

Comments
 (0)