#sha3 #sha1 #hashcash

bin+lib rust-hashcash

Rust hashcash algorithm implementation with sha3 support

6 releases

0.3.3 Apr 8, 2021
0.3.2 Jul 1, 2020
0.3.1 May 22, 2020
0.2.0 May 18, 2020
0.1.0 May 18, 2020

#481 in Cryptography

Download history 190/week @ 2022-06-02 49/week @ 2022-06-09 48/week @ 2022-06-16 33/week @ 2022-06-23 92/week @ 2022-06-30 84/week @ 2022-07-07 90/week @ 2022-07-14 59/week @ 2022-07-21 54/week @ 2022-07-28 27/week @ 2022-08-04 16/week @ 2022-08-11 21/week @ 2022-08-18 21/week @ 2022-08-25 42/week @ 2022-09-01 50/week @ 2022-09-08 23/week @ 2022-09-15

136 downloads per month

MIT license

17KB
408 lines

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"]}

Dependencies

~3MB
~35K SLoC