Andrew Poelstra
56f69d979f
surjectionproof: introduce SECP256K1_SURJECTIONPROOF_MAX_USED_INPUTS
constant and set it to 16
2020-07-24 14:59:36 +02:00
Andrew Poelstra
b8a3ff5f3b
surjectionproof: reduce stack usage
2020-07-24 14:59:36 +02:00
Andrew Poelstra
68d937fe11
surjectionproof: fix malleability in surjection proof parsing
2020-07-24 14:59:36 +02:00
Andrew Poelstra
41bc9ce129
surjectionproof: add test vectors for "set padding bits"
2020-07-24 14:59:36 +02:00
Andrew Poelstra
b0644d4ab3
surjectionproof: add fixed test vectors
2020-07-24 14:59:36 +02:00
Tim Ruffing
c0415eb0cb
Fix read of wrong buffer (and OOB) in surjectionproof tests
2020-07-24 14:59:36 +02:00
Dmitry Petukhov
00fffeb172
Improve comments for surctionproof init+alloc/destroy funcs
...
The comments with 'XXX' was intended to indicate that the listed
concerns was subject to review and change, but the code with these
comments was merged straight away. This commit replaces comments
with more complete text describing the issues.
This also signifies that the commit that this code was introduced in is
not anymore 'work in progress'.
2020-07-24 14:59:36 +02:00
Dmitry Petukhov
2dc868f35b
work in progress: add _allocate_initialized/destroy funcs
2020-07-24 14:59:36 +02:00
Tim Ruffing
16aaa4a02c
Test for rejection of trailing bytes in surjection proofs
2020-07-24 14:50:48 +02:00
Tim Ruffing
949e994cb3
Reject surjection proofs with trailing garbage
2020-07-24 14:50:48 +02:00
Andrew Poelstra
18c5c62b45
surjectionproof: rename unit test functions to be more consistent with other modules
2020-07-24 14:49:33 +02:00
Andrew Poelstra
5f1ad03d00
surjectionproof: add API unit tests
2020-07-24 14:49:33 +02:00
Andrew Poelstra
f858a4e3d5
surjectionproof: tests_impl.h s/assert/CHECK/g
2020-07-24 14:49:33 +02:00
Andrew Poelstra
ba8b4f53ef
add surjection proof module
...
Includes fix and tests by Jonas Nick.
2020-07-24 14:49:33 +02:00