Crate nanopow_rs [] [src]

Functions

check_work

Take an input block hash or public key in the form of a 32-character hexadecimal encoded string and a 16-character hex encoded string of a work value and returns a boolean of whether the work is valid for the input hash.

generate_work

Takes an input block hash or public key in the form of a 32-character hexadecimal encoded string and returns an 16-character hex-encoded string of the generated work. Runs a maximum of 100 million iterations, after which it will return 0000000000000000 if it did not find matching work.

generate_work_no_limit

Takes an input block hash or public key in the form of a 32-character hexadecimal encoded string and returns an 16-character hex-encoded string of the generated work. Runs until it finds valid work.