Blockchain 101
Illustrated recap of the core mechanics of a blockchain like Ethereum.
The chain of blocks
At its core, a blockchain is just a sequence of information (blocks) linked together by a cryptographic mechanism (some badass math) to prevent modifications of the content/order of the blocks.
It’s often used to secure database modification histories, ensuring that replaying all the modifications from the beginning would give you the current version of the database.
Here is an example of that:
Blockchain networks (decentralization)
Blockchain networks like Bitcoin or Ethereum share and synchronize their database and block history across thousands of computers to add more security, creating a large decentralized network.
The whole network agrees on the rules to approve new blocks via a “consensus mechanism.” And because of the large number of computers sharing and watching the blockchain, it is virtually impossible to change something in the history without getting noticed.
Cryptocurrencies
Bitcoin uses its secure decentralized database to store a ledger, keeping track of account numbers and their balance of “coins” (a simple number in the ledger).
Thanks to a transaction system secured by the consensus mechanism, any account owner can transfer and receive coins without worrying about “double spending” (someone spending their money twice before their account is debited, a type of digital counterfeiting that would devalue the currency).
Get Rémi Toffoli’s stories in your inbox
Join Medium for free to get updates from this writer.
Bitcoin’s network only stores a cryptocurrency ledger; hence its name is the same as its currency’s (Bitcoin or BTC).
Whereas Ethereum network’s name differs from its currency (Ether or ETH) because it stores more information like smart contracts’ code and variables.
Hexadecimal numbers
You might have noticed “0x”-prefixed numbers above. If you don’t know about hexadecimal yet, let’s get this out of the way.
Instead of counting 10 by 10 (decimal system), developers often represent numbers in hexadecimal (base 16) which provides a human-friendly representation of the binary used by computers.
In hexadecimal, after 9, we use the letters A, B, C, D, E, and F to represent the values from 10 to 15. And to visually differentiate base 10 and base 16 numbers, hexadecimal numbers are prefixed with “0x”.
For example (hexadecimal ⇒ decimal):
- 0x5 = 5
- 0xf = 10
- 0x2a = 42
- 0xff = 255
- 0x3b9aca00 = 1,000,000,000 (1 billion)









