Skip to content

A collection of hash functions used in Bitcoin, implemented in Rust.

License

Notifications You must be signed in to change notification settings

nlanson/btc-hashes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Hashes

A pure Rust implementation of hash functions and cryptographic computations used in Bitcoin.

Installation

Add the following under [dependencies] in your Cargo.toml:

btc-hashes = { git = "https://github.com/nlanson/btc-hashes" }

Usage

   use btc-hashes::{
      HashEngine, Sha256
   }
   
   let mut engine = Sha256::new();
   engine.input(<data as a slice of bytes>);
   let digest = engine.hash();

About

A collection of hash functions used in Bitcoin, implemented in Rust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages