Tim Ruffing
a364c95419
Make WINDOW_G configurable
...
This makes WINDOW_G a configurable value in the range of [3..24].
The upper limit of 24 is a defensive choice. The code is probably
correct for values up to 33 but those larger values yield in huge
tables (>= 256MiB), which are i) unlikely to be really beneficial
in practice and ii) increasingly difficult to test.
2019-04-12 17:36:44 +02:00
Tim Ruffing
9c1dda828f
Add secp256k1_ prefix to default callback functions
2019-04-01 17:53:26 +02:00
Tim Ruffing
08e2e19f24
Include stdio.h and stdlib.h explicitly in secp256k1.c
2019-04-01 17:53:26 +02:00
Tim Ruffing
9a949e5f2b
Allow usage of external default callbacks
2019-04-01 17:53:26 +02:00
Tim Ruffing
b7fca7590a
Replace CHECKs for no_precomp ctx by ARG_CHECKs without a return
2019-04-01 17:53:26 +02:00
Tim Ruffing
af2569b8a7
Explain caller's obligations for preallocated memory
2019-04-01 17:53:26 +02:00
Tim Ruffing
e4a2f8e500
Move _preallocated functions to separate header
2019-03-05 13:23:13 +01:00
Tim Ruffing
7366ab7f8c
Export _preallocated functions
2019-03-05 13:23:13 +01:00
Tim Ruffing
7a848d25cc
Add tests for contexts in preallocated memory
2019-03-05 13:23:11 +01:00
Tim Ruffing
1a1febfd86
Check arguments of _preallocated functions
2019-03-05 13:22:53 +01:00
Tim Ruffing
19debda326
Support cloning a context into preallocated memory
2019-03-05 13:22:53 +01:00
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