Skip to content

Commit

Permalink
silentpayments: add examples/silentpayments.c
Browse files Browse the repository at this point in the history
Demonstrate sending, scanning, and light client scanning.
  • Loading branch information
josibake committed Aug 15, 2024
1 parent 94c6e1f commit 5c546e2
Show file tree
Hide file tree
Showing 3 changed files with 515 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ecdh_example
ecdsa_example
schnorr_example
ellswift_example
silentpayments_example
*.exe
*.so
*.a
Expand Down
11 changes: 11 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,17 @@ ellswift_example_LDFLAGS += -lbcrypt
endif
TESTS += ellswift_example
endif
if ENABLE_MODULE_SILENTPAYMENTS
noinst_PROGRAMS += silentpayments_example
silentpayments_example_SOURCES = examples/silentpayments.c
silentpayments_example_CPPFLAGS = -I$(top_srcdir)/include -DSECP256K1_STATIC
silentpayments_example_LDADD = libsecp256k1.la
silentpayments_example_LDFLAGS = -static
if BUILD_WINDOWS
silentpayments_example_LDFLAGS += -lbcrypt
endif
TESTS += silentpayments_example
endif
endif

### Precomputed tables
Expand Down
Loading

0 comments on commit 5c546e2

Please sign in to comment.