Layer-Edge/light-node
소개
Layer Edge Light Node is a client that connects to the Layer Edge network to verify Merkle trees by collecting random samples from available trees and verifying their integrity. The light node performs Zero-Knowledge proof verification operations through a local ZK prover service, and submits verified proofs to the network.
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalLayer Edge Light Node
Introduction
Layer Edge Light Node is a client that connects to the Layer Edge network to verify Merkle trees by collecting random samples from available trees and verifying their integrity. The light node performs Zero-Knowledge proof verification operations through a local ZK prover service, and submits verified proofs to the network.
Key features:
- Automatically discovers available Merkle trees from the network
- Collects random samples from trees for verification
- Generates and verifies Zero-Knowledge proofs
- Implements intelligent sleep mechanisms to avoid redundant work on unchanged trees
- Submits verified proofs to earn rewards
Building and Running
Prerequisites
- Go 1.18 or higher
- Rust 1.81.0 or higher
- Access to a Layer Edge gRPC endpoint
- The 'risc0' toolchain could not be found.
To install the risc0 toolchain, use rzup.
For example:
curl -L https://risczero.com/install | bash && rzup install
Build Instructions
Configure environment variables or in .env file
GRPC_URL=grpc.testnet.layeredge.io:9090
CONTRACT_ADDR=cosmos1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqt56709
ZK_PROVER_URL=http://127.0.0.1:3001
API_REQUEST_TIMEOUT=100
POINTS_API=http://127.0.0.1:8080
PRIVATE_KEY='cli-node-private-key'
Please make sure the ZK Prover URL is the same URL as that of the server where the merkle service is running
Run both the servers manually
cd risc0-merkle-service
cargo build && cargo run
Make sure risc0 server is up first In a separate terminal (navigate to the root and run it):
go build
./light-node
Make sure both the servers are running independently
Logging and Monitoring
The light node provides detailed logging about its operations. You can monitor the log output to track:
- Tree discovery
- Proof generation and verification
- Submission of verified proofs
- Sleep state of trees
Troubleshooting
If you encounter issues:
- Check your gRPC connection to the Layer Edge network
- Ensure the ZK prover service is running and accessible
- Verify your wallet address and signature format
- Check logs for specific error messages
Need more help? Visit the FAQ & Troubleshooting Guide: https://docs.layeredge.io/introduction/developer-guide/run-a-node/faq-and-troubleshooting-guide
License
This project is licensed under the MIT License - see the LICENSE file for details.
관련 프로젝트 살펴보기
불러오는 중…