1
0
Fork 0
forked from lthn/blockchain
Commit graph

68 commits

Author SHA1 Message Date
sowle
ca10d2de17
Bulletproofs+: gcc compilation fix + minor improvements 2021-06-08 18:07:53 +03:00
sowle
57bc1278f4
Bulletproofs+: the first working version 2021-06-05 03:47:27 +03:00
sowle
2fdeefb545
crypto: scalar_vec_t, scalar_mat_t 2021-06-05 03:36:58 +03:00
sowle
5b1fa3d5e8
crypto: scalar_t::assign_mul 2021-06-05 02:18:45 +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
182a0c59bb
crypto sugar: scalar_t::reduce(), hs_t::assign_calc_hash() 2021-05-11 04:32:03 +03:00
sowle
c8ba0418ef
crypto sugar minor improvements 2021-05-05 06:38:07 +03:00
sowle
09ad4f5900
crypto-sugar made less dependent of epee 2021-04-27 05:52:55 +03:00
sowle
191a89f9c8
crypto: parse_tpod_from_hex_string 2021-04-27 05:18:09 +03:00
sowle
1df36cb841
crypto: fix some warnings 2021-04-27 05:14:11 +03:00
cryptozoidberg
54bf59ceab
Merge branch 'develop' into atomics 2021-04-26 13:12:53 -05:00
sowle
730328e87a
crypto: point_t ctor minor fix 2021-04-24 05:18:14 +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
4ce59c023b
crypto: fe_cmp implemented 2021-04-24 04:45:30 +03:00
sowle
7fb643d894
crypto: cn_fast_hash is a bit more faster now 2021-04-22 01:34:51 +03:00
sowle
fc82f572c2
crypto: gcc fixup 2021-04-11 00:18:42 +03:00
sowle
457b84fd7b
crypto: ge_bytes_hash_to_ec_32 2021-04-10 23:43:54 +03:00
sowle
670bacbf3f
crypto: ge_mul8_p3 and sc_muladd implemented 2021-04-10 23:41:38 +03:00
cryptozoidberg
c6572a213a
fixed gcc compilation issue with RIPEMD-160 2021-03-13 16:23:34 +03:00
sowle
4bf6a5e2d1
compilation fixes 2021-03-11 06:48:43 +03:00
sowle
e73fdea5e5
crypto: ge_double_scalarmult_base_vartime_p3, ge_scalarmult_vartime_p3, ge_scalarmult_vartime_p3_v2 added 2021-03-02 00:33:28 +03:00
sowle
140a300421
crypto: ge_p2_to_p3 made public 2021-02-12 23:20:10 +03:00
cryptozoidberg
a7363cfcd3
Merge branch 'develop' into atomics 2021-02-03 18:38:45 +01:00
cryptozoidberg
a31670f225
in the middle of prepare_tx_sources_htlc 2021-02-02 19:02:28 +01:00
sowle
8a03f8e4b3
gcc compilation fixed 2021-01-28 14:53:04 +03:00
sowle
5843f6964c
crypto: fe_isnonzero made public, point_t::is_zero() added 2021-01-26 23:14:46 +03:00
cryptozoidberg
16f37ed4c2
merge from develop 2021-01-18 22:00:36 +01:00
sowle
8063604b37
crypto-ops: ge_p2_to_p3 implemented 2021-01-14 23:45:47 +03:00
sowle
46d9895801
crypto: ge_bytes_hash_to_ec() added 2021-01-09 17:48:57 +03:00
cryptozoidberg
3c51c95941
massive fixes over htlc, sha256/RIPEMD160 basic test(passing) 2021-01-04 22:41:16 +01:00
cryptozoidberg
faa8f69cf3
added sha256 and RIPEMD160 sources 2020-12-30 23:58:03 +01:00
sowle
cb18279d57
gcc compilation fixed 2020-12-26 03:32:49 +03:00
sowle
0a7b856d09
crypto: good fast sc_invert moved to crypto-ops 2020-12-24 17:38:40 +03:00
sowle
f70f58ffc3
crypto: libsodium license added, faster sc_mul implementation 2020-12-24 01:43:22 +03:00
sowle
a16067ac64
crypto: sc_mul added (naive implementation, need to be rewritten) 2020-12-23 01:25:38 +03:00
sowle
0816fe57bb
crypto: 1) ge_p3_0, ge_sub, fe_sq, fe_mul, fe_frombytes, fe_invert made available from outside 2) fe_tobytes implemented 2020-12-14 18:41:49 +03:00
cryptozoidberg
e4aef3f036
Implemented encryption stream 'sink' 2020-08-18 21:54:23 +02:00
sowle
1441b5b27f
seed phase improvements: 26 words + checksum + auditable wallets support 2020-05-02 23:59:37 +03:00
sowle
bb9aa4bd69
stream_cn_hash: buffer moved from the stack to the heap 2020-03-27 00:11:06 +03:00
sowle
18fa6d8d7c
stream_cn_hash introduced 2020-03-11 13:58:10 +03:00
sowle
f298afde10
crypto: ge_scalarmult_p3 implemented (scalar multiplication returning point in ge_p3 format) 2020-02-14 01:57:31 +03:00
cryptozoidberg
a5c02c7d8c
improvements over wallet balance caclulations algo 2019-09-27 17:16:18 +02:00
sowle
d742e6ea2d
crypto: safety improvement: use PRNG manipulation from Boolberry, explicitly require USE_INSECURE_RANDOM_RPNG_ROUTINES defined for using it 2019-09-11 13:35:40 +03:00
sowle
007769124a made crypto_ops::validate_key_image exception safe 2019-05-23 05:07:59 +03:00
sowle
24b3785a44 crypto_assert introduced to ensure runtime safety 2019-05-21 21:22:30 +03:00
sowle
33a002982e formatting/whitespace fixes 2019-05-21 19:53:20 +03:00
0x914409F1
950f9c16f6 Coverity (#28)
* stratum_server: resolve CID 210144 (UNINIT_CTOR)

* stratum_server: resolve CID 210042/210085/210104 (UNCAUGHT_EXCEPT)

The potential to throw exists within the logger,
remove_blockchain_update_listener, and any paths involving the logger
(including CATCH_ENTRY_*).

* epee: misc_log_ex: create CATCH_ENTRY_NO_RETURN macro

A temporary substition for what I hope will eventually be a full-fledged
exception-dispatcher (class-based, not macro).

* stratum_server: resolve CID 210080/210084/210089 (UNCAUGHT_EXCEPT)

The potential to throw exists within the logger,
remove_protocol_handler, and any paths involving the logger
(including CATCH_ENTRY_*).

* epee: levin_protocol_handler_async: resolve CID 210140/210182/210165 (UNCAUGHT_EXCEPT)

The potential to throw exists within guarded_critical_region_t, and any
paths involving the logger (including CATCH_ENTRY_*).

* epee: levin_protocol_handler_async: resolve CID 210110/210119/210155 (UNCAUGHT_EXCEPT)

The potential to throw exists within the logger, del_connection, and any
paths involving the logger (including CATCH_ENTRY_*).

* epee: misc_log_ex: move macros to *top* of file

so they can be used *within* this file.

* daemon: resolve CID 210069/210092/210166 (UNCAUGHT_EXCEPT)

The potential to throw exists within log_space, and any paths involving
the logger (including CATCH_ENTRY_*).

* daemon: return cstdlib proper types in main

* simplewallet: resolve 6 different CIDs (UNCAUGHT_EXCEPT)

CID: 210082
CID: 210086
CID: 210096
CID: 210147
CID: 210149
CID: 210150

The potential to throw exists throughout various paths in main.

* simplewallet: return cstdlib proper types in main

* simplewallet: resolve CID 210128/210160 (UNCAUGHT_EXCEPT)

The potential to throw exists within various paths, and any paths
involving the logger (including CATCH_ENTRY_*).

* conn_tool: resolve 5 different CIDs (UNCAUGHT_EXCEPT)

CID: 210038
CID: 210047
CID: 210108
CID: 210122
CID: 210157

The potential to throw exists throughout various paths in main.

* conn_tool: return cstdlib proper types in main

* miniupnp_helper: resolve CID 210050 (UNCAUGHT_EXCEPT)

The potential to throw exists within deinit, including any paths
involving the logger (including CATCH_ENTRY_*).

* epee: profile_tools: resolve CID 210055 (UNCAUGHT_EXCEPT)

The potential to throw exists within boost microsec_clock::localtime(),
and any paths involving the logger (including CATCH_ENTRY_*).

* db_backend_lmdb: resolve CID 210056/210133 (UNCAUGHT_EXCEPT)

The potential to throw exists within close(), including any paths
involving the logger (including CATCH_ENTRY_*).

* epee: misc_log_ex: resolve CID 210060/210124 (UNCAUGHT_EXCEPT)

The potential to throw exists within several paths, including any paths
involving the logger (including CATCH_ENTRY_*).

* epee: misc_language: resolve 4 CIDs (UNCAUGHT_EXCEPT)

CID: 210064
CID: 210093
CID: 210136
CID: 210139

The potential to throw exists within m_func(), including any paths
involving the logger (including CATCH_ENTRY_*).

* db_abstract_accessor: resolve 4 CIDs (UNCAUGHT_EXCEPT)

CID: 210072
CID: 210094
CID: 210116
CID: 210141

The potential to throw exists within m_cache.clear(), including any
paths involving the logger (including CATCH_ENTRY_*).

* epee: net_helper: resolve CID 210100 (UNCAUGHT_EXCEPT)

The potential to throw exists within shutdown(), including any
paths involving the logger (including CATCH_ENTRY_*).

* epee: syncobj: resolve CID 210123 (UNCAUGHT_EXCEPT)

The potential to throw exists within unlock(), including any
paths involving the logger (including CATCH_ENTRY_*).

* epee: profile_tools: resolve CID 210145/210154 (UNCAUGHT_EXCEPT)

The potential to throw exists within various paths, including any paths
involving the logger (including CATCH_ENTRY_*).

* epee: http_base: resolve CID 210176 (UNINIT_CTOR)

* p2p: net_node: resolve CID 210173 (UNINIT_CTOR)

* epee: net_helper: resolve CID 210138 (UNINIT_CTOR)

* p2p: net_peerlist: resolve CID 210137 (UNINIT_CTOR)

* currency_basic: resolve CID 210117 (UNINIT_CTOR)

* epee: abstract_tcp_server2: resolve 3 CIDs (UNINIT_CTOR)

CID: 210040
CID: 210090
CID: 210105

* simplewallet: resolve CID 210103 (UNINIT_CTOR)

* epee: levin_protocol_handler_async: resolve CID 210091 (UNINIT_CTOR)

* json_archive: resolve CID 210087 (UNINIT_CTOR)

* epee: levin_protocol_handler_async: resolve CID 210073 (UNINIT_CTOR)

* miniupnp_helper: resolve CID 210037 (UNINIT_CTOR)

* crypto: ge_frombytes_vartime: resolve CID 210142 (CHECKED_RETURN)

* wallet2: resolve CID 210041 (CHECKED_RETURN)

* epee: misc_log_ex: resolve CID 210127 (DEADCODE)

* epee: levin_protocol_handler_sync: resolve 3 CIDs (PASS_BY_VALUE)

CID: 210167
CID: 210170
CID: 210180

* p2p: net_node: resolve CID 210065 (PASS_BY_VALUE)

* epee: levin_abstract_invoke2: resolve CID 210049 (PASS_BY_VALUE)

* epee: abstract_tcp_server2: resolve CID 210045 (PASS_BY_VALUE)

* epee: misc_log_ex: add NESTED_*_ENTRY macros

* simplewallet: use NESTED_*_ENTRY in message_writer dtor

* stratum_protocol_handler_config: use NESTED_*_ENTRY in dtor

* stratum_protocol_handler: use NESTED_*_ENTRY in dtor

* lmdb_db_backend: use NESTED_*_ENTRY in dtor

* epee: abstract_tcp_server2: resolve 4 CIDs (UNCAUGHT_EXCEPT)

CID: 210088
CID: 210106
CID: 210164
CID: 210179

The potential to throw exists within various paths, including any
paths involving the logger (including CATCH_ENTRY_*).

* db_abstract_accessor: use NESTED_*_ENTRY in dtor

* miniupnp_helper: use NESTED_*_ENTRY in dtor

* epee: misc_log_ex: use NESTED_*_ENTRY in log_frame dtor

* epee: levin_protocol_handler_async: use NESTED_*_ENTRY in dtors

* epee: net_helper: use NESTED_*_ENTRY in dtor

* epee: profile_tools: use NESTED_*_ENTRY in dtors

* epee: misc_language: use NESTED_*_ENTRY in dtor

* epee: syncobj: use NESTED_*_ENTRY in dtor

* zano: license contact w/ zano.org email instead of sekreta.org email
2019-05-20 11:32:36 +02:00
sowle
b08905c1cc Merge branch 'master' into offsig
# Conflicts:
#	src/currency_core/currency_format_utils.h
#	tests/unit_tests/pow_hash_test.cpp
2019-04-08 01:37:32 +03:00
sowle
d2d1bf5d7a wallet: refactoring for cold-signing process + offline mode + watch-only mode (work in progress) 2019-04-03 12:48:09 +03:00
crypro.zoidberg
cc850cf3c3 Inital integration of progpow 2019-03-25 01:30:20 +01:00