An open API service indexing awesome lists of open source software.

https://github.com/atropinetears/blake2b-pow

A Rust Library For Nano's Proof of Work Consensus Algorithm That Uses Blake2B.
https://github.com/atropinetears/blake2b-pow

blake2b block-lattice blockchain cargo consensus-algorithm crates library mining mining-software nano proof-of-work rust rust-lang

Last synced: about 1 month ago
JSON representation

A Rust Library For Nano's Proof of Work Consensus Algorithm That Uses Blake2B.

Awesome Lists containing this project

README

        

# Blake2B-PoW

A Rust Library That Performs Proof of Work (Consensus Algorithm) using Blake2B. Useful for Blockchain-related projects.

## Usage

```rust
extern crate blake2b_pow;
use blake2b_pow::{mine,verify_nonce};

fn main() {
let correct_nonce = mine(&[0x3Eu8;32], 0xffffffc000000000);

let _is_valid = verify_nonce(&[0x3Eu8;32], 0xffffffc000000000, correct_nonce);
}
```