[][src]Function blake2b_pow::mine

pub fn mine(address: &[u8], threshold: u64) -> u64

Blake2B PoW

This rust library follows Nano's Proof of Work concept for their cryptocurrency. It uses the hash function Blake2B, and the input address, and keys it with a u64 nonce that is ever-increasing.

It takes as input an address, or previous block hash, as a u8 byte slice, and it also takes the threshold u64 value, with a higher value indicating greater difficulty.

It outputs the nonce that was either equal to or more than the threshold after the hashing process.

Default Value

  • Threshold: 0xffffffc000000000