Commit Graph

  • ef83281c3a
    Merge pull request #656 from real-or-random/patch-1 Andrew Poelstra 2019-08-10 13:08:06 +00:00
  • 556caad2ca
    Fix typo in docs for _context_set_illegal_callback Tim Ruffing 2019-08-09 11:25:09 +02:00
  • 0d82732a9a Improve VERIFY_CHECK of overflow in secp256k1_scalar_cadd_bit. This added check ensures that any curve order overflow doesn't go undetected due a uint32_t overflow. Russell O'Connor 2019-07-05 00:30:36 -04:00
  • 786dfb49f5
    Merge #583: JNI: fix use sig array Pieter Wuille 2019-08-06 15:32:20 -07:00
  • e95f8ab098
    Merge #644: Avoid optimizing out a verify_check Pieter Wuille 2019-08-06 15:28:48 -07:00
  • 384f55606a
    Merge #652: README.md: update instruction to run tests Pieter Wuille 2019-08-06 15:04:26 -07:00
  • ee56accd47
    Merge #651: Fix typo in secp256k1_preallocated.h Pieter Wuille 2019-08-06 15:02:51 -07:00
  • 7b9b117230
    Merge #640: scalar_impl.h: fix includes Pieter Wuille 2019-08-06 15:01:16 -07:00
  • d99bec2e21
    Merge #655: jni: Use only Guava for hex encoding and decoding Pieter Wuille 2019-08-06 12:54:31 -07:00
  • 2abcf951af
    jni: Use only Guava for hex encoding and decoding Tim Ruffing 2019-08-05 17:02:29 +02:00
  • 271582b3b7 Fix typo practicalswift 2019-08-05 13:47:23 +00:00
  • 60f7f2de5d Don't assume that ALIGNMENT > 1 in tests Tim Ruffing 2019-07-30 14:42:17 +02:00
  • ada6361dec Use ROUND_TO_ALIGN in scratch_create Jonas Nick 2019-07-29 15:50:53 +00:00
  • 8ecc6ce50e Add check preventing rounding to alignment from wrapping around in scratch_alloc Jonas Nick 2019-07-12 10:00:39 +00:00
  • 4edaf06fb0 Add check preventing integer multiplication wrapping around in scratch_max_allocation Jonas Nick 2019-07-12 09:56:56 +00:00
  • ce6d438266
    README.md: update instruction to run tests Marko Bencun 2019-07-19 13:50:16 +02:00
  • b1e68cb8e6
    Fix typo in secp256k1_preallocated.h Jan Xie 2019-07-18 08:35:42 +08:00
  • a11c76c59a secp256k1/src/tests.c: Properly handle sscanf return value Mustapha Abiola 2019-07-14 17:02:58 +02:00
  • 6a57be09e3 Require message in musig protocol in an earlier state. In particular, remove the set_msg function and require the message in get_public_nonce at the latest. Jonas Nick 2019-06-21 08:43:18 +00:00
  • 57ce5882ad Fix my_index in musig state machine tests Jonas Nick 2019-06-21 14:12:01 +00:00
  • 8fe63e5654 Increase robustness against UB. Thanks to elichai2 who noted that the literal '1' is a signed integer, and that shifting a signed 32-bit integer by 31 bits causes an overflow and yields undefined behaviour. While 'scalar_low_impl''s 'secp256k1_scalar_cadd_bit' is only used for testing purposes and currently the 'bit' parameter is only 0 or 1, it is better to avoid undefined behaviour in case the used domain of 'secp256k1_scalar_cadd_bit' expands. roconnor-blockstream 2019-07-03 11:23:20 -04:00
  • e3a10f4677
    Merge pull request #74 from jonasnick/sig_combine_tweak Andrew Poelstra 2019-07-03 22:02:15 +00:00
  • 94ae7cbf83
    Moved a dereference so the null check will be before the dereferencing Elichai Turkel 2019-07-02 19:18:56 -04:00
  • 8df2c952f1
    Merge pull request #75 from jonasnick/musig-travis Tim Ruffing 2019-07-03 01:21:06 +02:00
  • a0a4b4212c Add tweak32 parameter to musig_partial_sig_combine which allows to sign for p2c/taproot commitments Jonas Nick 2019-06-22 18:21:22 +00:00
  • 996e84c4cd Add musig module tests to travis Jonas Nick 2019-06-25 08:51:53 +00:00
  • 11af7015de
    Merge pull request #58 from jonasnick/schnorrsig-fix Tim Ruffing 2019-06-25 14:31:15 +02:00
  • cb8f059724 Add fixups from upstream schnorrsig PR Jonas Nick 2019-02-11 19:06:11 +00:00
  • 2f6c3353ab
    Merge pull request #72 from jonasnick/fix-upstream-rebase Jonas Nick 2019-06-21 12:28:15 +00:00
  • 99e1fb271c Fix musig module after rebase on upstream e541a90e Jonas Nick 2019-06-21 09:01:25 +00:00
  • 6303e3b0ca Fix schnorrsig module after rebase on upstream e541a90e Jonas Nick 2019-06-21 08:54:50 +00:00
  • 2cb73b1064
    scalar_impl.h: fix includes Marko Bencun 2019-06-20 17:33:47 +02:00
  • 44db4d801f
    Merge pull request #57 from apoelstra/2019-04-surjectionproof-stack Andrew Poelstra 2019-06-06 09:29:39 +00:00
  • f7e4d08dae surjection proof: Reject proofs with too many used inputs in reduced mode Tim Ruffing 2019-06-05 11:15:11 +02:00
  • fa33017135
    Merge #634: Add a descriptive comment for secp256k1_ecmult_const. Gregory Maxwell 2019-06-04 23:05:07 +00:00
  • 112edb2c6a allow reducing surjection proof size (to lower generation stack usage) Roman Zeyde 2019-05-30 09:04:40 +03:00
  • d512d78653 surjectionproof: introduce SECP256K1_SURJECTIONPROOF_MAX_USED_INPUTS constant and set it to 16 Andrew Poelstra 2019-04-30 23:04:08 +00:00
  • a118acc02b surjectionproof: reduce stack usage Andrew Poelstra 2019-04-30 22:46:05 +00:00
  • e7f4ff4c62
    Merge pull request #70 from apoelstra/2019-06-surjection-count Andrew Poelstra 2019-06-04 16:35:35 +00:00
  • f94d46e652
    Merge pull request #71 from real-or-random/fix-trailing-test Andrew Poelstra 2019-06-04 15:46:56 +00:00
  • 49a1e01731 surjectionproof: fix malleability in surjection proof parsing Andrew Poelstra 2019-06-03 21:50:40 +00:00
  • 55311b0e03 Fix read of wrong buffer (and OOB) in surjectionproof tests Tim Ruffing 2019-06-04 14:33:08 +02:00
  • ee9e68cd30 Add a descriptive comment for secp256k1_ecmult_const. Gregory Maxwell 2019-06-04 01:52:44 +00:00
  • 290a27bb75 surjectionproof: add test vectors for "set padding bits" Andrew Poelstra 2019-06-03 21:45:48 +00:00
  • 7bc3daa482 surjectionproof: add fixed test vectors Andrew Poelstra 2019-04-30 21:39:14 +00:00
  • d0d738d32d
    Merge #631: typo in comment for secp256k1_ec_pubkey_tweak_mul () Gregory Maxwell 2019-06-01 17:42:50 +00:00
  • 6914c25276
    typo in comment for secp256k1_ec_pubkey_tweak_mul () philsmd 2019-06-01 12:21:20 +02:00
  • 6f3b0c05c2 Improve comments for surctionproof init+alloc/destroy funcs 2019-05-rebase Dmitry Petukhov 2019-05-26 18:37:29 +05:00
  • 250ebb364e work in progress: add _allocate_initialized/destroy funcs Dmitry Petukhov 2019-04-21 21:23:13 +05:00
  • 4a7763361d Improve explanation of key cancellation attack in whitelist.md Jonas Nick 2019-03-28 19:32:17 +00:00
  • 898c9f05bb Clarify how to derive alternative generator H Jonas Nick 2019-05-12 11:13:18 +00:00
  • 15d92782d3 Add bench_generator and bench_rangeproof to .gitignore Roman Zeyde 2019-05-14 22:04:23 +03:00
  • 86240b207d Clean up ./configure help strings (zkp extensions) Tim Ruffing 2019-04-05 21:26:19 +02:00
  • 865b76186c Fix a small typo in the generator parameter name Roman Zeyde 2019-04-11 17:59:58 +03:00
  • cd5ba5c3b9 generator: remove CHECK abort calls exposed by public API Andrew Poelstra 2019-03-27 20:07:15 +00:00
  • ff16651273 musig: add user documentation Andrew Poelstra 2019-02-08 19:31:28 +00:00
  • 0ad6b6036f Add 3-of-3 MuSig example Jonas Nick 2018-12-22 22:15:19 +00:00
  • b61a1a9d98 Add MuSig module which allows creating n-of-n multisignatures and adaptor signatures. Jonas Nick 2018-12-22 22:12:35 +00:00
  • 5d5374f92c Add schnorrsig module which implements BIP-schnorr [0] compatible signing, verification and batch verification. Andrew Poelstra 2018-05-09 15:37:35 +00:00
  • a8ae6baff3 add chacha20 function Andrew Poelstra 2018-04-03 22:06:07 +00:00
  • 9a8a71e8bb use proper types for rangeproof min/max Gregory Sanders 2019-01-03 14:18:39 -05:00
  • 14769b9648 rangeproof: reduce iteration count in unit tests Andrew Poelstra 2019-01-03 19:17:05 +00:00
  • 0593861cc5 Enable more builds with rest of experimental flags Gregory Sanders 2019-01-03 13:45:36 -05:00
  • e9fea74278 Add explanation about how BIP32 unhardened derivation can be used to simplify whitelisting Jonas Nick 2018-11-19 15:43:08 +00:00
  • dec1b9ce27 Add comment to explain effect of max_n_iterations in surjectionproof_init Jonas Nick 2018-04-17 22:34:01 +00:00
  • ea62bfe221 add unit test for generator and pedersen commitment roundtripping Andrew Poelstra 2018-10-08 05:15:34 +00:00
  • e32924f0ee rangeproof: fix serialization of pedersen commintments Andrew Poelstra 2018-10-08 05:17:26 +00:00
  • 972d056fac rangeproof: verify correctness of pedersen commitments when parsing Andrew Poelstra 2018-10-02 18:03:05 +00:00
  • 2cc4c6fef1 generator: verify correctness of point when parsing Andrew Poelstra 2018-10-02 16:23:35 +00:00
  • 65ffea43d5 rangeproof: check that points deserialize correctly when verifying rangeproof Andrew Poelstra 2018-10-02 16:23:08 +00:00
  • cb786d6d1a rangeproof: add fixed vector test case Andrew Poelstra 2018-10-02 17:58:39 +00:00
  • b387ba0389 Expose generator in shared library Frank V. Castellucci 2018-07-25 13:30:11 -04:00
  • 8da432855c fix spelling in documentation Gregory Sanders 2018-06-20 11:43:18 -04:00
  • 6f14fe40d9 Test for rejection of trailing bytes in range proofs Tim Ruffing 2018-05-24 13:23:08 +02:00
  • ab4fbc1be8 Test for rejection of trailing bytes in surjection proofs Tim Ruffing 2018-05-23 15:59:01 +02:00
  • c908c97d67 Reject surjection proofs with trailing garbage Tim Ruffing 2018-05-23 14:56:14 +02:00
  • f723bf5b37 Minor bugfix. Wrong length due to NUL character. datavetaren 2018-05-16 05:02:21 +02:00
  • 6872069de9 Add whitelisting benchmark Jonas Nick 2018-03-16 13:55:55 +00:00
  • 6ceccb75be add whitelist_impl.h to include for dist Gregory Sanders 2018-02-13 16:28:30 -05:00
  • a3ad4a8668 generator: add API tests Andrew Poelstra 2017-08-30 18:08:40 +00:00
  • e93e886cb4 generator: remove unnecessary ARG_CHECK from generate() Andrew Poelstra 2017-08-30 17:59:26 +00:00
  • f1d6e4b831 Fix generator makefile Gregory Sanders 2017-08-15 22:39:26 -04:00
  • 68be611317 Fix pedersen_blind_generator_blind_sum return value documentation Jonas Nick 2017-07-10 18:56:00 +02:00
  • 51fc58ae6b Add n_keys argument to whitelist_verify Jonas Nick 2017-07-10 18:51:16 +02:00
  • 36b100c779 Fix checks of whitelist serialize/parse arguments Jonas Nick 2017-06-27 12:14:29 +02:00
  • c8f54e12ec whitelist: fix serialize/parse API to take serialized length Andrew Poelstra 2017-06-26 17:08:47 +00:00
  • 56fca50778 Fix include/secp256k1_rangeproof.h function argument documentation. Jonas Nick 2017-05-09 01:46:55 +02:00
  • 4617f04784 rangeproof: add API tests Andrew Poelstra 2017-05-03 18:08:31 +00:00
  • cd4e438a3a surjectionproof: rename unit test functions to be more consistent with other modules Andrew Poelstra 2017-05-03 17:06:39 +00:00
  • 2cc7f1e045 surjectionproof: add API unit tests Andrew Poelstra 2017-05-02 16:54:14 +00:00
  • c4097f758f surjectionproof: tests_impl.h s/assert/CHECK/g Andrew Poelstra 2017-05-02 13:50:58 +00:00
  • 5ee6bf3418 rangeproof: fix memory leak in unit tests Andrew Poelstra 2017-04-22 18:31:28 +00:00
  • 94e81a250e add surjection proof module Andrew Poelstra 2016-07-01 15:51:07 +00:00
  • a66ea35227 Implement ring-signature based whitelist delegation scheme Andrew Poelstra 2016-04-21 22:22:39 +00:00
  • 2bb5133615 rangeproof: several API changes Andrew Poelstra 2016-07-06 15:44:09 +00:00
  • 9b00b61d9d Expose generator in pedersen/rangeproof API Pieter Wuille 2016-07-06 13:46:23 +02:00
  • 54fa2639e1 Constant-time generator module Pieter Wuille 2016-07-07 00:47:41 +02:00
  • 023aa86ac0 rangeproof: expose sidechannel message field in the signing API Andrew Poelstra 2016-07-05 15:46:07 +00:00
  • 89e7451d42 [RANGEPROOF BREAK] Use quadratic residue for tie break and modularity cleanup Andrew Poelstra 2016-07-04 13:04:57 +00:00
  • f126331bc9 Pedersen commitments, borromean ring signatures, and ZK range proofs. Gregory Maxwell 2015-08-05 19:04:14 +02:00