oxen-core/src/wallet3
Jason Rhinelander 6aa9db9538
Overhaul and fix crypto::{public_key,ec_point,etc.} types
- Remove implicit `operator bool` from ec_point/public_key/etc. which
  was causing all sorts of implicit conversion mess and bugs.
- Change ec_point/public_key/etc. to use a `std::array<unsigned char,
  32>` (via a base type) rather than a C-array of char that has to be
  reinterpret_cast<>'ed all over the place.
- Add methods to ec_point/public_key/etc. that make it work more like a
  container of bytes (`.data()`, `.size()`, `operator[]`, `begin()`,
  `end()`).
- Make a generic `crypto::null<T>` that is a constexpr all-0 `T`, rather
  than the mishmash `crypto::null_hash`, crypto::null_pkey,
  crypto:#️⃣:null(), and so on.
- Replace three metric tons of `crypto::hash blahblah =
  crypto::null_hash;` with the much simpler `crypto::hash blahblah{};`,
  because there's no need to make a copy of a null hash in all these
  cases.  (Likewise for a few other null_whatevers).
- Remove a whole bunch of `if (blahblah == crypto::null_hash)` and `if
  (blahblah != crypto::null_hash)` with the more concise `if
  (!blahblah)` and `if (blahblah)` (which are fine via the newly
  *explicit* bool conversion operators).
- `crypto::signature` becomes a 64-byte container (as above) but with
  `c()` and `r()` to get the c() and r() data pointers.  (Previously
  `.c` and `.r` were `ec_scalar`s).
- Delete with great prejudice CRYPTO_MAKE_COMPARABLE and
  CRYPTO_MAKE_HASHABLE and all the other utter trash in
  `crypto/generic-ops.h`.
- De-inline functions in very common crypto/*.h files so that they don't
  have to get compiled 300 times.
- Remove the disgusting include-a-C-header-inside-a-C++-namespace
  garbage from some crypto headers trying to be both a C and *different*
  C++ header at once.
- Remove the toxic, disgusting, shameful `operator&` on ec_scalar, etc.
  that replace `&x` with `reinterpret_cast x into an unsigned char*`.
  This was pure toxic waste.
- changed some `<<` outputs to fmt
- Random other small changes encountered while fixing everything that
  cascaded out of the above changes.
2022-10-17 22:20:54 -03:00
..
config Merge most recent dev and wallet3 branches 2022-08-22 19:25:49 -04:00
decoy_selection fix build after merge 2022-07-25 22:22:49 -04:00
output_selection some align! 2022-03-28 22:24:29 -04:00
rpc Fix deprecated oxenmq::* usage 2022-10-17 13:45:24 -03:00
address.hpp Wallet3 squashed initial commit 2021-11-30 16:31:54 -05:00
block.hpp Wallet3 squashed initial commit 2021-11-30 16:31:54 -05:00
block_tx.hpp Wallet3 squashed initial commit 2021-11-30 16:31:54 -05:00
CMakeLists.txt Fix deprecated oxenmq::* usage 2022-10-17 13:45:24 -03:00
daemon_comms.hpp Config Struct for wallet3 2022-08-01 17:21:01 -04:00
db_schema.cpp Change simple fmt::format calls to new "..."_format(...) 2022-10-17 13:45:22 -03:00
db_schema.hpp wallet3 changes and demo fixup 2022-08-30 19:58:51 -04:00
decoy.hpp check output of sign transaction 2022-03-28 22:24:29 -04:00
default_daemon_comms.cpp Fix deprecated oxenmq::* usage 2022-10-17 13:45:24 -03:00
default_daemon_comms.hpp all tests building now, not all passing 2022-09-07 19:34:52 -04:00
keyring.cpp Overhaul and fix crypto::{public_key,ec_point,etc.} types 2022-10-17 22:20:54 -03:00
keyring.hpp all tests building now, not all passing 2022-09-07 19:34:52 -04:00
output.hpp Loads in real data to test if the transaction is signing correctly 2022-03-28 22:24:29 -04:00
pending_transaction.cpp fix build after merge 2022-07-25 22:22:49 -04:00
pending_transaction.hpp fix build after merge 2022-07-25 22:22:49 -04:00
transaction_constructor.cpp all tests building now, not all passing 2022-09-07 19:34:52 -04:00
transaction_constructor.hpp all tests building now, not all passing 2022-09-07 19:34:52 -04:00
transaction_scanner.cpp Change most oxen::log::whatever to log::whatever 2022-10-17 13:41:43 -03:00
transaction_scanner.hpp rename wallet3 functions to be more in line with the rest of the codebase 2021-12-06 16:04:11 -05:00
version.cpp.in rpc for get_version 2022-08-01 17:16:29 -04:00
version.hpp rpc for get_version 2022-08-01 17:16:29 -04:00
wallet.cpp Add garbage to make it work on a garbage OS 2022-10-17 13:45:24 -03:00
wallet.hpp create virtual destructor on wallet class and define destructor on child 2022-10-17 07:13:43 +11:00
wallet2½.cpp ffs 2021-12-07 13:13:39 +11:00
wallet2½.hpp ffs 2021-12-07 13:13:39 +11:00