Skip to content

Commit dfeba02

Browse files
josibakestratospher
authored andcommitted
silentpayments: add examples/silentpayments.c
Demonstrate sending, scanning, and light client scanning.
1 parent 4e0e58f commit dfeba02

File tree

3 files changed

+515
-0
lines changed

3 files changed

+515
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ecdsa_example
1212
schnorr_example
1313
ellswift_example
1414
musig_example
15+
silentpayments_example
1516
*.exe
1617
*.so
1718
*.a

Makefile.am

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,17 @@ musig_example_LDFLAGS += -lbcrypt
206206
endif
207207
TESTS += musig_example
208208
endif
209+
if ENABLE_MODULE_SILENTPAYMENTS
210+
noinst_PROGRAMS += silentpayments_example
211+
silentpayments_example_SOURCES = examples/silentpayments.c
212+
silentpayments_example_CPPFLAGS = -I$(top_srcdir)/include -DSECP256K1_STATIC
213+
silentpayments_example_LDADD = libsecp256k1.la
214+
silentpayments_example_LDFLAGS = -static
215+
if BUILD_WINDOWS
216+
silentpayments_example_LDFLAGS += -lbcrypt
217+
endif
218+
TESTS += silentpayments_example
219+
endif
209220
endif
210221

211222
### Precomputed tables

0 commit comments

Comments
 (0)