本篇文章分析的源碼地址為:https://github.com/ethereum/go-ethereum 分支:master commit id: 257bfff316e...
你好
“其實(shí)hasher.hash和hasher.hashChildren始終維護(hù)著兩棵樹,也就是它們的返回值的前兩個(gè)node。第一棵樹是“壓縮的”(collapsed)樹,這完全是一棵由hashNode組成的樹”
個(gè)人認(rèn)為,hasher.hash返回的第一node是hashNode樹,但是hasher.hashChildren返回的第一個(gè)node并不是hashNode,僅僅是將key的保存形式由[]byte轉(zhuǎn)變?yōu)閇]nibble。代碼注釋中感覺對于collapsed的解釋有誤。
以太坊源碼解析:trie下篇本篇文章分析的源碼地址為:https://github.com/ethereum/go-ethereum 分支:master commit id: 257bfff316e...
本篇文章分析的源碼地址為:https://github.com/ethereum/go-ethereum 分支:master commit id: 257bfff316e...
近年來,區(qū)塊鏈技術(shù)(部分人更愿意稱之為分布式賬本技術(shù))的走紅將分布式技術(shù)的概念帶入大眾的視野。區(qū)塊鏈技術(shù)之所以備受追捧,一方面是其展現(xiàn)了一種在計(jì)算機(jī)的輔助下,人類可以以無中心...
本篇文章分析的源碼地址為:https://github.com/ethereum/go-ethereum 分支:master commit id: 257bfff316e...
本篇文章分析的源碼地址為:https://github.com/ethereum/go-ethereum 分支:master commit id: 257bfff316e...