1
0
Fork 0
forked from lthn/blockchain
Commit graph

73 commits

Author SHA1 Message Date
sowle
8f25f0d460
bitcoin-secp256k1 submodule added + native crypto test 2024-06-26 21:15:44 +02:00
sowle
da5c484025
functional_tests/crypto_tests: all performance tests now have prefix "perf", all normal tests with "crypto" prefix will be run regularly since now 2024-06-26 17:30:55 +02:00
sowle
723a89c840
functional tests: gcc compilation fixed 2023-12-27 13:50:12 +01:00
sowle
e239389768
crypto: fixed generators with precomputed data improved (data made static) + more tests 2023-12-27 02:04:59 +01:00
sowle
4200669f5b
crypto: experimental optimizations: ge_scalarmult_base_vartime, ge_scalarmult_vartime_p3, ge_scalarmult_precomp_vartime (point_pc_t) + performance tests for msm pippenger v3-v4 2023-12-25 23:48:14 +01:00
sowle
f95791a723
crypto: much faster pippenger/bucket-style multi-scalar multiplication for range proofs + tests 2023-12-25 19:14:31 +01:00
sowle
77d6f94280
crypto: scalar_t::get_bits + test + performance test + cn_hash performance test 2023-12-25 18:10:14 +01:00
sowle
30299724fd
crypto::point_t::is_zero() now treats non-points (0, 0, 0, ?) or incorrectly encoded points (0, x, x, !0) as not an identity and thus returns false + test 2023-12-04 22:33:38 +01:00
sowle
8fdd15f584
crypto: implemented point_t::operator-() + test 2023-08-23 19:32:28 +02:00
sowle
196c08a15f
crypto tests: minor fixes 2023-04-10 22:15:45 +02:00
sowle
52f941c748
hopefully final fixes for gcc errors 2023-04-10 21:01:35 +02:00
sowle
b94e2f536d
ml2s tests excluded from *; some warnings fixed 2023-04-09 18:22:20 +02:00
sowle
c5ff48b9a5
crypto constants refactored: moved to headers as constexpr's, new constexpr ctors added, some were improved + tests greatly improved (crypto_constants and crypto_scalar_basics) 2023-04-06 02:50:12 +02:00
sowle
8f86674fc1
crypto: constants for generators U, X, 1/8*H updated + crypto_basics test was adatped 2023-04-04 23:18:04 +02:00
sowle
154e649f56
verify_BGE_proof() first PoC implementation 2023-03-27 22:31:55 +02:00
sowle
1d3153cfbd
generic_schnorr_sig_s (serialized) + test 2023-03-01 21:28:20 +01:00
sowle
dd1631461d
crypto::generic_schnorr_sig + test 2023-02-28 02:04:50 +01:00
sowle
5127c77ebf
scalar_t::assign_mulsub + test 2023-02-28 02:03:57 +01:00
sowle
a532a3e042
native_coin_asset_id_pt introduced 2023-02-27 15:35:22 +01:00
sowle
91afdac46d
crypto:: scalar_t::operator- (unary) + test 2023-02-26 21:44:54 +01:00
sowle
7652a117cd
confidential assets: core & wallet refactoring, various fixes, WIP 2023-02-09 23:35:33 +01:00
sowle
5568e0eeaf
crypto: generator U + assertion tests for generators 2023-02-08 18:16:04 +01:00
sowle
5e0ce8cfb4
crypto: c_point_H_plus_G and c_point_H_minus_G constants added + unittest 2022-10-10 23:47:49 +02:00
sowle
af9c53794e
1) zarcanum math moved to separate file; 2) fixed an error in rhs calculation; 3) 2^64 constant + test 2022-09-13 22:08:46 +02:00
sowle
e52e2b21a3
ZC_sig 2022-07-22 05:39:54 +02:00
sowle
53caed6d38
clsag first implementation + tests 2022-07-22 05:36:38 +02:00
sowle
386df3db2a
crypto tests: ml2s tests moved out 2022-07-22 05:30:10 +02:00
sowle
67b5551eea
crypto tests: various fixes 2022-05-12 20:50:14 +02:00
sowle
82c4a47a21
functional tests: crypto test runner minor fix 2022-04-25 16:37:44 +02:00
sowle
b0e8e6c2eb
crypto: scalar_t: get_bit, set_bit, clear_bit, power_of_2 implemented; crypto_sc_set_bit_clear_bit test added 2022-04-15 21:29:08 +02:00
sowle
a0211f2b27
crypto tests: ASSERT_NEQ 2022-04-15 21:27:16 +02:00
sowle
10141c3dfc
crypto: range proofs major refactoring, crypto traits refactored, calc_exp_power_of_2_upper_bound changed to constexpr analogs 2022-04-10 19:50:13 +02:00
sowle
b9ccb10287
crypto: scalar_t::git_bit + test crypto_sc_get_bit; hash_helper_t extended with hp variants 2022-04-09 21:12:44 +02:00
sowle
140f43bc5e
crypto tests: point_is_zero test added 2021-12-31 06:44:26 +03:00
sowle
4659409288
crypto_tests: torsion_elements test added 2021-12-27 07:13:37 +03:00
sowle
8645a9ce2f
crypto tests: cn_fast_hash_perf improved 2021-12-18 08:35:48 +03:00
sowle
1ac39d19f6
crypto_tests: added crypto_neg_identity (against negative identity pub keys and key images) 2021-06-22 18:05:23 +03:00
sowle
ca10d2de17
Bulletproofs+: gcc compilation fix + minor improvements 2021-06-08 18:07:53 +03:00
sowle
d38c852ead
crypto_tests: minor fix 2021-06-08 17:56:25 +03:00
sowle
5fa0e15843
crypto tests: crypto_calc_lsb_32 2021-06-07 14:43:19 +03:00
sowle
e24be09046
crypto: faster sc_invert from libsodium (my old naive one moved to the crypto_tests) 2021-05-11 06:42:06 +03:00
sowle
191a89f9c8
crypto: parse_tpod_from_hex_string 2021-04-27 05:18:09 +03:00
sowle
ebffb92877
crypto: crypto-sugar (scalar_t, point_t and other helpers) moved from functional_tests/crypto_tests to crypto 2021-04-24 04:48:38 +03:00
sowle
8ac3432dcb
experimental crypto: ml2s_sig_verif_performance, ml2s_sig_verif_performance_2 (performance tests for ml2s) 2021-04-21 17:36:43 +03:00
sowle
07ce36d4ee
experimental crypto: assign_mul_plus_G, c_point_H 2021-04-21 17:34:36 +03:00
sowle
efa8065d3d
experimental crypto: pod_to_hex_* fixed, point_t ctor fixed 2021-04-20 03:04:33 +03:00
sowle
bcc94045c4
experimental crypto: all gcc issues fixed 2021-04-14 20:10:17 +03:00
sowle
0dce55c2e1
experimental crypto: ml2s_py2cpp, ml2s_cpp2py, ml2s_hsc 2021-04-14 00:28:43 +03:00
sowle
a01cc99c3b
experimental crypto: point_t helpers, muladd test 2021-04-13 02:44:42 +03:00
sowle
561c72b68b
experimental crypto: performance tests moved to separate file + few new crypto primitives added to crypto_performance 2021-04-12 13:14:42 +03:00