
本篇文章分析的源码地址为:https://github.com/ethereum/go-ethereum 分支:master commit id: 257bfff316e...
你好
“其实hasher.hash和hasher.hashChildren始终维护着两棵树,也就是它们的返回值的前两个node。第一棵树是“压缩的”(collapsed)树,这完全是一棵由hashNode组成的树”
个人认为,hasher.hash返回的第一node是hashNode树,但是hasher.hashChildren返回的第一个node并不是hashNode,仅仅是将key的保存形式由[]byte转变为[]nibble。代码注释中感觉对于collapsed的解释有误。
以太坊源码解析:trie下篇本篇文章分析的源码地址为:https://github.com/ethereum/go-ethereum 分支:master commit id: 257bfff316e...
本篇文章分析的源码地址为:https://github.com/ethereum/go-ethereum 分支:master commit id: 257bfff316e...
近年来,区块链技术(部分人更愿意称之为分布式账本技术)的走红将分布式技术的概念带入大众的视野。区块链技术之所以备受追捧,一方面是其展现了一种在计算机的辅助下,人类可以以无中心...
本篇文章分析的源码地址为:https://github.com/ethereum/go-ethereum 分支:master commit id: 257bfff316e...
本篇文章分析的源码地址为:https://github.com/ethereum/go-ethereum 分支:master commit id: 257bfff316e...