paritytech / trie

Base-16 Modified Patricia Merkle Tree (aka Trie)
Apache License 2.0
258 stars 67 forks source link

remove hash of known value for leaf in compact proof. #187

Closed cheme closed 1 year ago

cheme commented 1 year ago

While working on https://github.com/cheme/trie/tree/proof_size_tracking, I found that for leaf the hash of detached value was kept in proof. This pr remove it. On decode we still overwrite the hash the same way, so this should not need any specific client upgrade (could be an idea later to drop on hash present when it is included in next proof item). Note that the code is correct for branch already.