Introduction to the Blockchain
Blockchain Technology didn't just pop up overnight. So how did we get here?
Decentralization and Distributed Ledgers
Components of a Block
Coming Soon: Mining and Consensus
Coming Soon: Blockchains vs. Cryptocurrency
Coming Soon: How is Ethereum Different than Bitcoin?
Coming Soon: Scaling and Goverance
Coming Soon: Private Blockchains
Properties of a Blockchain
A blockchain is a decentralized ledger that records all transactions that are visible on a public network. Blockchain’s architecture allows these transactions to be autonomous and immutable while using cryptography and network architecture for security. Every transaction is permanently recorded to the blockchain and cannot be altered in any way.
The name blockchain largely refers to the structure of the technology. Blocks contain data that represents transactions, and when a block is created or “mined”, all the data contained in the block is added to the chain. Permanently. All ledgers are updated to recognize this new consensus. Blocks are then linked together to form a chain and can be referred back to at any time, hence the name blockchain.
The Bitcoin blockchain was created to allow a network to coordinate and reach “consensus” on shared data. Blockchains were created to solve the problem of coordinating data with people around the world, who don’t know or trust each other.
The first thing to keep in mind here is that Bitcoin, and any other public blockchain, is a truly peer-to-peer network. There is no Bitcoin Corporation; there is no one entity in control. When trying to visualize this process it is helpful to keep the picture of nodes (computers) on a shared network, all running the same or compatible software, in your head.
Because a blockchain is designed as a distributed ledger, many computers (or nodes) are connected to form a network. As previously mentioned, this structure is referred to as a decentralized or a peer-to-peer (P2P) network. If someone wants to hack the network, they must get into all of these connection points at the same time. The chances of this occurring are extremely low, which is a testament to the security used in blockchain technology.
What Makes a Blockchain?
Cryptography is used in order to secure data. Complex mathematics are used to obscure data so that only pertinent information is available to the appropriate parties. Modern cryptography makes use of the properties of mathematical logarithms to produce a one-way “trap door”. Effectively, it is easy to calculate in one direction, but infeasible to calculate in the other. This gives us the basis for the hash digest.
The information exchanged over an open blockchain contains all transaction data. Each transaction is assigned its own unique code known as a hash. Hashes can work as identifiers and can be used to look up a public receipt of the transaction, known as a transaction receipt. Details included in a transaction receipt include the addresses involved, the amount transferred, a timestamp, transfer fees, etc.
Once a block is confirmed, the data recorded to the blockchain cannot be removed or edited. Each block is stacked upon the previous block. The next block must have the preceding block’s hash in order to be added to the chain. This assures that the blockchain stays in chronological order, effectively making it tamper-proof.
Each computer running the blockchain’s software has a copy of all the information contained in that blockchain. Information isn’t processed through a central server but is transmitted and verified by nodes in parts of the network. The network functions based on a set of rules that every client must follow exactly; if blocks are broadcast to the network and do not follow the validity rules, the block will be rejected. A blockchain’s network is distributed, allowing for an egalitarian, peer-based network.
Every node on the Bitcoin network contributes to “consensus”, the process by which the data is agreed upon and becomes the ‘truth’ on the network. However, certain nodes called miners play a very important role in this process. Nodes work together to verify the information being transmitted by other nodes without relying on a central bookkeeper.
Each consensus mechanism has its own set of rules; it might help to think of them like sealing an envelope. Once all the messages (transactions) are inside, there is a set of rules that dictate who may seal the envelope (block) and under what conditions.