diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-09-25 17:52:15 -0400 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-09-25 17:52:16 -0400 |
commit | b8643752c122a32096733fb8686d8f2eafcf6ff8 (patch) | |
tree | 6a735c25f25996dc2f31f02708d45a001f1315fc /src/crypto/hash-ops.h | |
parent | Merge pull request #5930 (diff) | |
parent | RandomX integration (diff) | |
download | monero-b8643752c122a32096733fb8686d8f2eafcf6ff8.tar.xz |
Merge pull request #5549
81c2ad6d RandomX integration (Howard Chu)
Diffstat (limited to 'src/crypto/hash-ops.h')
-rw-r--r-- | src/crypto/hash-ops.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crypto/hash-ops.h b/src/crypto/hash-ops.h index 859c810bd..d117bb640 100644 --- a/src/crypto/hash-ops.h +++ b/src/crypto/hash-ops.h @@ -87,3 +87,11 @@ 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); + +#define RX_BLOCK_VERSION 12 +void rx_slow_hash_allocate_state(void); +void rx_slow_hash_free_state(void); +uint64_t rx_seedheight(const uint64_t height); +void rx_seedheights(const uint64_t height, uint64_t *seed_height, uint64_t *next_height); +void rx_slow_hash(const uint64_t mainheight, const uint64_t seedheight, const char *seedhash, const void *data, size_t length, char *hash, int miners, int is_alt); +void rx_reorg(const uint64_t split_height); |