Crate ethash [] [src]

Apache-2 licensed Ethash implementation.

Functions

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_target

Mine a nonce given the header, dataset, and the target. Target is derived from the difficulty.