types: dont use SimpleHashFromMap for header. closes #1841 (#2670)

* types: dont use SimpleHashFromMap for header. closes #1841

* changelog and spec

* comments
This commit is contained in:
Ethan Buchman
2018-10-19 11:39:27 -04:00
committed by GitHub
parent 746d137f86
commit f536089f0b
3 changed files with 26 additions and 20 deletions

View File

@@ -216,7 +216,7 @@ prefix) before being concatenated together and hashed.
Note: we will abuse notion and invoke `SimpleMerkleRoot` with arguments of type `struct` or type `[]struct`.
For `struct` arguments, we compute a `[][]byte` containing the hash of each
field in the struct sorted by the hash of the field name.
field in the struct, in the same order the fields appear in the struct.
For `[]struct` arguments, we compute a `[][]byte` by hashing the individual `struct` elements.
### Simple Merkle Proof