Skip to content

Commit ca07446

Browse files
committed
Merge #569: Add secp256k1_schnorrsig_sign_custom in fuzzing config
43370d8 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: ACK 43370d8 Tree-SHA512: 44789fbf7c0186a7e0c0a445efd48c32e5a23169cd5d723aa19a04c5d0cb1bf6eeefbd2d153e5cb58f25eb823b5ee41a35411af3996722ed389ab18a741b388e
2 parents 748dcd9 + 43370d8 commit ca07446

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

secp256k1-sys/src/lib.rs

+13
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,19 @@ mod fuzz_dummy {
13151315
1
13161316
}
13171317

1318+
1319+
// Forwards to regular schnorrsig_sign function.
1320+
pub unsafe fn secp256k1_schnorrsig_sign_custom(
1321+
cx: *const Context,
1322+
sig: *mut c_uchar,
1323+
msg: *const c_uchar,
1324+
_msg_len: size_t,
1325+
keypair: *const KeyPair,
1326+
_extra_params: *const SchnorrSigExtraParams,
1327+
) -> c_int {
1328+
secp256k1_schnorrsig_sign(cx, sig, msg, keypair, ptr::null())
1329+
}
1330+
13181331
// Extra keys
13191332
pub unsafe fn secp256k1_keypair_create(
13201333
cx: *const Context,

0 commit comments

Comments
 (0)