rust-hashcash

Crates.iorust-hashcash
lib.rsrust-hashcash
version0.3.3
sourcesrc
created_at2020-05-18 08:09:47.245087
updated_at2021-04-08 09:00:42.295709
descriptionRust hashcash algorithm implementation with sha3 support
homepage
repository
max_upload_size
id242918
size27,069
Drazen Urch (durch)

documentation

https://durch.github.io/rust-hashcash/hashcash/

README

rust-hashcash docs

MIT licensed Rust implementation of the hashcash algorithm ported from hashcash.py. Notable differences are that only version 1 of hashcash is supported and sha3 is used as the default hashing algorithm. sha1 is available with a feature flag.

Example


use hashcash::{Stamp, check};

fn main {

    let stamp = Stamp::default();
    assert!(check(stamp.to_string()));

}

Usage

[dependencies]
rust-hashcash = "0.1"

With sha1

[dependencies]
rust-hashcash = {version = "0.1", features=["sha1"]}
Commit count: 0

cargo fmt