#ffi #starkware

sys starkware-crypto-sys

Rust FFI bindings for StarkWare's crypto-cpp library

3 releases

0.1.3 Jan 12, 2022
0.1.2 Jan 10, 2022
0.1.1 Jan 10, 2022
0.1.0 Jan 10, 2022

#983 in Cryptography

MIT/Apache

240KB
3K SLoC

C++ 3K SLoC // 0.0% comments Rust 225 SLoC // 0.0% comments

starkware-crypto-rs

Rust FFI bindings for StarkWare's crypto-cpp library

linting-badge tests-badge crates-badge

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

at your option.

Dependencies

~400–660KB
~14K SLoC