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.
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.