File tree Expand file tree Collapse file tree 4 files changed +485
-0
lines changed Expand file tree Collapse file tree 4 files changed +485
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ ecdsa_example
1212schnorr_example
1313ellswift_example
1414musig_example
15+ silentpayments_example
1516* .exe
1617* .so
1718* .a
Original file line number Diff line number Diff line change @@ -210,6 +210,17 @@ musig_example_LDFLAGS += -lbcrypt
210210endif
211211TESTS += musig_example
212212endif
213+ if ENABLE_MODULE_SILENTPAYMENTS
214+ noinst_PROGRAMS += silentpayments_example
215+ silentpayments_example_SOURCES = examples/silentpayments.c
216+ silentpayments_example_CPPFLAGS = -I$(top_srcdir ) /include -DSECP256K1_STATIC
217+ silentpayments_example_LDADD = libsecp256k1.la
218+ silentpayments_example_LDFLAGS = -static
219+ if BUILD_WINDOWS
220+ silentpayments_example_LDFLAGS += -lbcrypt
221+ endif
222+ TESTS += silentpayments_example
223+ endif
213224endif
214225
215226# ## Precomputed tables
Original file line number Diff line number Diff line change @@ -29,3 +29,7 @@ endif()
2929if (SECP256K1_ENABLE_MODULE_MUSIG)
3030 add_example(musig)
3131endif ()
32+
33+ if (SECP256K1_ENABLE_MODULE_SILENTPAYMENTS)
34+ add_example(silentpayments)
35+ endif ()
You can’t perform that action at this time.
0 commit comments