File tree Expand file tree Collapse file tree 4 files changed +635
-0
lines changed Expand file tree Collapse file tree 4 files changed +635
-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 @@ -207,6 +207,17 @@ musig_example_LDFLAGS += -lbcrypt
207207endif
208208TESTS += musig_example
209209endif
210+ if ENABLE_MODULE_SILENTPAYMENTS
211+ noinst_PROGRAMS += silentpayments_example
212+ silentpayments_example_SOURCES = examples/silentpayments.c
213+ silentpayments_example_CPPFLAGS = -I$(top_srcdir ) /include -DSECP256K1_STATIC
214+ silentpayments_example_LDADD = libsecp256k1.la
215+ silentpayments_example_LDFLAGS = -static
216+ if BUILD_WINDOWS
217+ silentpayments_example_LDFLAGS += -lbcrypt
218+ endif
219+ TESTS += silentpayments_example
220+ endif
210221endif
211222
212223# ## 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