aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/hash-ops.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-03-20 01:33:10 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-03-20 01:33:10 -0400
commit8d7c1135b8458db5a03e180e93f48a31b940b2f0 (patch)
treed30730a354559b16044c5cce4c5a779cf73b5b11 /src/crypto/hash-ops.h
parentMerge pull request #7399 (diff)
parentNew add_aux_pow RPC to support merge mining (diff)
downloadmonero-8d7c1135b8458db5a03e180e93f48a31b940b2f0.tar.xz
Merge pull request #6810
19b2283 New add_aux_pow RPC to support merge mining (moneromooo-monero)
Diffstat (limited to 'src/crypto/hash-ops.h')
-rw-r--r--src/crypto/hash-ops.h4
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);