如何验证交易哈希在链条上的transactionsroot中包含了一个交易哈希?

发布于 2025-01-19 15:45:21 字数 186 浏览 5 评论 0原文

我正在进行一些研究,以了解您将如何验证以太坊特定块的Transactionsroot中包含交易哈希。挑战性的部分是我试图在链条上做到这一点。

谁能帮助我弄清楚我需要传递哪些数据以及如何验证这一点?看来,这比仅仅是默克尔根和证据要复杂得多,因为TransactionsRoot是默克尔·帕特里夏·特里(Merkle Patricia Trie)。

I am doing some research to see how you would verify that a transaction hash is included in the transactionsRoot for a specific block in Ethereum. The challenging part for this is that I am trying to do this on chain.

Can anyone help me figure out what data I would need to pass into a function and how I would verify this? It seems like it would be much more complicated than just passing in a merkle root and proofs since the transactionsRoot is a merkle patricia trie.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

相守太难 2025-01-26 15:45:21

这篇博客文章用示例解释了默克尔·特里(Merkle Trie)。它解释了如何计算事务根以及如何生成和验证证明。

https://medium./medium/chium/@chiqing/chim@chiqing/merkle-patrieia-trie-trie-trie-trie--trie-trie---------解释了-ae3ac6a7e123

This blog post explains merkle trie with examples. It explains how transaction root is computed and how proof is generated and verified.

https://medium.com/@chiqing/merkle-patricia-trie-explained-ae3ac6a7e123

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文