From 4b840ffe87b651ff1001d79b5380861f9328282f Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Tue, 1 Mar 2022 18:47:32 +0000 Subject: [PATCH] Remove schnorrsig from helper method Recently we moved from using the identifier 'schnorrsig' to 'schnorr', we omitted to update a helper function. --- src/schnorr.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/schnorr.rs b/src/schnorr.rs index 49c38acdd..c3e6720a5 100644 --- a/src/schnorr.rs +++ b/src/schnorr.rs @@ -102,7 +102,7 @@ impl Signature { } impl Secp256k1 { - fn schnorrsig_sign_helper( + fn sign_schnorr_helper( &self, msg: &Message, keypair: &KeyPair, @@ -160,7 +160,7 @@ impl Secp256k1 { 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. @@ -181,7 +181,7 @@ impl Secp256k1 { 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, @@ -214,7 +214,7 @@ impl Secp256k1 { ) -> 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) } }