930 Commits

Author SHA1 Message Date
Tim Ruffing
1738dd0eb5 Switch to a single malloc call 2019-03-05 13:22:53 +01:00
Tim Ruffing
16d4a0a251 Add size constants for preallocated memory 2019-03-05 13:22:53 +01:00
Tim Ruffing
3f1a8580a2 Prepare for manual memory management in preallocated memory
* Determine ALIGNMENT more cleverly and move it to util.h
 * Implement manual_malloc() helper function
2019-03-05 13:22:46 +01:00
Andrew Poelstra
1bbad3a04b
Merge pull request #45 from apoelstra/2019-02-musig-docs
musig: add user documentation
2019-02-21 17:10:21 +00:00
Andrew Poelstra
f6a6bca22f musig: remove musig_session API docs about session ID reuse; link to Blockstream blog post 2019-02-21 15:02:13 +00:00
Andrew Poelstra
89b7f5b73b f nits 2019-02-20 15:25:47 +00:00
Janus Troelsen
792d504315
Update musig.md
Use monospaced font for math expressions
2019-02-18 16:30:31 +01:00
Andrew Poelstra
9125c16622 f remove markdown indentation 2019-02-12 14:58:08 +00:00
Andrew Poelstra
0512dd2ba9 f reword adaptor signature stuf 2019-02-12 14:53:36 +00:00
Andrew Poelstra
8cab1c5cae f more nits 2019-02-12 14:43:35 +00:00
Andrew Poelstra
0492592010 f replace C by L 2019-02-12 14:39:03 +00:00
Andrew Poelstra
6b0b22bc89 musig: add user documentation 2019-02-12 00:44:31 +00:00
Andrew Poelstra
d5e22a59f6
Merge pull request #35 from jonasnick/2018-10-musig
Add MuSig module
2019-02-07 00:19:41 +00:00
Jonas Nick
2fc700a943 Add 3-of-3 MuSig example 2019-02-06 11:27:46 +00:00
Jonas Nick
77d5b4ac7d Add MuSig module which allows creating n-of-n multisignatures and adaptor signatures. 2019-02-06 11:27:37 +00:00
Andrew Poelstra
f0e4bb9283 Add schnorrsig module which implements BIP-schnorr [0] compatible signing, verification and batch verification.
[0] https://github.com/sipa/bips/blob/bip-schnorr/bip-schnorr.mediawiki
2019-01-29 11:02:07 +00:00
Andrew Poelstra
8260800491 add chacha20 function 2019-01-29 10:59:27 +00:00
Andrew Poelstra
43dd1f4fe7
Merge pull request #40 from instagibbs/size_t
use proper types for rangeproof min/max in unit test case
2019-01-03 22:56:58 +00:00
Andrew Poelstra
6532fa0a96
Merge pull request #39 from instagibbs/more_builds
Enable more builds with rest of experimental flags
2019-01-03 22:56:50 +00:00
Andrew Poelstra
2b2429dfaa rangeproof: reduce iteration count in unit tests 2019-01-03 14:21:48 -05:00
Gregory Sanders
12b0e5dda7 Enable more builds with rest of experimental flags 2019-01-03 14:21:48 -05:00
Gregory Sanders
8c444eef6a use proper types for rangeproof min/max 2019-01-03 14:18:39 -05:00
Jonas Nick
ed59fbe8b7 Add trivial ecmult_multi algorithm. It is selected when no scratch space is given and just multiplies and adds the points. 2018-12-22 22:38:01 +00:00
Jonas Nick
53ad841caf Add explanation about how BIP32 unhardened derivation can be used to simplify whitelisting 2018-12-14 20:25:51 +00:00
Jonas Nick
71c5fe0f6e Add comment to explain effect of max_n_iterations in surjectionproof_init 2018-12-14 20:25:51 +00:00
Andrew Poelstra
85fd42fb7e add unit test for generator and pedersen commitment roundtripping 2018-12-14 20:25:51 +00:00
Andrew Poelstra
2ccf885419 rangeproof: fix serialization of pedersen commintments 2018-12-14 20:25:51 +00:00
Andrew Poelstra
60c173b640 rangeproof: verify correctness of pedersen commitments when parsing 2018-12-14 20:25:51 +00:00
Andrew Poelstra
32d7526cd5 generator: verify correctness of point when parsing 2018-12-14 20:25:51 +00:00
Andrew Poelstra
ae14e8a9d8 rangeproof: check that points deserialize correctly when verifying rangeproof 2018-12-14 20:25:51 +00:00
Andrew Poelstra
44fe43d757 rangeproof: add fixed vector test case 2018-12-14 20:25:51 +00:00
Frank V. Castellucci
e065d7df9f Expose generator in shared library
Was failing linking to `*.so` library
2018-12-14 20:25:51 +00:00
Gregory Sanders
fb1ba329aa fix spelling in documentation 2018-12-14 20:25:51 +00:00
Tim Ruffing
fb75faa147 Test for rejection of trailing bytes in range proofs 2018-12-14 20:25:51 +00:00
Tim Ruffing
9b2cf1708d Test for rejection of trailing bytes in surjection proofs 2018-12-14 20:25:51 +00:00
Tim Ruffing
a3a1800ba6 Reject surjection proofs with trailing garbage 2018-12-14 20:25:51 +00:00
datavetaren
0c77ae9a75 Minor bugfix. Wrong length due to NUL character. 2018-12-14 20:25:51 +00:00
Jonas Nick
b1f31bc4b6 Add whitelisting benchmark 2018-12-14 20:25:51 +00:00
Gregory Sanders
52a9f8f8f3 add whitelist_impl.h to include for dist 2018-12-14 20:25:51 +00:00
Andrew Poelstra
a707865bc5 generator: add API tests 2018-12-14 20:25:51 +00:00
Andrew Poelstra
ec1ef040f5 generator: remove unnecessary ARG_CHECK from generate() 2018-12-14 20:25:51 +00:00
Gregory Sanders
b0e9aa828f Fix generator makefile
Include test_impl.h
2018-12-14 20:25:51 +00:00
Jonas Nick
526c65499f Fix pedersen_blind_generator_blind_sum return value documentation 2018-12-14 20:25:51 +00:00
Jonas Nick
b51886e722 Add n_keys argument to whitelist_verify 2018-12-14 20:25:51 +00:00
Jonas Nick
37c57de083 Fix checks of whitelist serialize/parse arguments 2018-12-14 20:25:51 +00:00
Andrew Poelstra
9b8a9d91eb whitelist: fix serialize/parse API to take serialized length 2018-12-14 20:25:51 +00:00
Jonas Nick
7f17515609 Fix include/secp256k1_rangeproof.h function argument documentation. 2018-12-14 20:25:51 +00:00
Andrew Poelstra
0d817020d9 rangeproof: add API tests 2018-12-14 20:25:51 +00:00
Andrew Poelstra
417bb0643f surjectionproof: rename unit test functions to be more consistent with other modules 2018-12-14 20:25:51 +00:00
Andrew Poelstra
1e2d5c1a26 surjectionproof: add API unit tests 2018-12-14 20:25:51 +00:00