ethash
ethash copied to clipboard
An Apache-2 licensed ethash implementation written in Rust
Using `usize` for dataset size and derived values causes an overflow error for 32-bit build targets, e.g. WASM. As an aside, https://github.com/rust-ethereum/ethash/pull/10 would have made this bug trivial to discover...
Yes, we are indexing memory, but the index itself is manipulated in many non-numerical ways (XORs, etc.). I think it's better to use the fixed size type, just as one...
`Fn` is overkill
https://github.com/ethereumclassic/ECIPs/blob/master/_specs/ecip-1099.md