Methods
solve(input, nopt, kopt) → {Promise.<{proof, nonce, n, k}>}
Solves an equihash Proof-of-Work
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
input | Buffer | |||
n | number | <optional> | 90 | |
k | number | <optional> | 5 |
Returns:
- Type:
- Promise.<{proof, nonce, n, k}>
verify(input, proof, nonceopt, nopt, kopt) → {Promise.<Boolean>}
Verifies a equihash Proof
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
input | Buffer | |||
proof | Buffer | |||
nonce | number | <optional> | 1 | |
n | number | <optional> | 90 | |
k | number | <optional> | 5 |
Returns:
- Type:
- Promise.<Boolean>