commonprefix / kevlar

Light client-based RPC Proxy for PoS Ethereum
262 stars 25 forks source link

Add support for light client API specified by the Ethereum specification #5

Open shresthagrawal opened 2 years ago

shresthagrawal commented 2 years ago

When we started building Kevlar the Light Client API to fetch Sync Protocol information was not specified. But the Lodestar client already had some custom endpoints for Light Clients which were not a part of the Ethereum specification, hence we decided to use them instead of waiting for the Ethereum specification to get finalised.

@etan-status pointed me to the finalised API specification for Light Clients. We should add support for both Libp2p API and REST API. P2P Interface: https://github.com/ethereum/consensus-specs/blob/dev/specs/altair/light-client/p2p-interface.md REST API: https://github.com/ethereum/beacon-APIs/pull/247