Lantern is a C implementation of Lean Consensus for Ethereum.
Make sure you have the following tools installed before building.
- CMake 3.20+
- C compiler
- Rust (for hash-sig bindings)
Configure and compile the project with CMake.
cmake -S . -B build
cmake --build build --parallelRun the test suite to verify everything works correctly.
ctest --test-dir build --output-on-failureTest fixtures are generated from LeanSpec. Use these scripts to refresh them.
Consensus fixtures:
./scripts/fixtures/fill_consensus_fixtures.shNetworking fixtures:
cmake --build build --target lantern_generate_gossip_snappy
PYTHONPATH=tools/leanSpec/src python3 scripts/fixtures/generate_networking_ssz.pyMIT — see LICENSE.