You should probably mention that what you are describing is a variant of a Merkle tree.
https://en.wikipedia.org/wiki/Merkle_tree