Merge rust-bitcoin/rust-secp256k1#569: Add secp256k1_schnorrsig_sign_custom in fuzzing config
43370d8128
Add secp256k1_schnorrsig_sign_custom in fuzzing config (Tibo-lg) Pull request description: Trying to do some fuzz testing I noticed that I had omitted to add `secp256k1_schnorrsig_sign_custom` to the `fuzz_dummy` module of `secp256k1sys` crate in #440. This PR adds it. I just forwarded the call to `secp256k1_schnorrsig_sign` as I didn't have any better idea but open to suggestions. ACKs for top commit: apoelstra: ACK43370d8128
Tree-SHA512: 44789fbf7c0186a7e0c0a445efd48c32e5a23169cd5d723aa19a04c5d0cb1bf6eeefbd2d153e5cb58f25eb823b5ee41a35411af3996722ed389ab18a741b388e
This commit is contained in:
commit
ca074461d8
|
@ -1315,6 +1315,19 @@ mod fuzz_dummy {
|
||||||
1
|
1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Forwards to regular schnorrsig_sign function.
|
||||||
|
pub unsafe fn secp256k1_schnorrsig_sign_custom(
|
||||||
|
cx: *const Context,
|
||||||
|
sig: *mut c_uchar,
|
||||||
|
msg: *const c_uchar,
|
||||||
|
_msg_len: size_t,
|
||||||
|
keypair: *const KeyPair,
|
||||||
|
_extra_params: *const SchnorrSigExtraParams,
|
||||||
|
) -> c_int {
|
||||||
|
secp256k1_schnorrsig_sign(cx, sig, msg, keypair, ptr::null())
|
||||||
|
}
|
||||||
|
|
||||||
// Extra keys
|
// Extra keys
|
||||||
pub unsafe fn secp256k1_keypair_create(
|
pub unsafe fn secp256k1_keypair_create(
|
||||||
cx: *const Context,
|
cx: *const Context,
|
||||||
|
|
Loading…
Reference in New Issue