Andrew Poelstra
|
bf18ff5a8c
|
surjectionproof: fix generation to fail when any input == the output
Verification will fail in this case, so don't "succeed" in generating a bad proof.
|
2022-07-26 17:14:49 +00:00 |
|
Andrew Poelstra
|
4ff6e4274d
|
surjectionproof: add test for existing behavior on input=output proofs
|
2022-07-26 17:09:36 +00:00 |
|
Jonas Nick
|
b7ebe6436c
|
Test APIs of funcs that need an ecmult_gen ctx with static ctx
The API tests of upstream functions were similarly amended in commit 3b0c2185eab0fe5cb910fffee4c88e134f6d3cad.
|
2022-01-04 12:57:57 +00:00 |
|
Jonas Nick
|
72c8deac03
|
Merge commits with sync-upstream.sh
da0092bc 10f9bd84 297ce820 f34b5cae 920a0e5f 9526874d aa1b889b 20d791ed 3e7b2ea1 21c188b3 8fa41201 515a5dbd c74a7b7e 74c34e72 7006f1b9 ea5e8a9c 793ad901 2e5e4b67 fecf436d 49f608de 49002274 6ad908aa 4f01840b 61ae37c6 486205aa 5d0dbef0 0559fc6e be6944ad a69df3ad b39d431a 0b83b203 09971a3f 9281c9f4 423b6d19 a310e79e 39a36db9 a1102b12
Deal with
- secp256k1_test_rng removal in commit
77a19750b46916b93bb6a08837c26f585bd940fa
- ecmult_gen context simplification after making table static in commit
3b0c2185eab0fe5cb910fffee4c88e134f6d3cad
|
2022-01-02 16:11:15 +00:00 |
|
Jonas Nick
|
938725c1c9
|
Merge commits 'd7ec49a6 9a5a87e0 aa5d34a8 2a3a97c6 ' into temp-merge-976
Also remove remaining uses of ecmult context in secp-zkp and update API tests
accordingly.
|
2021-09-16 15:21:11 +00:00 |
|
Andrew Poelstra
|
29f9a7dc62
|
reduce test rounds for rangeproof and surjectionproof
|
2020-12-03 15:35:50 +00:00 |
|
Jonas Nick
|
b0917f3de1
|
Merge remote-tracking branch 'upstream/master' into temp-merge-835
|
2020-11-05 20:21:38 +00:00 |
|
Tim Ruffing
|
d6738e890e
|
surjection proof: Reject proofs with too many used inputs in reduced mode
|
2020-07-24 14:59:36 +02:00 |
|
Roman Zeyde
|
bd70820123
|
allow reducing surjection proof size (to lower generation stack usage)
|
2020-07-24 14:59:36 +02:00 |
|
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
|
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 |
|
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 |
|