We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50df818 commit c0937e3Copy full SHA for c0937e3
src/ecdsa/mod.rs
@@ -299,7 +299,7 @@ impl<C: Signing> Secp256k1<C> {
299
let mut entropy_p: *const ffi::types::c_void = ptr::null();
300
let mut counter: u32 = 0;
301
let mut extra_entropy = [0u8; 32];
302
- let msg_c_ptr = msg.into().as_c_ptr();
+ let msg = msg.into();
303
loop {
304
unsafe {
305
let mut ret = ffi::Signature::new();
@@ -309,7 +309,7 @@ impl<C: Signing> Secp256k1<C> {
309
ffi::secp256k1_ecdsa_sign(
310
self.ctx.as_ptr(),
311
&mut ret,
312
- msg_c_ptr,
+ msg.as_c_ptr(),
313
sk.as_c_ptr(),
314
ffi::secp256k1_nonce_function_rfc6979,
315
entropy_p
0 commit comments