Lantern.Beacon is a .NET library that allows lightweight verification of Ethereum's consensus, built using Libp2p and Discv5.
Note: These instructions assume you are familiar with the .NET Core development environment. If not, please refer to the official documentation to get started.
-
Install .NET Core SDK on your system if you haven't already.
-
Clone the repository:
git clone https://github.com/Pier-Two/Lantern.Beacon.git --recursive
-
Change to the
Lantern.Beacon
directory:cd Lantern.Beacon
-
Build the project:
dotnet build
-
If you are using Linux, run the following commands before executing the tests:
For Debian/Ubuntu-based distributions:
sudo apt-get update && sudo apt-get install -y libc6-dev sudo ln -s /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libdl.so
For Red Hat-based distributions (such as Fedora or CentOS):
sudo yum install glibc-devel sudo ln -s /usr/lib64/libdl.so.2 /usr/lib64/libdl.so
For Arch Linux:
sudo pacman -Sy glibc sudo ln -s /usr/lib/libdl.so.2 /usr/lib/libdl.so
-
Execute tests:
dotnet test
To integrate this library in a C# project, please refer to the GitBook documentation.
We welcome contributions to this library. To get involved, please read our Contributing Guidelines for the process for submitting pull requests to this repository.
This project is licensed under the MIT License.