Struct ethcore::ethereum::ethash::Ethash   
                   
                       [−]
                   
               [src]
pub struct Ethash { /* fields omitted */ }Engine using Ethash proof-of-work consensus algorithm, suitable for Ethereum mainnet chains in the Olympic, Frontier and Homestead eras.
Methods
impl Ethash[src] 
impl Ethashpub fn new<T: Into<Option<OptimizeFor>>>(
    cache_dir: &Path, 
    ethash_params: EthashParams, 
    machine: EthereumMachine, 
    optimize_for: T
) -> Arc<Self>[src] 
pub fn new<T: Into<Option<OptimizeFor>>>(
    cache_dir: &Path, 
    ethash_params: EthashParams, 
    machine: EthereumMachine, 
    optimize_for: T
) -> Arc<Self>Create a new instance of Ethash engine
impl Ethash[src] 
impl Ethashpub fn boundary_to_difficulty(boundary: &H256) -> U256[src] 
pub fn boundary_to_difficulty(boundary: &H256) -> U256Convert an Ethash boundary to its original difficulty. Basically just f(x) = 2^256 / x.
pub fn difficulty_to_boundary(difficulty: &U256) -> H256[src] 
pub fn difficulty_to_boundary(difficulty: &U256) -> H256Convert an Ethash difficulty to the target boundary. Basically just f(x) = 2^256 / x.