Would be nice to add a note as to why this is necessary ("in the same way that hashes are repeated when building the full merkle tree")