Skip to content

Rust hashcash lib with support for sha1 and sha3 hashes

License

Notifications You must be signed in to change notification settings

durch/rust-hashcash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Rust hashcash lib with support for sha1 and sha3 hashes

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages