Crates.io | rust-hashcash |
lib.rs | rust-hashcash |
version | 0.3.3 |
source | src |
created_at | 2020-05-18 08:09:47.245087 |
updated_at | 2021-04-08 09:00:42.295709 |
description | Rust hashcash algorithm implementation with sha3 support |
homepage | |
repository | |
max_upload_size | |
id | 242918 |
size | 27,069 |
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.
use hashcash::{Stamp, check};
fn main {
let stamp = Stamp::default();
assert!(check(stamp.to_string()));
}
[dependencies]
rust-hashcash = "0.1"
[dependencies]
rust-hashcash = {version = "0.1", features=["sha1"]}