Financial Liberation - An Introduction to Bitcoin
How Does Bitcoin Work? The Inner Workings of This Magical Internet Money
- The Roles of Bitcoin
- A Transaction From Start to Finish
Bitcoin is often referred to as magical internet money… and for a good reason. Think about it – with Bitcoin, you can send value to anyone, anywhere in the world, without the need for a middleman like a bank or government. It's like having control of your own personal bank, the power to transfer funds across borders with just a few clicks of a button.
Given the numerous benefits that Bitcoin has to offer, from providing a fast, secure, and low-cost way to transact to allowing individuals to take control of their own financial futures without the need for a centralised authority, in addition to the complex cryptographic hurdles it has had to solve to make peer-to-peer digital currency a reality, it's natural to feel as though its functionality is something only a handful of individuals must understand. You may even feel a little intimidated by the idea of a decentralised digital currency. But the truth is that Bitcoin is actually quite simple once you understand its inner workings.
In this section, we're going to take a closer look at the key players in the Bitcoin ecosystem and how they work together to make this magical internet money function.
Let's get started!
As discussed in the introduction to this module, Bitcoin is unique in that we have a fully functional, widely used peer-to-peer decentralised digital currency for the first time in history. This means that instead of relying on a central authority like a bank or government to manage transactions, it is managed by a network of participants that work together. This innovative approach allows us to transact with one another without the need for intermediaries.
When compared to traditional banking systems, while Bitcoin functionally operates differently, the roles it must perform are no different. For instance, both banks and Bitcoin have to:
- validate and process transactions,
- monitor transactions to ensure there is no cheating or bad behaviour,
- ensure everything is up-to-date, functioning smoothly and securely.
While banks perform these roles in-house, giving them complete control over the process, Bitcoin requires collaboration by the community to perform these roles. In other words, for Bitcoin to replicate these processes in a decentralised system, Bitcoin must outsource each of these tasks to ensure that no one individual or centralised entity has outsized control over the system.
To achieve this revolutionary feat, Bitcoin has divided these tasks into three key roles: nodes, miners and developers. Where nodes verify transactions and set and enforce rules, miners order and confirm transactions, and developers keep the network up-to-date and propose upgrades. By distributing these tasks amongst these key players, Bitcoin has created a system that is secure, transparent, and accountable to all users.
Let's, therefore, take a look at each of these roles…
The Roles of Bitcoin
Nodes
Nodes are essential to the integrity and security of the Bitcoin network. They serve as the system's gatekeepers, ensuring that transactions are processed accurately and according to the rules. Every node downloads and locally verifies a complete copy of the blockchain, which is essentially a digital ledger that records every transaction ever made on the Bitcoin network. Through consensus, nodes agree on the validity of each transaction and ensure that the rules are being followed. This means that the nodes will reject the transaction if someone tries to cheat the system, e.g. by sending more bitcoin than they actually have or attempting to spend the same bitcoin twice.
To further elaborate on this idea of consensus, when developers propose changes or upgrades to Bitcoin, nodes play a role in adopting or rejecting these changes. They do this by either upgrading their software to the new version or continuing to run the old version. This process often involves discussions and debates within the Bitcoin community to achieve consensus. That said, Bitcoin's consensus is not as black and white as a voting machine. The majority does not necessarily rule. If some individuals disagree with the change, they can launch a new Bitcoin-derived token. Now, the original Bitcoin exists without the change and a new one with the change. Through buying and selling, it is up to the community to highlight which version they deem more valuable. This consensus mechanism ensures that any changes made to the Bitcoin protocol are agreed upon by the whole community, making it difficult for any individual or group to manipulate the system for their own benefit.
It's also important to note that a node is simply a piece of software anyone can run on their home computer. The only requirement is an internet connection and, depending on how much of the blockchain you wish to store, anywhere from 5 to 500gb of free space.
Miners
Bitcoin miners, on the other hand, play a critical role in record-keeping, as they are responsible for ordering and confirming transactions. To do this, miners use specialised computers to perform a function called hashing. Without diving into the nitty gritty of hashing, think of it as miners competing with one another to add new transactions to the blockchain, the public ledger of transactions. In exchange for their work, miners are rewarded with newly created bitcoin and the transaction fees for any transactions processed. The mining process is designed to be difficult, competitive, and randomised, with only a limited number of new bitcoin released each year, ensuring that the supply of bitcoin is limited and their value is maintained. Without miners, transactions would not be processed.
Given that miners have to compete with one another to process transactions and are rewarded for doing so, this competition minimises the chance that any single miner or entity can control the network and incentivizes miners to act honestly and follow the rules. If a miner tries to cheat or break the rules, they risk losing their reward, so there is a strong incentive to play by the rules.
Developers
Developers are highly skilled and respected members of the Bitcoin community who work together to ensure the network remains secure, reliable, and up-to-date. They play a critical role in the Bitcoin ecosystem by maintaining and improving the software that powers the network. They are responsible for proposing and implementing changes to the Bitcoin codebase, fixing bugs, and improving performance and security.
Without developers, the Bitcoin network would not be able to evolve and adapt to changing circumstances. They are responsible for ensuring the network's long-term viability and ensuring it remains a trusted and decentralised payment system for years to come. In short, developers are the backbone of the Bitcoin ecosystem, constantly working to improve the network's underlying technology and ensure its continued success.
Finally, there is one more role that we want to highlight: the community, which is what gives bitcoin its value. The community consists of everyone who uses the network, transacts back and forth, and incentivises the nodes, miners, and developers to continue working on Bitcoin. As the community grows, so does the value of the Bitcoin network.
Side Note: It's important to emphasise that Bitcoin's decentralised nature allows anyone, regardless of their background or status, to participate in the network and take on any of the roles necessary for its functioning. This distinguishes Bitcoin from traditional currencies, which are often subject to control by central banks or governments. In other words, Bitcoin gives power back to the people by enabling them to be active participants in the network rather than passive consumers of a centralised system.
A Transaction From Start to Finish
To understand how all these players work together, let's imagine a simple Bitcoin transaction between two people, Alice and Bob. Alice wants to send Bob one-thousandth of a bitcoin, around $29 at the time of writing.
Transaction Initiation
Every Bitcoin transaction begins with its initiation when the sender, in this case, Alice, creates a transaction specifying the recipient, Bob, and the amount, 0.00100000 bitcoin. The node associated with Alice's wallet then broadcasts the transaction to the network, where the nodes confirm its validity, and it is sent to the miners for confirmation.
At this point, the transaction enters what is known as the mempool, essentially a waiting room for transactions ready to be added to the blockchain. Think of it as a list of pending transactions, much like the ones you see on your credit card statement, that have been initiated but are waiting to be processed. Once the transaction has been initiated and is sitting in the mempool, it is now in the hands of the miners.
Transaction Confirmation
Miners now take these pending transactions, bundle them up into a new block, and compete against one another to perform a certain task laid out by the software underpinning Bitcoin. The competition winner then appends their block and the enclosed transactions to the blockchain, finalising these transactions. The winner is also rewarded with newly issued bitcoin and the fees associated with the transactions processed, incentivising them to continue processing transactions.
Transaction Validation
Once the transaction is confirmed, Bob should now be able to see the 0.00100000 bitcoin in his wallet. But it doesn't stop there. The nodes then verify that the miner has done their job correctly and that the transactions included in this new block meet the rules agreed upon by the nodes. If the block fails to do so, then the new block will be rejected, and the miner will lose their mining reward.
Fun Fact: Even after a Bitcoin transaction is confirmed, the possibility of reversal exists if nodes reject blocks. However, with each new block added to the blockchain post-transaction, the likelihood of reversal decreases exponentially. To enhance security, exchanges and wallets often place a hold on your bitcoin until several subsequent blocks are appended— usually three to six. This safeguards funds and guarantees transaction peace of mind.
Conclusion
As explained throughout this section, while Bitcoin may appear as a complex cryptographic system under the hood, it's merely a collaborative effort between three essential roles and the community.
- Nodes, through transaction validation, ensure the integrity and security of the network by serving as gatekeepers.
- Miners are responsible for ordering and confirming transactions.
- Developers are highly skilled members of the Bitcoin community who work together to maintain and improve the software that powers the network.
- The community, through the use of Bitcoin, is what gives it value.
Each of these roles is essential to the functionality and success of Bitcoin as a digital currency. By entrusting these crucial tasks to the key players, Bitcoin can operate as a secure, transparent, and accountable medium of exchange for all users, making it a significant achievement in the history of currency.