No description
Find a file
2025-10-13 18:55:30 +02:00
.github chore: add secret 2025-10-13 18:40:21 +02:00
cli feat: solidity verifier example 2024-09-17 08:59:19 +02:00
crates Merge branch 'main' into feat/eip7702-support 2025-10-13 18:51:43 +02:00
examples feat: customizable rpc 2024-09-17 17:52:32 +02:00
.gitignore chore: rm .idea folder 2024-04-03 12:06:11 +02:00
.gitmodules forge install: forge-std 2024-09-16 23:00:35 +02:00
Cargo.lock chore: updated alloy crates and removed hardcoded rpc urls 2025-10-13 18:27:33 +02:00
Cargo.toml chore: updated alloy crates and removed hardcoded rpc urls 2025-10-13 18:27:33 +02:00
LICENSE fix: license 2024-06-25 22:56:48 +09:00
README.md starknet tx, tx receipt support (#13) 2024-09-16 15:55:25 +09:00

trie-proofs

A comprehensive proofs handler for Ethereum and Starknet tries. This repository provides proof-building functionalities and includes a CLI tool.

Supported Crates

Trie Handler

  • Transaction Trie Handler

    • Builds a trie with a target block number.
    • Builds a trie with a target transaction hash.
    • Retrieves proof by transaction index.
    • Verifies proof.
  • Transaction Receipt Trie Handler

    • Builds a trie with a target block number.
    • Builds a trie with a target transaction hash.
    • Retrieves proof by transaction index.
    • Verifies proof.

CLI Tool

Currently only supports Ethereum MPT.

The CLI tool supports generating proofs for transactions and receipts. Use the following commands based on your requirements.

Installation

Install the CLI tool using Cargo:

cargo install --path ./

Or run it without installing:

cargo run --bin etp-cli

Generate a Proof via CLI

To generate a proof for a transaction:

etp-cli tx <TRANSACTION_HASH> [RPC_URL]

To generate a receipt proof:

etp-cli receipt <TRANSACTION_HASH> [RPC_URL]

By default, https://ethereum-rpc.publicnode.com is used as the RPC provider. While this may work for recent transactions, it is advisable to use a dedicated RPC provider for better reliability.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

License

trie-proofs is licensed under the GNU General Public License v3.0.


Herodotus Dev Ltd - 2024