Skip to content

Pier-Two/lantern

Repository files navigation

Lantern

CI

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 hash-sig bindings)

Build

Configure and compile the project with CMake.

cmake -S . -B build
cmake --build build --parallel

Test

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:

./scripts/fixtures/fill_consensus_fixtures.sh

Networking fixtures:

cmake --build build --target lantern_generate_gossip_snappy
PYTHONPATH=tools/leanSpec/src python3 scripts/fixtures/generate_networking_ssz.py

License

MIT — see LICENSE.

About

C implementation of Lean consensus for post-quantum Ethereum.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages