No description
Find a file
Mikolaj Jakobiak ae0dd7aeaf proper tokio
2024-12-23 10:08:13 +01:00
.github chore: deactivate strict CI 2024-12-20 15:03:28 +01:00
cli proper tokio 2024-12-23 10:08:13 +01:00
crates Merge pull request #2 from HerodotusDev/proofing_changes 2024-12-20 16:10:57 +01:00
evm_proof_faker proper tokio 2024-12-23 10:08:13 +01: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 proper tokio 2024-12-23 10:08:13 +01:00
Cargo.toml feat: add new proof faker crate 2024-12-20 15:46:29 +01: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