Skip to content

Commit

Permalink
Remove schnorrsig from helper method
Browse files Browse the repository at this point in the history
Recently we moved from using the identifier 'schnorrsig' to 'schnorr',
we omitted to update a helper function.
  • Loading branch information
tcharding committed Mar 4, 2022
1 parent 79770e1 commit 4b840ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/schnorr.rs
Expand Up @@ -102,7 +102,7 @@ impl Signature {
}

impl<C: Signing> Secp256k1<C> {
fn schnorrsig_sign_helper(
fn sign_schnorr_helper(
&self,
msg: &Message,
keypair: &KeyPair,
Expand Down Expand Up @@ -160,7 +160,7 @@ impl<C: Signing> Secp256k1<C> {
msg: &Message,
keypair: &KeyPair,
) -> Signature {
self.schnorrsig_sign_helper(msg, keypair, ptr::null())
self.sign_schnorr_helper(msg, keypair, ptr::null())
}

/// Create a Schnorr signature using the given auxiliary random data.
Expand All @@ -181,7 +181,7 @@ impl<C: Signing> Secp256k1<C> {
keypair: &KeyPair,
aux_rand: &[u8; 32],
) -> Signature {
self.schnorrsig_sign_helper(
self.sign_schnorr_helper(
msg,
keypair,
aux_rand.as_c_ptr() as *const ffi::types::c_void,
Expand Down Expand Up @@ -214,7 +214,7 @@ impl<C: Signing> Secp256k1<C> {
) -> Signature {
let mut aux = [0u8; 32];
rng.fill_bytes(&mut aux);
self.schnorrsig_sign_helper(msg, keypair, aux.as_c_ptr() as *const ffi::types::c_void)
self.sign_schnorr_helper(msg, keypair, aux.as_c_ptr() as *const ffi::types::c_void)
}
}

Expand Down

0 comments on commit 4b840ff

Please sign in to comment.