Home

Awesome

Build Status

bls-eth for Rust

This is a wrapper library of bls with BLS_ETH=1.

How to build libbls384_256.a

copy from bls-eth-go-binary/bls/lib or build it at yourself according to readme.md.

News

bls-eth-rustold eth2.0 spec name
SecretKey::signSign
PublicKey::verifyVerify
Signature::aggregateAggregate
Signature::fast_aggregate_verifyFastAggregateVerify
Signature::aggregate_verify_no_checkAggregateVerify

Check functions:

How to test

env RUSTFLAGS="-L<directory of libbls384_256.a>" cargo test

For example, on Linux,

mkdir work
cd work
git clone https://github.com/herumi/bls-eth-go-binary
git clone https://github.com/herumi/bls-eth-rust
cd bls-eth-rust
env RUSTFLAGS="-L../bls-eth-go-binary/bls/lib/linux/amd64/" cargo test -- --test-threads 1

For windows,

msvc

mkdir work
git clone https://github.com/herumi/bls
git clone https://github.com/herumi/bls-eth-rust
cd bls
mklib eth
cd ../bls-eth-rust
set RUSTLFAGS=-L../bls/lib
cargo test --target=x86_64-pc-windows-msvc

gnu

set RUSTFLAGS=-L../bls-eth-go-binary/bls/lib/windows/amd64
cargo test --target=x86_64-pc-windows-gnu

How to run benchs

env RUSTFLAGS="-L../bls-eth-go-binary/bls/lib/linux/amd64/" cargo bench

License

modified new BSD License http://opensource.org/licenses/BSD-3-Clause

Author

MITSUNARI Shigeo(herumi@nifty.com)

Sponsors welcome

GitHub Sponsor