Lantern is a C implementation of Lean Consensus for Ethereum.
Requirements
Make sure you have the following tools installed before building.
- CMake 3.20+
- C compiler
- Rust (for XMSS bindings)
Build
Configure and compile the project with CMake.
cmake -S . -B build
cmake --build build --parallelTest
Run the test suite to verify everything works correctly.
ctest --test-dir build --output-on-failure
Regenerating Fixtures
Test fixtures are generated from LeanSpec. Use these scripts to refresh them.
Consensus fixtures:
./tools/fixtures/fill_consensus_fixtures.sh
Networking fixtures:
uv run --directory tools/leanSpec python ../../tools/fixtures/generate_networking_ssz.py
License
MIT — see LICENSE.