starkware-crypto-rs
Rust FFI bindings for StarkWare's crypto-cpp library
Note that currently target
x86_64-pc-windows-msvc
is not supported. If you're building on Windows, you need to use the GNU build of Rust.
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.