Crate nanopow_rs [] [src]

Small Rust library to generate proof of work for the Nano cryptocurrency. Fully parallelized on the CPU. The goal is for this to be easily includable in web applications as WASM using Parcel and stdweb. Currently, it works best as a native POW generation tool used in Rust and Node apps through nanopow-rs-node

Modules

error

Error types, using error-chain

Structs

InputHash

A 32 byte array used to represent a valid input hash

Work

An 8 byte array used to represent the work value

Functions

check_work

Checks if a given Work value is valid for a given InputHash (usually a block hash or public key)

generate_work

Attempts to generate valid work for a given InputHash (usually a block hash or public key) with optional maximum iterations