File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -52,12 +52,13 @@ fn main() {
5252 . include ( "depend/secp256k1/src" )
5353 . flag_if_supported ( "-Wno-unused-function" ) // some ecmult stuff is defined but not used upstream
5454 . define ( "SECP256K1_BUILD" , Some ( "1" ) )
55+ . define ( "ENABLE_MODULE_ECDH" , Some ( "1" ) )
56+ . define ( "ECMULT_GEN_PREC_BITS" , Some ( "4" ) )
5557 // TODO these three should be changed to use libgmp, at least until secp PR 290 is merged
5658 . define ( "USE_NUM_NONE" , Some ( "1" ) )
5759 . define ( "USE_FIELD_INV_BUILTIN" , Some ( "1" ) )
58- . define ( "USE_SCALAR_INV_BUILTIN" , Some ( "1" ) )
59- . define ( "ENABLE_MODULE_ECDH" , Some ( "1" ) ) ;
60-
60+ . define ( "USE_SCALAR_INV_BUILTIN" , Some ( "1" ) ) ;
61+
6162 if cfg ! ( feature = "lowmemory" ) {
6263 base_config. define ( "ECMULT_WINDOW_SIZE" , Some ( "4" ) ) ; // A low-enough value to consume neglible memory
6364 } else {
You can’t perform that action at this time.
0 commit comments