Methods

solve(input, nopt, kopt) → {Promise.<{proof, nonce, n, k}>}

Solves an equihash Proof-of-Work

Parameters:
NameTypeAttributesDefaultDescription
inputBuffer
nnumber<optional>
90
knumber<optional>
5
Returns:
Type: 
Promise.<{proof, nonce, n, k}>

verify(input, proof, nonceopt, nopt, kopt) → {Promise.<Boolean>}

Verifies a equihash Proof

Parameters:
NameTypeAttributesDefaultDescription
inputBuffer
proofBuffer
noncenumber<optional>
1
nnumber<optional>
90
knumber<optional>
5
Returns:
Type: 
Promise.<Boolean>