Skip to content

A comprehensive transaction MPT proofs handler for Ethereum / Starknet

License

Notifications You must be signed in to change notification settings

HerodotusDev/winter_hackathon_team_red

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


About

A comprehensive transaction MPT proofs handler for Ethereum / Starknet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%