Expand description
Apache-2 licensed Ethash implementation.
Structs§
Constants§
- ACCESSES
- CACHE_
BYTES_ GROWTH - CACHE_
BYTES_ INIT - CACHE_
MULTIPLIER - CACHE_
ROUNDS - DATASET_
BYTES_ GROWTH - DATASET_
BYTES_ INIT - DATASET_
PARENTS - FNV_
PRIME - HASH_
BYTES - MIX_
BYTES - WORD_
BYTES
Traits§
Functions§
- calc_
dataset_ item - Calculate the dataset item.
- cross_
boundary - Convert across boundary.
f(x) = 2 ^ 256 / x
. - get_
cache_ size - Get the cache size required given the block number.
- get_
full_ size - Get the full dataset size given the block number.
- get_
seedhash - Get the seedhash for a given block number.
- hashimoto
- “Main” function of Ethash, calculating the mix digest and result given the header and nonce.
- hashimoto_
full - Ethash used by a full client. Stores the whole dataset in memory.
- hashimoto_
light - Ethash used by a light client. Only stores the 16MB cache rather than the full dataset.
- make_
cache - Make an Ethash cache using the given seed.
- make_
dataset - Make an Ethash dataset using the given hash.
- mine
- Mine a nonce given the header, dataset, and the target. Target is derived from the difficulty.