@@ -168,24 +168,26 @@ AC_ARG_ENABLE(examples,
168
168
AS_HELP_STRING ( [ --enable-examples] ,[ compile the examples [ default=no] ] ) , [ ] ,
169
169
[ SECP_SET_DEFAULT([ enable_examples] , [ no] , [ yes] )] )
170
170
171
- AC_ARG_ENABLE ( module_bppp ,
172
- AS_HELP_STRING ( [ --enable-module-bppp] ,[ enable Bulletproofs++ module (experimental)] ) ,
173
- [ ] ,
174
- [ SECP_SET_DEFAULT([ enable_module_bppp] , [ no] , [ yes] )] )
175
-
176
171
AC_ARG_ENABLE ( module_ecdh ,
177
172
AS_HELP_STRING ( [ --enable-module-ecdh] ,[ enable ECDH module [ default=yes] ] ) , [ ] ,
178
173
[ SECP_SET_DEFAULT([ enable_module_ecdh] , [ yes] , [ yes] )] )
179
174
180
- AC_ARG_ENABLE ( module_musig ,
181
- AS_HELP_STRING ( [ --enable-module-musig] ,[ enable MuSig module (experimental)] ) ,
182
- [ ] ,
183
- [ SECP_SET_DEFAULT([ enable_module_musig] , [ no] , [ yes] )] )
184
-
185
175
AC_ARG_ENABLE ( module_recovery ,
186
176
AS_HELP_STRING ( [ --enable-module-recovery] ,[ enable ECDSA pubkey recovery module [ default=no] ] ) , [ ] ,
187
177
[ SECP_SET_DEFAULT([ enable_module_recovery] , [ no] , [ yes] )] )
188
178
179
+ AC_ARG_ENABLE ( module_extrakeys ,
180
+ AS_HELP_STRING ( [ --enable-module-extrakeys] ,[ enable extrakeys module [ default=yes] ] ) , [ ] ,
181
+ [ SECP_SET_DEFAULT([ enable_module_extrakeys] , [ yes] , [ yes] )] )
182
+
183
+ AC_ARG_ENABLE ( module_schnorrsig ,
184
+ AS_HELP_STRING ( [ --enable-module-schnorrsig] ,[ enable schnorrsig module [ default=yes] ] ) , [ ] ,
185
+ [ SECP_SET_DEFAULT([ enable_module_schnorrsig] , [ yes] , [ yes] )] )
186
+
187
+ AC_ARG_ENABLE ( module_ellswift ,
188
+ AS_HELP_STRING ( [ --enable-module-ellswift] ,[ enable ElligatorSwift module [ default=yes] ] ) , [ ] ,
189
+ [ SECP_SET_DEFAULT([ enable_module_ellswift] , [ yes] , [ yes] )] )
190
+
189
191
AC_ARG_ENABLE ( module_generator ,
190
192
AS_HELP_STRING ( [ --enable-module-generator] ,[ enable NUMS generator module [ default=no] ] ) ,
191
193
[ ] ,
@@ -196,28 +198,35 @@ AC_ARG_ENABLE(module_rangeproof,
196
198
[ ] ,
197
199
[ SECP_SET_DEFAULT([ enable_module_rangeproof] , [ no] , [ yes] )] )
198
200
201
+ AC_ARG_ENABLE ( module_surjectionproof ,
202
+ AS_HELP_STRING ( [ --enable-module-surjectionproof] ,[ enable surjection proof module [ default=no] ] ) ,
203
+ [ ] ,
204
+ [ SECP_SET_DEFAULT([ enable_module_surjectionproof] , [ no] , [ yes] )] )
205
+ AC_ARG_ENABLE ( reduced_surjection_proof_size ,
206
+ AS_HELP_STRING ( [ --enable-reduced-surjection-proof-size] ,[ use reduced surjection proof size (disabling parsing and verification) [ default=no] ] ) ,
207
+ [ ] ,
208
+ [ SECP_SET_DEFAULT([ enable_reduced_surjection_proof_size] , [ no] , [ no] )] )
209
+
199
210
AC_ARG_ENABLE ( module_whitelist ,
200
211
AS_HELP_STRING ( [ --enable-module-whitelist] ,[ enable key whitelisting module [ default=no] ] ) ,
201
212
[ ] ,
202
213
[ SECP_SET_DEFAULT([ enable_module_whitelist] , [ no] , [ yes] )] )
203
214
204
- AC_ARG_ENABLE ( module_extrakeys ,
205
- AS_HELP_STRING ( [ --enable-module-extrakeys] ,[ enable extrakeys module [ default=yes] ] ) , [ ] ,
206
- [ SECP_SET_DEFAULT([ enable_module_extrakeys] , [ yes] , [ yes] )] )
207
-
208
- AC_ARG_ENABLE ( module_schnorrsig ,
209
- AS_HELP_STRING ( [ --enable-module-schnorrsig] ,[ enable schnorrsig module [ default=yes] ] ) , [ ] ,
210
- [ SECP_SET_DEFAULT([ enable_module_schnorrsig] , [ yes] , [ yes] )] )
211
-
212
- AC_ARG_ENABLE ( module_ellswift ,
213
- AS_HELP_STRING ( [ --enable-module-ellswift] ,[ enable ElligatorSwift module [ default=yes] ] ) , [ ] ,
214
- [ SECP_SET_DEFAULT([ enable_module_ellswift] , [ yes] , [ yes] )] )
215
+ AC_ARG_ENABLE ( module_musig ,
216
+ AS_HELP_STRING ( [ --enable-module-musig] ,[ enable MuSig module (experimental)] ) ,
217
+ [ ] ,
218
+ [ SECP_SET_DEFAULT([ enable_module_musig] , [ no] , [ yes] )] )
215
219
216
220
AC_ARG_ENABLE ( module_ecdsa_s2c ,
217
221
AS_HELP_STRING ( [ --enable-module-ecdsa-s2c] ,[ enable ECDSA sign-to-contract module [ default=no] ] ) ,
218
222
[ ] ,
219
223
[ SECP_SET_DEFAULT([ enable_module_ecdsa_s2c] , [ no] , [ yes] )] )
220
224
225
+ AC_ARG_ENABLE ( module_bppp ,
226
+ AS_HELP_STRING ( [ --enable-module-bppp] ,[ enable Bulletproofs++ module (experimental)] ) ,
227
+ [ ] ,
228
+ [ SECP_SET_DEFAULT([ enable_module_bppp] , [ no] , [ yes] )] )
229
+
221
230
AC_ARG_ENABLE ( module_ecdsa-adaptor ,
222
231
AS_HELP_STRING ( [ --enable-module-ecdsa-adaptor] ,[ enable ECDSA adaptor module [ default=no] ] ) ,
223
232
[ ] ,
@@ -227,16 +236,6 @@ AC_ARG_ENABLE(external_default_callbacks,
227
236
AS_HELP_STRING ( [ --enable-external-default-callbacks] ,[ enable external default callback functions [ default=no] ] ) , [ ] ,
228
237
[ SECP_SET_DEFAULT([ enable_external_default_callbacks] , [ no] , [ no] )] )
229
238
230
- AC_ARG_ENABLE ( module_surjectionproof ,
231
- AS_HELP_STRING ( [ --enable-module-surjectionproof] ,[ enable surjection proof module [ default=no] ] ) ,
232
- [ ] ,
233
- [ SECP_SET_DEFAULT([ enable_module_surjectionproof] , [ no] , [ yes] )] )
234
-
235
- AC_ARG_ENABLE ( reduced_surjection_proof_size ,
236
- AS_HELP_STRING ( [ --enable-reduced-surjection-proof-size] ,[ use reduced surjection proof size (disabling parsing and verification) [ default=no] ] ) ,
237
- [ ] ,
238
- [ SECP_SET_DEFAULT([ use_reduced_surjection_proof_size] , [ no] , [ no] )] )
239
-
240
239
# Test-only override of the (autodetected by the C code) "widemul" setting.
241
240
# Legal values are:
242
241
# * int64 (for [u]int64_t),
@@ -527,7 +526,7 @@ if test x"$enable_external_default_callbacks" = x"yes"; then
527
526
SECP_CONFIG_DEFINES="$SECP_CONFIG_DEFINES -DUSE_EXTERNAL_DEFAULT_CALLBACKS=1"
528
527
fi
529
528
530
- if test x"$use_reduced_surjection_proof_size " = x"yes"; then
529
+ if test x"$enable_reduced_surjection_proof_size " = x"yes"; then
531
530
SECP_CONFIG_DEFINES="$SECP_CONFIG_DEFINES -DUSE_REDUCED_SURJECTION_PROOF_SIZE=1"
532
531
fi
533
532
@@ -610,6 +609,10 @@ AC_SUBST(LIB_VERSION_AGE, _LIB_VERSION_AGE)
610
609
611
610
AC_OUTPUT
612
611
612
+ # The order in which all modules are listed here should be considered the
613
+ # canonical order. This order (or, when appropriate, its reserve) should be used
614
+ # everywhere we list or process modules, i.e., here and in other build system
615
+ # files and docs.
613
616
echo
614
617
echo "Build Options:"
615
618
echo " with external callbacks = $enable_external_default_callbacks"
@@ -623,9 +626,13 @@ echo " module recovery = $enable_module_recovery"
623
626
echo " module extrakeys = $enable_module_extrakeys"
624
627
echo " module schnorrsig = $enable_module_schnorrsig"
625
628
echo " module ellswift = $enable_module_ellswift"
629
+ # libsecp256k1-zkp modules, in the order they were added to the libsecp256k1-zkp
626
630
echo " module generator = $enable_module_generator"
627
631
echo " module rangeproof = $enable_module_rangeproof"
628
632
echo " module surjectionproof = $enable_module_surjectionproof"
633
+ if test x"$enable_module_surjectionproof" = x"yes" && test x"$enable_reduced_surjection_proof_size" = x"yes"; then
634
+ echo " reduced proof size = $enable_reduced_surjection_proof_size"
635
+ fi
629
636
echo " module whitelist = $enable_module_whitelist"
630
637
echo " module musig = $enable_module_musig"
631
638
echo " module ecdsa-s2c = $enable_module_ecdsa_s2c"
0 commit comments