Crate cryptonight[][src]

Cryptonight-rs is a Rust wrapper around Cryptonight hash function from Monero source code.

Examples

To use Cryptonight-rs, add the following to your Cargo.toml:

[dependencies]
cryptonight-rs = "^0.2"

and the following to your crate root:

 extern crate cryptonight;

 use cryptonight::cryptonight;

Test & Benchmark

Clone the repository into local

Functions

cryptonight

Computes the hash of (which consists of bytes), returning the hash (32 bytes).