#crypto #hash #wrapper #monero #cryptonight

cryptonight-rs

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

3 unstable releases

Uses old Rust 2015

0.2.1 Aug 27, 2018
0.2.0 Aug 27, 2018
0.1.0 Aug 21, 2018

#32 in #monero

21 downloads per month

MIT license

460KB
9K SLoC

C 9K SLoC // 0.1% comments Rust 175 SLoC // 0.0% comments

Cryptonight-rs

Build Status

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

This code is not stable yet. It is not recommended to use it in production.

Usage

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

cd repo

Run test

cargo test

Run benchmark

cargo bench

Issues & Pull Requests

If you have an issue, feel free to add it to the Issues tab. If you'd like to help us out, the Pull Request tab is a great place to start.

If you have found a security bug, please contact us at security@glosfer.com.

Credits

Kudos to Monero team - C code from https://github.com/monero-project/monero

Dependencies

~220–550KB
~12K SLoC