optimism-java / zephyrus

Ethereum consensus client in Zig
MIT License
8 stars 2 forks source link
eth2 eth2-beacon-chain eth2-clients ethereum zig ziglang

zephyrus

This repo is development with zig, zig is a coding language for more info for basic coding guide

The current version being used in development is 0.14.0-dev.2079+ba2d00663. You may use zigup to download and use this specific version.

Build

git clone --recursive https://github.com/optimism-java/zephyrus.git
cd zephyrus
git submodule update --init --recursive
cd bls
make -f Makefile.onelib ETH_CFLAGS=-DBLS_ETH LIB_DIR=lib
zig build

Test

first you should build bls as described above

when you run zig build test, the spec tests are not run by default.

if you want to run spec tests, you need to download the test vectors and add -Dspec=true to the zig build command.

# download test vectors
make deps_test
# add -Dspec=true to run spec tests
zig build test -Dspec=true