Remove schnorrsig from helper method
Recently we moved from using the identifier 'schnorrsig' to 'schnorr', we omitted to update a helper function.
This commit is contained in:
parent
79770e17f3
commit
4b840ffe87
|
@ -102,7 +102,7 @@ impl Signature {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<C: Signing> Secp256k1<C> {
|
impl<C: Signing> Secp256k1<C> {
|
||||||
fn schnorrsig_sign_helper(
|
fn sign_schnorr_helper(
|
||||||
&self,
|
&self,
|
||||||
msg: &Message,
|
msg: &Message,
|
||||||
keypair: &KeyPair,
|
keypair: &KeyPair,
|
||||||
|
@ -160,7 +160,7 @@ impl<C: Signing> Secp256k1<C> {
|
||||||
msg: &Message,
|
msg: &Message,
|
||||||
keypair: &KeyPair,
|
keypair: &KeyPair,
|
||||||
) -> Signature {
|
) -> 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.
|
/// Create a Schnorr signature using the given auxiliary random data.
|
||||||
|
@ -181,7 +181,7 @@ impl<C: Signing> Secp256k1<C> {
|
||||||
keypair: &KeyPair,
|
keypair: &KeyPair,
|
||||||
aux_rand: &[u8; 32],
|
aux_rand: &[u8; 32],
|
||||||
) -> Signature {
|
) -> Signature {
|
||||||
self.schnorrsig_sign_helper(
|
self.sign_schnorr_helper(
|
||||||
msg,
|
msg,
|
||||||
keypair,
|
keypair,
|
||||||
aux_rand.as_c_ptr() as *const ffi::types::c_void,
|
aux_rand.as_c_ptr() as *const ffi::types::c_void,
|
||||||
|
@ -214,7 +214,7 @@ impl<C: Signing> Secp256k1<C> {
|
||||||
) -> Signature {
|
) -> Signature {
|
||||||
let mut aux = [0u8; 32];
|
let mut aux = [0u8; 32];
|
||||||
rng.fill_bytes(&mut aux);
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue