Merge pull request #143 from rust-bitcoin/remove-callback-todos

Remove TODOs for secp256k1 callbacks
This commit is contained in:
Tim Ruffing 2019-08-21 16:11:52 +02:00 committed by GitHub
commit 5ea300a4e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -159,13 +159,6 @@ extern "C" {
seed32: *const c_uchar)
-> c_int;
// 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
pub fn secp256k1_ec_pubkey_parse(cx: *const Context, pk: *mut PublicKey,
input: *const c_uchar, in_len: usize)
@ -738,4 +731,4 @@ mod tests {
assert_eq!(orig.len(), unsafe {strlen(test.as_ptr())});
}
}
}