Merge pull request #195 from elichai/patch-1

Missing return c_int in NonceFn
This commit is contained in:
Andrew Poelstra 2020-04-06 14:49:58 +00:00 committed by GitHub
commit 9aa768df10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -63,7 +63,7 @@ pub type NonceFn = unsafe extern "C" fn(nonce32: *mut c_uchar,
algo16: *const c_uchar,
data: *mut c_void,
attempt: c_uint,
);
) -> c_int;
/// Hash function to use to post-process an ECDH point to get
/// a shared secret.
@ -491,13 +491,6 @@ mod fuzz_dummy {
1
}
// TODO secp256k1_context_set_illegal_callback
// TODO secp256k1_context_set_error_callback
// (Actually, I don't really want these exposed; if either of these
// are ever triggered it indicates a bug in rust-secp256k1, since
// one goal is to use Rust's type system to eliminate all possible
// bad inputs.)
// Pubkeys
/// Parse 33/65 byte pubkey into PublicKey, losing compressed information
pub unsafe fn secp256k1_ec_pubkey_parse(cx: *const Context, pk: *mut PublicKey,