BlockchainSecurity
SR EN RU
Incident response

How blockchain works

Three blocks with real SHA-256 hashes, computed in your browser. Break one byte and see where the chain breaks.

Every block remembers the previous hash.

Each block carries its own data and the SHA-256 hash of the block before it. The hash is computed in your browser. When the hash starts with 00, the block is locked.

Block 1

ComputingLockedChanged: the hash is differentLink broken

Data
Ana sends Marko 0.25 ETH
Previous
waiting for the previous hash
Hash
computing in your browser
Nonce
rule: hash starts with 00

Change one character and the chain sees it at once.

One character in the data of block 2 changes its entire hash. Block 3 still remembers the old hash, so the link breaks.

Block 2

ComputingLockedChanged: the hash is differentLink broken

Data
Marko sends Jelena 0.10 ETH
Previous
waiting for the previous hash
Hash
computing in your browser
Nonce
rule: hash starts with 00

Hashes are still being computed.

A demonstration of how hashes are linked. It is not the full consensus and does not guarantee the overall security of a blockchain.

A confirmed block keeps the link.

Block 3 recorded the hash of block 2. As long as the two hashes match, link 2 → 3 holds.

Block 3

ComputingLockedChanged: the hash is differentLink broken

Data
Jelena confirms the payment
Recorded previous
waiting for the previous hash
Hash of block 2
waiting for the hash of block 2
Result
ComputingMatchNo match
Hash
computing in your browser

Links are being checked.Link 1 → 2 confirmed, link 2 → 3 confirmed.Link 1 → 2 confirmed, link 2 → 3 broken.

Back to top