Expand description
Internal API for peer-to-peer communication and challenge broadcasting.
This module provides HTTP endpoints for validators to communicate with each other, including peer registration, listing, and challenge broadcast.
Endpoints:
- POST /internal/peer/register - Register a peer validator
- GET /internal/peers - List known peers
- POST /internal/challenge/broadcast - Receive challenge from peer
Structs§
- ApiResponse
- Generic response for API operations
- Broadcast
Challenge Request - Request payload for challenge broadcast
- Internal
ApiState - State for the internal API, shared across peer communication handlers.
- Peer
Info - Information about a peer validator in the network.
- Register
Peer Request - Request payload for peer registration
- Submit
Batch Request - Request payload for batch submission
Functions§
- internal_
router - Builds the Axum router for internal API endpoints.