An open API service indexing awesome lists of open source software.

https://github.com/eshaan7/rusty-verified-eth-rpc-proxy

Rust crate to make an untrusted Ethereum JSON-RPC provider verifiable
https://github.com/eshaan7/rusty-verified-eth-rpc-proxy

Last synced: 2 days ago
JSON representation

Rust crate to make an untrusted Ethereum JSON-RPC provider verifiable

Awesome Lists containing this project

README

        

# rusty-verified-eth-rpc-proxy

A Rust crate that turns an untrusted Ethereum JSON-RPC Execution API provider into a verified data source by requesting Merkle proofs and checking them against the state hash.

## Usage

Refer to the tests in [`src/lib.rs`](/src/lib.rs) for example usage.

## Available Methods

The following methods can be made verified:

| RPC Method | Implemented |
|-----------------------------|----------------|
| eth_getAccount | ✅ |
| eth_getBalance | ✅ |
| eth_getTransactionCount | ✅ |
| eth_getCode | ✅ |
| eth_getStorageAt | ✅ |
| eth_getTransactionReceipt | ✅ |
| eth_getBlockReceipts | ✅ |

## Inspiration

- [Helios](https://github.com/a16z/helios)
- [Nimbus Verified Proxy](https://github.com/status-im/nimbus-eth1/tree/master/nimbus_verified_proxy)
- [Lodestar prover](https://github.com/ChainSafe/lodestar/tree/unstable/packages/prover)