Skip to content

Commit 5c546e2

Browse files
committed
silentpayments: add examples/silentpayments.c
Demonstrate sending, scanning, and light client scanning.
1 parent 94c6e1f commit 5c546e2

File tree

3 files changed

+515
-0
lines changed

3 files changed

+515
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ecdh_example
1111
ecdsa_example
1212
schnorr_example
1313
ellswift_example
14+
silentpayments_example
1415
*.exe
1516
*.so
1617
*.a

Makefile.am

+11
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,17 @@ ellswift_example_LDFLAGS += -lbcrypt
195195
endif
196196
TESTS += ellswift_example
197197
endif
198+
if ENABLE_MODULE_SILENTPAYMENTS
199+
noinst_PROGRAMS += silentpayments_example
200+
silentpayments_example_SOURCES = examples/silentpayments.c
201+
silentpayments_example_CPPFLAGS = -I$(top_srcdir)/include -DSECP256K1_STATIC
202+
silentpayments_example_LDADD = libsecp256k1.la
203+
silentpayments_example_LDFLAGS = -static
204+
if BUILD_WINDOWS
205+
silentpayments_example_LDFLAGS += -lbcrypt
206+
endif
207+
TESTS += silentpayments_example
208+
endif
198209
endif
199210

200211
### Precomputed tables

0 commit comments

Comments
 (0)