Skip to content

Commit 9aa768d

Browse files
authored
Merge pull request #195 from elichai/patch-1
Missing return c_int in NonceFn
2 parents 86751b2 + f277530 commit 9aa768d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

secp256k1-sys/src/lib.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub type NonceFn = unsafe extern "C" fn(nonce32: *mut c_uchar,
6363
algo16: *const c_uchar,
6464
data: *mut c_void,
6565
attempt: c_uint,
66-
);
66+
) -> c_int;
6767

6868
/// Hash function to use to post-process an ECDH point to get
6969
/// a shared secret.
@@ -491,13 +491,6 @@ mod fuzz_dummy {
491491
1
492492
}
493493

494-
// TODO secp256k1_context_set_illegal_callback
495-
// TODO secp256k1_context_set_error_callback
496-
// (Actually, I don't really want these exposed; if either of these
497-
// are ever triggered it indicates a bug in rust-secp256k1, since
498-
// one goal is to use Rust's type system to eliminate all possible
499-
// bad inputs.)
500-
501494
// Pubkeys
502495
/// Parse 33/65 byte pubkey into PublicKey, losing compressed information
503496
pub unsafe fn secp256k1_ec_pubkey_parse(cx: *const Context, pk: *mut PublicKey,

0 commit comments

Comments
 (0)