Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A blockchain records payments of a digital currency. Block of the chain holds the payment "Sara pays Omar 6".
A blockchain is a digital ledger: a time-stamped series of records that cannot be altered. Each block holds its data, a time-stamp, the hash of the previous block and its own hash. A tiny change in the data gives a completely different hash. If block of is changed, every block from to needs a new hash:
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
(a) The data (the payment "Sara pays Omar 6"), a time-stamp, the hash of block and its own hash.
(b) The stored hash of the previous block, block . It must equal block 's own hash.
(c) Block 's own hash. Block stores it as its previous hash.
Remember. The two hashes are what make the blocks a chain.
Log in to join the discussion.
Loading…