What is Bitcoin and how does it work?

What is Bitcoin and how does it work?

Bitcoin definition: A number guessing game

The white paper described Bitcoin (BTC) as a “peer-to-peer electronic cash system.” But, where does Bitcoin come from?

According to the algorithms, new Bitcoin is generated and given to computer users who solve pre-specified mathematical challenges. The mathematical problems refer to a hash, which is a 64-digit hexadecimal number that is less than or equal to the target hash. So, Bitcoin is simply a number, such as 12345.

To illustrate, let's assume Ms. Rose pulls a $1 bill from her wallet with the number G6607081974P. No other bill bears the G6607081974P number, considering the Federal Reserve System (in the United States) operates at a minimum degree of competence.

Since this money has a face value of $1, Ms. Rose can use it to purchase a cup of coffee.

Now, let's say two people agree that bill R7607081974P is actually worth $4,000. The only difference between Bitcoin No.12345 and $1 Bill No. R7607081974P is that the $1 bill has a physical existence and a face value that is worth something. Bitcoin, on the other hand, has no intrinsic value and is simply a number. The number may have a value agreed upon by two persons, but it has no value in and of itself. Hence, Bitcoin is created by a group of individuals playing a number guessing game.

Bitcoin – A number guessing game

So, what is the point of playing this game in the first place? The game is significant because it is a technique that aids with the verification and security of the Bitcoin network’s transaction history. Anyone who wants to contribute new transactions to the network must first play and win a game, which takes computational power. As a result, an attacker will find it difficult and costly to cause any damage to the network.

What is Bitcoin backed by and how does Bitcoin work?

Unlike traditional currencies, Bitcoin is neither issued by a central bank nor backed by a government. As a result, inflation rates, monetary policy and economic growth indicators that traditionally influence currency value do not apply to Bitcoin.

Bitcoin is based on a blockchain, which is a distributed digital ledger. Blockchain is a linked body of data made up of units called blocks containing information about each transaction, such as the buyer and seller, time and date, total value and a unique identification code for each exchange. Entries are connected in chronological sequence, forming a digital chain of blocks.

When a block is uploaded to the blockchain, it becomes available to anyone looking at it, thereby acting as a public record for cryptocurrency transactions. The blockchain is decentralized, meaning a single entity does not control it. The digital chain of blocks is similar to a Google Doc that anyone can edit. It is not owned by anyone, but anyone with a link can contribute to it. As different individuals make changes to it, your copy is updated as well.

While the idea of everyone being able to edit the blockchain may appear unsafe, it is precisely what makes Bitcoin trustworthy and secure. To be included in the Bitcoin blockchain, a transaction block must be validated by the majority of Bitcoin miners. 

The unique codes used to identify users’ wallets and transactions must follow the correct encryption pattern. Since these unique codes are long random numbers, counterfeiting them is extremely difficult. The statistical randomness of the blockchain verification codes required for each transaction dramatically minimizes the likelihood of a fraudulent Bitcoin transaction being made by anyone connected to the network.

Why was Bitcoin created?

During the 19th and 20th centuries, many of the world's most popular currencies were convertible into fixed amounts of gold or other precious metals. However, most countries abandoned the gold standard between the 1920s and the 1970s, partly due to the strains of funding two world wars and global gold production's inability to keep up with economic development.

Moreover, physical valuables such as gold and silver were previously traded for commodities and services. Because physical assets were cumbersome to carry and prone to loss and theft, however, banks retained them for users, producing notes confirming users’ bank holdings.

Users rely on banks to maintain the value of their currency and protect their funds. Between 2008 and 2009, nevertheless, several banks and other financial organizations failed worldwide and governments had to bail them out at taxpayers' expense. 

The failure of banks (as guardians of public funds) highlighted how fragile the modern financial system can be and the need to decentralize the financial services to enhance customer experience. As a result, Bitcoin was seen as a response to the Great Financial Crisis and the financial world's reliance on banks as financial transaction intermediates. 

Satoshi Nakamoto had the notion of removing banks from financial transactions and replacing them with a peer-to-peer (P2P) payment system that didn't require third-party confirmation, eliminating the need for banks to be facilitating every transaction. The blockchain, a network-based ledger, is how Bitcoin and other cryptocurrencies develop trust. So, when was Bitcoin created?

When the first block, known as the genesis block, was mined on Jan. 3, 2009, the blockchain was officially launched. A week later, the first test transaction took place. Bitcoin blockchain was only available to miners confirming the Bitcoin transactions for the first few months of its existence. 

Bitcoin had no real monetary worth at this point. Miners — the machines that solve complex math problems to discover new Bitcoin and verify that existing Bitcoin transactions are valid and accurate — would exchange Bitcoin for fun.

The first economic transaction took more than a year to complete, when a Florida man agreed to have two $25 Papa John's pizzas delivered for 10,000 Bitcoin on May 22, 2010. This day has been celebrated as Bitcoin Pizza Day ever since. 

The initial real-world price or value of Bitcoin was set at four BTC per penny due to this transaction. Supply chain management, cross-enterprise resource planning, logistics, energy trading, DAOs or decentralized autonomous organizations and many other applications are currently being explored with Bitcoin.

When was Bitcoin created?

Bitcoin was created in the aftermath of the 2008 financial crisis via a white paper written by a pseudonymous entity or a group of people named Satoshi Nakamoto. The crisis served as a strong motivator for Bitcoin’s development. This guide aims to provide a glimpse of how long has Bitcoin been around, who started Bitcoin and what is Bitcoin used for?

The financial crisis of 2007 and 2008 — often known as the subprime mortgage crisis — was a global event that led to the significant contraction of liquidity in global financial markets (that began in the United States) due to the collapse of the housing market.

As the world was engulfed in a global recession brought on by excessive financial market speculation and banks risking millions of dollars in depositor funds, the white paper laid the groundwork for the first fully functional digital money based on the distributed ledger technology (DLT) called the blockchain. So, what is Bitcoin and how does it work?

The Bitcoin white paper was the first document to lay forth the fundamentals of a cryptographically secure trustless peer-to-peer (P2P) electronic payment system fundamentally designed to be censorship-resistant and transparent, all while reclaiming financial power for individuals. 

Bitcoin is digital money, also known as cryptocurrency, that functions independently of any central authority. A cryptocurrency is a digital means of exchange that secures and verifies transactions using encryption. Encryption refers to a method of transforming plain text into a meaningless or random text called ciphertext. The study of secure communication techniques that allow only the sender and intended recipient of a message to read its contents is known as cryptography. 

Bitcoin was created as an alternative to existing fiat currencies that could eventually be recognized as a global currency. Today, fiat currencies such as the British pound and the U.S. dollar are the most widely used types of money globally. Fiat currencies are controlled by a national government in terms of supply and creation and are backed by the trust and confidence in that government.

However, Bitcoin utilizes peer-to-peer technology to facilitate transactions between parties who believe that the asset being transferred has intrinsic worth. P2P refers to the direct exchange of an asset, like Bitcoin, between individuals without the interference of a central authority.

What is Bitcoin made of: Public and private keys in Bitcoin

At its most basic, Bitcoin is an autonomous public-key cryptosystem that facilitates the exchange of digital value among peers via a sequence of digitally signed transactions, rather than messages. The basic process flow of a Bitcoin transaction is identical to that of a series of encrypted messages found in a schematic of public-key cryptography and digital signatures. 

To safeguard data from unauthorized access or use, public-key cryptography uses a pair of keys to encrypt and decrypt it. A digital signature is an electronic signature that uses a mathematical algorithm to verify the validity and integrity of a digital message. Therefore, Bitcoin is a chain of digital signatures. 

Each owner sends Bitcoin to the next by digitally signing a hash of the previous transaction and the next owner's public key, then appending them to the end of the coin. The chain of ownership can be confirmed by the payee by verifying the signatures.

Users must have access to the associated public and private keys to transfer the required amount of Bitcoin. While referring to someone who owns Bitcoin, it really means that they have access to a key pair that includes public and private keys. 

A public key refers to an address to which some Bitcoin has previously been transmitted. The accompanying unique private key (a password) allows Bitcoin to be sent elsewhere once sent to the above public key (address).

Bitcoin addresses, also known as public keys, are randomly generated sequences of letters and numbers that act similarly to an email address or a username on a social media site. They are public, as the name implies, so users can safely share them with others. In reality, if users want anyone to send them Bitcoin, they must provide them with their Bitcoin address.

The private key is made up of a different set of letters and numbers produced at random. Private keys should be kept confidential, just as passwords for email or other services. Never give out your private key to someone you don't completely trust not to steal from you.

A Bitcoin address can be compared to a transparent safe. Others can see what’s inside, but only the private key owner can open the safe and gain access to the money.

Transaction inputs and outputs

Although handling coins individually is conceivable, making a separate transaction for each penny in a transfer would be inconvenient. Transactions have many inputs and outputs to allow value to be split and merged. 

Usually, there will be either a single input from a prior more significant transaction or numerous inputs combining lesser amounts with at most two outputs: one for the payment and one for returning any change to the sender.

Now, imagine that Romeo wishes to send Juliet 1 BTC. He accomplishes this by signing a message containing transaction-specific information with his private key. The following will be included in this message which must be broadcast to the network:

Inputs, amount and outputs for a transaction between Romeo and Juliet

Inputs: Inputs contain details about the Bitcoin delivered to Romeo’s address previously. Consider the case where Romeo got 0.7 BTC from Alice and 0.7 BTC from Bob. Now, to transmit 1 BTC to Juliet, there may be two inputs: one 0.7 BTC input from Alice and one 0.7 BTC input from Bob.

Amount: The amount Romeo wishes to send is 1 BTC.

Outputs: The initial output is 1.4 BTC to Juliet's public address (0.7 BTC + 0.7 BTC). The second output is 0.4 BTC returned to Romeo as “change.”

Broadcasting and confirmations over the network

Romeo will broadcast his intended transaction to the Bitcoin network via his wallet software in the example above. The inputs (i.e., the address(s) from which Romeo previously obtained the Bitcoin he claims to possess) are verified by a specific group of network members known as “miners.”

Miners also create a block by combining a list of additional transactions broadcast to the network around the same time as Mark’s. Any miner who has completed the proof-of-work, or PoW, can propose a new block to be added to the chain or “connected” to it by referencing the previous block. The network is then informed of the new block. 

Other network participants (nodes) will pass it forward if they agree it's a valid block (i.e., the transactions it contains meet all protocol requirements and adequately reference the previous block). When proposing the next block, another miner will eventually build on top of it by referring to it as the previous block. The next miner will have “verified” any transactions that were added to the last block. The number of confirmations for Romeo’s transaction grows as blocks are added to the chain.

What is Bitcoin mining and how does it work?

The process of adding new transactions to the Bitcoin blockchain is known as Bitcoin mining. It’s a difficult job. Bitcoin miners employ a PoW technique, in which computers compete to solve mathematical problems that validate transactions. 

In general, miners attempt to generate a 64-digit hexadecimal number, referred to as a hash, that is less than or equal to the target hash.  Bitcoin hash rate indicates the estimated number of hashes created by miners attempting to solve the current Bitcoin block or any given block. 

The hash rate of Bitcoin is measured in Hashes per Second, or H/s. Miners need a high hash rate, measured in megahashes per second (MH/s), gigahashes per second (GH/s) and terahashes per second (TH/s), to mine successfully. 

Bitcoin hashrate

The Bitcoin code rewards miners with additional Bitcoin to encourage them to keep racing to solve the riddles and maintain the entire system. This is how new blockchain transactions are added to the system.

It’s vital to note that the Bitcoin hash rate has no bearing on the speed at which each block is solved. The Bitcoin mining difficulty value (adjusted upwards or downwards at each block) ensures blocks are solved at a fixed time frame called the block time.

Bitcoin mining is considerably less profitable than it once was, making it even more challenging to recoup increased costs associated with acquiring computational power and running it by using up electricity. 

When the system was first introduced in 2009, miners received a stamp every time they got a higher quantity of Bitcoin t