Skip to content

Commit

Permalink
Add usage examples to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
elichai committed Feb 23, 2022
1 parent 517644e commit 42e0343
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ libsecp256k1 is built using autotools:
$ make check # run the test suite
$ sudo make install # optional

Usage examples
-----------
Usage examples can be found in the [examples](examples) directory. To compile them you need to configure with `--enable-examples`.
For experimental modules, you will also need `--enable-experimental` as well as a flag for each individual module, e.g. `--enable-module-ecdh`.
* [ECDSA example](examples/ecdsa.c)
* [Schnorr Signatures example](examples/schnorr.c)
* [Deriving a shared secret(ECDH) example](examples/ecdh.c)

Test coverage
-----------

Expand Down

0 comments on commit 42e0343

Please sign in to comment.