diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-09-03 16:22:19 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2021-02-09 11:58:21 +0000 |
commit | 19b228393fdc0899104934538edfb0cfd665cdf0 (patch) | |
tree | 7df2203e564b32e456395b125bb1c5e6d1e23a9d /src/crypto/hash-ops.h | |
parent | Merge pull request #7260 (diff) | |
download | monero-19b228393fdc0899104934538edfb0cfd665cdf0.tar.xz |
New add_aux_pow RPC to support merge mining
Diffstat (limited to 'src/crypto/hash-ops.h')
-rw-r--r-- | src/crypto/hash-ops.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto/hash-ops.h b/src/crypto/hash-ops.h index 7dfc5151d..1cd502994 100644 --- a/src/crypto/hash-ops.h +++ b/src/crypto/hash-ops.h @@ -87,6 +87,10 @@ void hash_extra_jh(const void *data, size_t length, char *hash); void hash_extra_skein(const void *data, size_t length, char *hash); void tree_hash(const char (*hashes)[HASH_SIZE], size_t count, char *root_hash); +bool tree_path(size_t count, size_t idx, uint32_t *path); +bool tree_branch(const char (*hashes)[HASH_SIZE], size_t count, const char *hash, char (*branch)[HASH_SIZE], size_t *depth, uint32_t *path); +bool tree_branch_hash(const char hash[HASH_SIZE], const char (*branch)[HASH_SIZE], size_t depth, uint32_t path, char root[HASH_SIZE]); +bool is_branch_in_tree(const char hash[HASH_SIZE], const char root[HASH_SIZE], const char (*branch)[HASH_SIZE], size_t depth, uint32_t path); #define RX_BLOCK_VERSION 12 void rx_slow_hash_allocate_state(void); |