@@ -348,6 +348,18 @@ extern "C" {
348348 sk : * mut c_uchar ,
349349 tweak : * const c_uchar )
350350 -> c_int ;
351+
352+ #[ cfg_attr( not( rust_secp_no_symbol_renaming) , link_name = "rustsecp256k1_v0_4_1_keypair_sec" ) ]
353+ pub fn secp256k1_keypair_sec ( cx : * const Context ,
354+ output_seckey : * mut c_uchar ,
355+ keypair : * const KeyPair )
356+ -> c_int ;
357+
358+ #[ cfg_attr( not( rust_secp_no_symbol_renaming) , link_name = "rustsecp256k1_v0_4_1_keypair_pub" ) ]
359+ pub fn secp256k1_keypair_pub ( cx : * const Context ,
360+ output_pubkey : * mut PublicKey ,
361+ keypair : * const KeyPair )
362+ -> c_int ;
351363}
352364
353365#[ cfg( not( fuzzing) ) ]
@@ -518,20 +530,6 @@ extern "C" {
518530 internal_pubkey : * const XOnlyPublicKey ,
519531 tweak32 : * const c_uchar ,
520532 ) -> c_int ;
521-
522- #[ cfg_attr( not( rust_secp_no_symbol_renaming) , link_name = "rustsecp256k1_v0_4_1_keypair_sec" ) ]
523- pub fn secp256k1_keypair_sec (
524- cx : * const Context ,
525- output_seckey : * mut c_uchar ,
526- keypair : * const KeyPair
527- ) -> c_int ;
528-
529- #[ cfg_attr( not( rust_secp_no_symbol_renaming) , link_name = "rustsecp256k1_v0_4_1_keypair_pub" ) ]
530- pub fn secp256k1_keypair_pub (
531- cx : * const Context ,
532- output_pubkey : * mut PublicKey ,
533- keypair : * const KeyPair
534- ) -> c_int ;
535533}
536534
537535/// A reimplementation of the C function `secp256k1_context_create` in rust.
0 commit comments