Satoshi Nakamoto is famous for solving the double spending problem when they created the cryptocurrency Bitcoin.
Decentralization is core to what a blockchain is. A blockchain is a globally verifiable ledger of transactions that is collectively run and verified by each member of the network. It is a ledger of transactions that every user has access to.
Imagine if Hogwarts had a “magical” accounting ledger that recorded every transaction that occurred at the school. This book has special properties:
The key innovation of blockchains is solving the Byzantine Generals problem. This is commonly known as the double spending problem.
The distributed ledger solves this problem. Every transaction is required to be recorded to the entire network so it can’t be duplicated.
In the case of Bitcoin, a user’s currency is moved from their wallet to someone else’s wallet. This process is recorded to, and verified, by the entire network simultaneously, so it can’t happen twice.
In blockchain, decentralization refers to an open network of computers all running the same code or hosting the same data.
The three main benefits of decentralization in blockchain are:
One benefit of decentralization in blockchain is security. The “crypto” in cryptocurrency comes from cryptography, and this secures individual transactions on the blockchain (as well as provides the backbone of the consensus mechanism known as Proof of Work).
By leveraging public key cryptography, we can create secure identity and user management, despite the information and transactions being public.
One benefit of decentralization in blockchain is transparency. Because blockchain networks are (or should be) open and viewable to all, they are highly transparent.
If the network is not open and nodes are not able to be downloaded and verified by anybody, we cannot call the network decentralized.
One benefit of decentralization in blockchain is permanence. Because of the ledger-like nature of blockchain networks, information written to blockchains is permanent.
A blockchain is literally a chain of data blocks that are all connected together, so every transaction is recorded to that ledger permanently.
The three main components of blockchain design are:
The chunks of data that make up the blockchain are called blocks.
In blockchain, a block has three basic elements:
In blockchain, a nonce is a randomly generated 32-bit whole number that generates a block header hash.
In blockchain, a block’s hash is a 256-bit number that is connected to the nonce.
In blockchain, a node is a computer on a decentralized network that is used to watch and verify a ledger.
In blockchain, a node is only responsible for holding a copy of the existing blockchain, not adding new blocks.
In blockchain, a miner is a person or organization that creates new blocks on the blockchain.
In blockchain, mining is the process of utilizing software to brute force guess the correct nonce that will generate the correct hash. A miner can mine the next block only if they calculate the correct hash of the block.
In blockchain, the Proof of Stake (PoS) Consensus Mechanism is the consensus method used by Ethereum.
It involves participants staking their tokens (the native currency of the network) in exchange for a chance to mine the next block and earn a reward. Tokens can be “slashed” if participants partake in dishonest behavior.
In blockchain, a Consensus Mechanism is the mechanism by which all the different computers in the blockchain network, nodes, come to agree on what data the ledger contains.
There are many different types of consensus mechanisms, such as:
In blockchain, the Proof of Work (PoW) Consensus Mechanism is the consensus mechanism used by Bitcoin.
It involves computers doing a massive amount of cryptographic work in order to potentially win a chance at mining the next block and earning a block reward.
A blockweave is a chain in which one block is connected to multiple previous blocks as opposed to a single block as in blockchain. They are used in the Proof of Access consensus mechanism.
In blockchain, Proof of Transfer (PoX) is a consensus mechanism that is built on Proof of Work.
While, in the Bitcoin Proof of Work mechanism, miners expend energy to generate a new Bitcoin, in Proof of Transfer, miners expend Bitcoin to generate a new Stacks block.
In blockchain, Proof of Burn is a consensus mechanism where miners mine a new block by expending energy to destroy a resource.
In blockchain, Proof of History is a consensus mechanism that allows validator nodes to quickly verify that a certain transaction happened between two specific points in time in the blockchain.
In blockchain, Proof of Space is a consensus mechanism in which users prove they are reserving space on a hard drive for network storage. The space is called a plot.
In blockchain, each consensus mechanism has its unique benefits, drawbacks, and tradeoffs. It is important for a dapp developer to consider all technical aspects before deciding on which consensus mechanism to implement.
In blockchain, a common criticism of Proof of Work (PoW) is that it is incredibly inefficient and consumes a lot of energy.
In blockchain, the resource-intensiveness of the Proof of Work (PoW) model is slower than other consensus mechanisms, but it encourages decentralization and is more secure by design.
Bitcoin uses the Proof of Work (PoW) consensus mechanism causing the verification chain to be very slow.
Solana is a blockchain that uses the Proof of History (PoH) consensus mechanism and is optimized for speed and user experience.
A Solana node has much higher requirements than a Bitcoin node leading to a more centralized blockchain.
Ethereum is a blockchain that is in the process of migrating from Proof of Work to Proof of Stake.