3 ms·
Isn't calculateHash() creating a hash from the whole block, not just the data part of it? If not, how should that function calculate the hash so that it satisfi
by andirk 10y ago
Isn't calculateHash() creating a hash from the whole block, not just the data part of it? If not, how should that function calculate the hash so that it satisfies what it needs to to be a real blockchain?
- saurik 10y agoAh! I was being confused by the diagram and another comment :(. It seems really strange to assume that the previous block's hash field is accurate, but I guess that is being verified as the chain is built; if you just remove that field you could calculate that hash and verify it that way. I now agree: it at least has the ability to verify the list's history. (Sorry for the confusion.)