monero/src/wallet
stoffu 27a196b126
device: untangle cyclic depenency
When #3303 was merged, a cyclic dependency chain was generated:

    libdevice <- libcncrypto <- libringct <- libdevice

This was because libdevice needs access to a set of basic crypto operations
implemented in libringct such as scalarmultBase(), while libringct also needs
access to abstracted crypto operations implemented in libdevice such as
ecdhEncode(). To untangle this cyclic dependency chain, this patch splits libringct
into libringct_basic and libringct, where the basic crypto ops previously in
libringct are moved into libringct_basic. The cyclic dependency is now resolved
thanks to this separation:

    libcncrypto <- libringct_basic <- libdevice <- libcryptonote_basic <- libringct

This eliminates the need for crypto_device.cpp and rctOps_device.cpp.

Also, many abstracted interfaces of hw::device such as encrypt_payment_id() and
get_subaddress_secret_key() were previously implemented in libcryptonote_basic
(cryptonote_format_utils.cpp) and were then called from hw::core::device_default,
which is odd because libdevice is supposed to be independent of libcryptonote_basic.
Therefore, those functions were moved to device_default.cpp.
2018-03-14 21:00:15 +09:00
..
api device: untangle cyclic depenency 2018-03-14 21:00:15 +09:00
CMakeLists.txt device: untangle cyclic depenency 2018-03-14 21:00:15 +09:00
node_rpc_proxy.cpp Readd copyright starting date 2018-01-26 10:03:20 -05:00
node_rpc_proxy.h Readd copyright starting date 2018-01-26 10:03:20 -05:00
wallet2.cpp device: untangle cyclic depenency 2018-03-14 21:00:15 +09:00
wallet2.h Merge pull request #3369 2018-03-14 13:37:14 +02:00
wallet_args.cpp Update 2018 copyright 2018-01-26 10:03:20 -05:00
wallet_args.h Update 2018 copyright 2018-01-26 10:03:20 -05:00
wallet_errors.h Stagenet 2018-03-05 11:55:05 +09:00
wallet_rpc_server_commands_defs.h Make mixin optional with default for rpc transfer 2018-03-05 12:27:22 -05:00
wallet_rpc_server_error_codes.h Merge pull request #3207 2018-02-16 14:21:59 +01:00
wallet_rpc_server.cpp Merge pull request #3343 2018-03-05 19:14:03 +02:00
wallet_rpc_server.h Update 2018 copyright 2018-01-26 10:03:20 -05:00