@@ -188,6 +188,10 @@ AC_ARG_ENABLE(module_schnorrsig_halfagg,
188
188
AS_HELP_STRING ( [ --enable-module-schnorrsig-halfagg] ,[ enable schnorrsig half-aggregation module (experimental) [ default=no] ] ) , [ ] ,
189
189
[ SECP_SET_DEFAULT([ enable_module_schnorrsig_halfagg] , [ no] , [ yes] )] )
190
190
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
+
191
195
AC_ARG_ENABLE ( module_ellswift ,
192
196
AS_HELP_STRING ( [ --enable-module-ellswift] ,[ enable ElligatorSwift module [ default=yes] ] ) , [ ] ,
193
197
[ SECP_SET_DEFAULT([ enable_module_ellswift] , [ yes] , [ yes] )] )
@@ -454,6 +458,14 @@ if test x"$enable_module_schnorrsig_halfagg" = x"yes"; then
454
458
enable_module_schnorrsig=yes
455
459
fi
456
460
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
+
457
469
if test x"$enable_module_bppp" = x"yes"; then
458
470
if test x"$enable_module_generator" = x"no"; then
459
471
AC_MSG_ERROR ( [ Module dependency error: You have disabled the generator module explicitly, but it is required by the bppp module.] )
555
567
if test x"$enable_module_schnorrsig_halfagg" = x"yes"; then
556
568
AC_MSG_ERROR ( [ Schnorrsig Half-Aggregation module is experimental. Use --enable-experimental to allow.] )
557
569
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
558
573
if test x"$enable_module_bppp" = x"yes"; then
559
574
AC_MSG_ERROR ( [ Bulletproofs++ module is experimental. Use --enable-experimental to allow.] )
560
575
fi
@@ -611,6 +626,7 @@ AM_CONDITIONAL([ENABLE_MODULE_ECDSA_S2C], [test x"$enable_module_ecdsa_s2c" = x"
611
626
AM_CONDITIONAL([ ENABLE_MODULE_ECDSA_ADAPTOR] , [ test x"$enable_module_ecdsa_adaptor" = x"yes"] )
612
627
AM_CONDITIONAL([ ENABLE_MODULE_BPPP] , [ test x"$enable_module_bppp" = x"yes"] )
613
628
AM_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"] )
614
630
AM_CONDITIONAL([ USE_REDUCED_SURJECTION_PROOF_SIZE] , [ test x"$use_reduced_surjection_proof_size" = x"yes"] )
615
631
AM_CONDITIONAL([ USE_EXTERNAL_ASM] , [ test x"$enable_external_asm" = x"yes"] )
616
632
AM_CONDITIONAL([ USE_ASM_ARM] , [ test x"$set_asm" = x"arm32"] )
@@ -651,6 +667,7 @@ echo " module ecdsa-s2c = $enable_module_ecdsa_s2c"
651
667
echo " module ecdsa-adaptor = $enable_module_ecdsa_adaptor"
652
668
echo " module bppp = $enable_module_bppp"
653
669
echo " module schnorrsig-halfagg = $enable_module_schnorrsig_halfagg"
670
+ echo " module schnorr-adaptor = $enable_module_schnorr_adaptor"
654
671
echo
655
672
echo " asm = $set_asm"
656
673
echo " ecmult window size = $set_ecmult_window"
0 commit comments