The research and protocols for this algorithm are explained in detail in The Honey Badger of BFT Protocols by Miller et al., 2016.
The implementation is WIP.
Install Rust.
Install LLVM 3.7.
Clone the repo, enter the folder, and build the project:
stack setup
./build_dylibs
./build
build_dylibs
builds shared libraries required for FFI. Through FFI, we call the threshold_crypto Rust library, which provides threshold encryption functionality.
Run the executable:
stack exec HoneyBadgerBFT-exe
Run tests:
./run_tests
Use Stylish Haskell to format the code.
- The maximum number of shards supported by the erasure coding scheme library we use is 257. We need to find a way around it to accommodate networks with a much bigger number of validators.