@@ -159,6 +159,11 @@ AC_ARG_ENABLE(module_whitelist,
159
159
[ enable_module_whitelist=$enableval] ,
160
160
[ enable_module_whitelist=no] )
161
161
162
+ AC_ARG_ENABLE ( module_ecdsa_sign_to_contract ,
163
+ AS_HELP_STRING ( [ --enable-module-ecdsa-sign-to-contract] ,[ enable ECDSA sign-to-contract module [ default=no] ] ) ,
164
+ [ enable_module_ecdsa_sign_to_contract=$enableval] ,
165
+ [ enable_module_ecdsa_sign_to_contract=no] )
166
+
162
167
AC_ARG_ENABLE ( external_default_callbacks ,
163
168
AS_HELP_STRING ( [ --enable-external-default-callbacks] ,[ enable external default callback functions [ default=no] ] ) ,
164
169
[ use_external_default_callbacks=$enableval] ,
@@ -587,6 +592,10 @@ if test x"$enable_module_surjectionproof" = x"yes"; then
587
592
AC_DEFINE ( ENABLE_MODULE_SURJECTIONPROOF , 1 , [ Define this symbol to enable the surjection proof module] )
588
593
fi
589
594
595
+ if test x"$enable_module_ecdsa_sign_to_contract" = x"yes"; then
596
+ AC_DEFINE ( ENABLE_MODULE_ECDSA_SIGN_TO_CONTRACT , 1 , [ Define this symbol to enable the ECDSA sign-to-contract module] )
597
+ fi
598
+
590
599
AC_C_BIGENDIAN ( )
591
600
592
601
if test x"$use_external_asm" = x"yes"; then
@@ -612,6 +621,7 @@ if test x"$enable_experimental" = x"yes"; then
612
621
AC_MSG_NOTICE ( [ Building surjection proof module: $enable_module_surjectionproof] )
613
622
AC_MSG_NOTICE ( [ Building schnorrsig module: $enable_module_schnorrsig] )
614
623
AC_MSG_NOTICE ( [ Building MuSig module: $enable_module_musig] )
624
+ AC_MSG_NOTICE ( [ Building ECDSA sign-to-contract module: $enable_module_ecdsa_sign_to_contract] )
615
625
AC_MSG_NOTICE ( [ ******] )
616
626
617
627
639
649
if test x"$enable_module_ecdh" = x"yes"; then
640
650
AC_MSG_ERROR ( [ ECDH module is experimental. Use --enable-experimental to allow.] )
641
651
fi
652
+ if test x"$enable_module_ecdsa_sign_to_contract" = x"yes"; then
653
+ AC_MSG_ERROR ( [ ECDA sign-to-contract module module is experimental. Use --enable-experimental to allow.] )
654
+ fi
642
655
if test x"$enable_module_schnorrsig" = x"yes"; then
643
656
AC_MSG_ERROR ( [ schnorrsig module is experimental. Use --enable-experimental to allow.] )
644
657
fi
@@ -681,6 +694,7 @@ AM_CONDITIONAL([ENABLE_MODULE_RECOVERY], [test x"$enable_module_recovery" = x"ye
681
694
AM_CONDITIONAL([ ENABLE_MODULE_GENERATOR] , [ test x"$enable_module_generator" = x"yes"] )
682
695
AM_CONDITIONAL([ ENABLE_MODULE_RANGEPROOF] , [ test x"$enable_module_rangeproof" = x"yes"] )
683
696
AM_CONDITIONAL([ ENABLE_MODULE_WHITELIST] , [ test x"$enable_module_whitelist" = x"yes"] )
697
+ AM_CONDITIONAL([ ENABLE_MODULE_ECDSA_SIGN_TO_CONTRACT] , [ test x"$enable_module_ecdsa_sign_to_contract" = x"yes"] )
684
698
AM_CONDITIONAL([ USE_JNI] , [ test x"$use_jni" = x"yes"] )
685
699
AM_CONDITIONAL([ USE_EXTERNAL_ASM] , [ test x"$use_external_asm" = x"yes"] )
686
700
AM_CONDITIONAL([ USE_ASM_ARM] , [ test x"$set_asm" = x"arm"] )
@@ -705,16 +719,17 @@ echo " with coverage = $enable_coverage"
705
719
echo " module ecdh = $enable_module_ecdh"
706
720
echo " module recovery = $enable_module_recovery"
707
721
echo " module schnorrsig = $enable_module_schnorrsig"
722
+ echo " module ecdsa sign-to-contract = $enable_module_ecdsa_sign_to_contract"
708
723
echo
709
- echo " asm = $set_asm"
710
- echo " bignum = $set_bignum"
711
- echo " field = $set_field"
712
- echo " scalar = $set_scalar"
713
- echo " ecmult window size = $set_ecmult_window"
714
- echo " ecmult gen prec. bits = $set_ecmult_gen_precision"
724
+ echo " asm = $set_asm"
725
+ echo " bignum = $set_bignum"
726
+ echo " field = $set_field"
727
+ echo " scalar = $set_scalar"
728
+ echo " ecmult window size = $set_ecmult_window"
729
+ echo " ecmult gen prec. bits = $set_ecmult_gen_precision"
715
730
echo
716
- echo " CC = $CC"
717
- echo " CFLAGS = $CFLAGS"
718
- echo " CPPFLAGS = $CPPFLAGS"
719
- echo " LDFLAGS = $LDFLAGS"
731
+ echo " CC = $CC"
732
+ echo " CFLAGS = $CFLAGS"
733
+ echo " CPPFLAGS = $CPPFLAGS"
734
+ echo " LDFLAGS = $LDFLAGS"
720
735
echo
0 commit comments