From f90e9f3454a9a217a08ff8cd601f1aacab765fff Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 16 Jan 2019 16:02:24 -0500 Subject: [PATCH] Stop checking context flags for secp256k1_ecdh as its not required --- src/ffi.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ffi.rs b/src/ffi.rs index 68a33ee..1b7d17e 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -644,7 +644,6 @@ mod fuzz_dummy { data: *mut c_void, ) -> c_int { assert!(!cx.is_null() && (*cx).0 as u32 & !(SECP256K1_START_NONE | SECP256K1_START_VERIFY | SECP256K1_START_SIGN) == 0); - assert!((*cx).0 as u32 & SECP256K1_START_SIGN == SECP256K1_START_SIGN); if secp256k1_ec_seckey_verify(cx, scalar) != 1 { return 0; } let mut scalar_prefix = [0; 16];