如何验证交易哈希在链条上的transactionsroot中包含了一个交易哈希?
我正在进行一些研究,以了解您将如何验证以太坊特定块的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这篇博客文章用示例解释了默克尔·特里(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