blake2b-pow

Crates.ioblake2b-pow
lib.rsblake2b-pow
version0.1.1
sourcesrc
created_at2019-11-09 22:27:52.811085
updated_at2021-01-11 04:05:29.565654
descriptionA Library for Performing Proof of Work Using Blake2B Based Off of Nano's Consensus Algorithm
homepage
repositoryhttps://github.com/0xAtropine/blake2b-pow
max_upload_size
id179786
size5,151
AtropineTears (AtropineTears)

documentation

README

Blake2B-PoW

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

Usage

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);
}
Commit count: 6

cargo fmt