starkware-crypto-rs
Rust FFI bindings for StarkWare's crypto-cpp library
There's currently an issue on the official crypto-cpp repository that prevents the library from compiling on macOS. We're using Max Gillett's fork until his PR is merged.
Adding starkware-crypto-rs to your project
To use the crate from crates.io, add the following to your Cargo.toml
file:
[dependencies]
starkware-crypto-sys = "0.1"
Running benchmark
To run benchmark:
$ cargo bench
On the author's machine, the results are:
pedersen_hash time: [267.08 us 270.36 us 274.40 us]
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.