@@ -188,6 +188,10 @@ AC_ARG_ENABLE(module_schnorrsig_halfagg,
188188 AS_HELP_STRING ( [ --enable-module-schnorrsig-halfagg] ,[ enable schnorrsig half-aggregation module (experimental) [ default=no] ] ) , [ ] ,
189189 [ SECP_SET_DEFAULT([ enable_module_schnorrsig_halfagg] , [ no] , [ yes] )] )
190190
191+ AC_ARG_ENABLE ( module_schnorr_adaptor ,
192+ AS_HELP_STRING ( [ --enable-module-schnorr-adaptor] ,[ enable Schnorr adaptor module [ default=no] ] ) , [ ] ,
193+ [ SECP_SET_DEFAULT([ enable_module_schnorr_adaptor] , [ no] , [ yes] )] )
194+
191195AC_ARG_ENABLE ( module_ellswift ,
192196 AS_HELP_STRING ( [ --enable-module-ellswift] ,[ enable ElligatorSwift module [ default=yes] ] ) , [ ] ,
193197 [ SECP_SET_DEFAULT([ enable_module_ellswift] , [ yes] , [ yes] )] )
@@ -454,6 +458,14 @@ if test x"$enable_module_schnorrsig_halfagg" = x"yes"; then
454458 enable_module_schnorrsig=yes
455459fi
456460
461+ if test x"$enable_module_schnorr_adaptor" = x"yes"; then
462+ if test x"$enable_module_schnorrsig" = x"no"; then
463+ AC_MSG_ERROR ( [ Module dependency error: You have disabled the schnorrsig module explicitly, but it is required by the schnorr adaptor module.] )
464+ fi
465+ SECP_CONFIG_DEFINES="$SECP_CONFIG_DEFINES -DENABLE_MODULE_SCHNORR_ADAPTOR=1"
466+ enable_module_schnorrsig=yes
467+ fi
468+
457469if test x"$enable_module_bppp" = x"yes"; then
458470 if test x"$enable_module_generator" = x"no"; then
459471 AC_MSG_ERROR ( [ Module dependency error: You have disabled the generator module explicitly, but it is required by the bppp module.] )
555567 if test x"$enable_module_schnorrsig_halfagg" = x"yes"; then
556568 AC_MSG_ERROR ( [ Schnorrsig Half-Aggregation module is experimental. Use --enable-experimental to allow.] )
557569 fi
570+ if test x"$enable_module_schnorr_adaptor" = x"yes"; then
571+ AC_MSG_ERROR ( [ Schnorr adaptor signatures module is experimental. Use --enable-experimental to allow.] )
572+ fi
558573 if test x"$enable_module_bppp" = x"yes"; then
559574 AC_MSG_ERROR ( [ Bulletproofs++ module is experimental. Use --enable-experimental to allow.] )
560575 fi
@@ -611,6 +626,7 @@ AM_CONDITIONAL([ENABLE_MODULE_ECDSA_S2C], [test x"$enable_module_ecdsa_s2c" = x"
611626AM_CONDITIONAL([ ENABLE_MODULE_ECDSA_ADAPTOR] , [ test x"$enable_module_ecdsa_adaptor" = x"yes"] )
612627AM_CONDITIONAL([ ENABLE_MODULE_BPPP] , [ test x"$enable_module_bppp" = x"yes"] )
613628AM_CONDITIONAL([ ENABLE_MODULE_SCHNORRSIG_HALFAGG] , [ test x"$enable_module_schnorrsig_halfagg" = x"yes"] )
629+ AM_CONDITIONAL([ ENABLE_MODULE_SCHNORR_ADAPTOR] , [ test x"$enable_module_schnorr_adaptor" = x"yes"] )
614630AM_CONDITIONAL([ USE_REDUCED_SURJECTION_PROOF_SIZE] , [ test x"$use_reduced_surjection_proof_size" = x"yes"] )
615631AM_CONDITIONAL([ USE_EXTERNAL_ASM] , [ test x"$enable_external_asm" = x"yes"] )
616632AM_CONDITIONAL([ USE_ASM_ARM] , [ test x"$set_asm" = x"arm32"] )
@@ -651,6 +667,7 @@ echo " module ecdsa-s2c = $enable_module_ecdsa_s2c"
651667echo " module ecdsa-adaptor = $enable_module_ecdsa_adaptor"
652668echo " module bppp = $enable_module_bppp"
653669echo " module schnorrsig-halfagg = $enable_module_schnorrsig_halfagg"
670+ echo " module schnorr-adaptor = $enable_module_schnorr_adaptor"
654671echo
655672echo " asm = $set_asm"
656673echo " ecmult window size = $set_ecmult_window"
0 commit comments