Skip to main content

How Bitcoin Works


Bitcoin is more than a cryptocurrency used as a payment or for investors to hold and hope for value increases. There is an entire ecosystem at work behind a cryptocurrency. There are many of these ecosystems working on the internet today, but because Bitcoin was the first, it's essential to understand what makes it work and how.

Learn what's going on behind the scenes in the Bitcoin network to help you further your understanding of this digital phenomenon and how it influences the world's finances.



The Bitcoin Blockchain

The Bitcoin blockchain is a database of transactions secured by encryption and validated by peers. Here's how it works. The blockchain is not stored in one place; it is distributed across multiple computers and systems within the network. These systems are called nodes. Every node has a copy of the blockchain, and every copy is updated whenever there is a validated change to the blockchain.

The blockchain consists of blocks, which store data about transactions, previous blocks, addresses, and the code that executes the transactions and runs the blockchain. So, to understand the blockchain, it's important first to understand blocks.

Blocks

When a block on the blockchain is opened, the blockchain creates the block hash, a 256-bit number that encodes the following information:

  • The block version: the Bitcoin client version
  • The previous block's hash: the hash of the block before the current one
  • The coinbase transaction: the first transaction in the block, issuing the bitcoin reward
  • The block height number: how far away numerically the block is from the first block
  • Merkelroot: A 256-bit number that stores the information about all previous blocks
  • Timestamp: the time and date the block was opened
  • The target in bits: the network target
  • The nonce: a randomly-generated 32-bit number

Queued transactions are entered into the block, the block is closed, and the blockchain creates the hash. Each block contains information from the previous blocks, so the blockchain cannot be altered because each block is "chained" to the one before it. Blocks are validated and opened by a process called mining.

Bitcoin Mining

Mining is the process of validating transactions and creating a new block on the blockchain. Mining is conducted by software applications that run on computers or machines designed specifically for mining called Application Specific Integrated Circuits.

The hash is the focus of the mining programs and machines. They are working to generate a number that matches the block hash. The programs randomly generate a hash and try to match the block hash, using the nonce as the variable number, increasing it every time a guess is made. The number of hashes a miner can produce per second is its hash rate.

Mining programs across the network generate hashes. The miners compete to see which one will solve the hash first—the one that does receives the bitcoin reward, a new block is created, and the process repeats for the next group of transactions.

Bitcoin's protocol will require a longer string of zeroes depending on the number of miners, adjusting the difficulty to hit a rate of one new block every 10 minutes. The difficulty—or the average number of tries it takes to verify the hash—has been increasing since Bitcoin was introduced, reaching tens of trillions of average attempts to solve the hash.1

 As this suggests, it has become significantly more difficult to mine Bitcoin since the cryptocurrency launched.

Mining is intensive, requiring big, expensive rigs and a lot of electricity to power them. And it's competitive. There's no telling what nonce will work, so the goal is to plow through them as quickly as possible with as many machines working on the hash as possible to get the reward. This is why mining farms and mining pools were created.

Halving

Halving is an important concept in Bitcoin mining. At first, the mining reward was 50 BTC for solving the hash. About every four years, or 210,000 blocks, the reward is cut in half. So, rewards were cut to 25 in 2012, 12.5 in 2016, and 6.25 in 2020. The next halving is expected to occur in 2024 when the reward will reduce to 3.125, followed by a reduction to 1.5625 around 2028.

The last bitcoin is expected to be mined somewhere around 2140. All 21 million bitcoins will have been mined at that time, and miners will depend solely on fees to maintain the network.

Keys and Wallets

A common question from those new to Bitcoin is, "I've purchased a bitcoin, now where is it?" The easiest way to understand this is to think about the Bitcoin blockchain as a community bank that stores everyone's funds. You view your balance using a wallet, which is like your bank's mobile application. If you're like many people today, you don't use cash very often and never see the money in your checking account. Instead, you use credit and debit cards, which act as tools to access and use your money. You access your bitcoin using a wallet and keys.

Keys

A bitcoin at its core is data with ownership assigned. Data ownership is transferred when transactions are made, much like using your debit card to transfer money to an online retailer. You use your wallet, the mobile application, to send or receive bitcoin.

When bitcoin is assigned to an owner via a transaction on the blockchain, that owner receives a number, their private key. Your wallet has a public address—called your public key—that is used when someone sends you a bitcoin, similar to the way they enter your email address in an email.

Wallets

A wallet is a software application used to view your balance and send or receive bitcoin. The wallet interfaces with the blockchain network and locates your bitcoin for you. The blockchain is a ledger with portions of bitcoin stored on it. Because bitcoin is data inputs and outputs, they are scattered all over the blockchain in pieces because they have been used in previous transactions. Your wallet application finds them all, totals the amount, and displays it.

There are two types of wallets, custodial and noncustodial. A custodial wallet is one where a trusted entity, like an exchange, holds your keys for you. For example, when you sign up for a Coinbase exchange account, you can elect to have them store your keys for you as custodians.

To remedy this, the cryptocurrency community has developed methods for storing your keys offline. Most commonly, you'll hear about hot storage, cold storage, and deep cold storage. Hot storage is any wallet that stores your keys and has an active connection to the internet—this is the most vulnerable method. An example of a hot wallet is the wallet application on your mobile device.

Cold storage is any method that is not connected to the internet. This could be a removable USB drive or a piece of paper with your keys written on it (this is called a paper wallet). Deep cold storage is any cold storage method that is secured somewhere that requires additional steps to access the keys beyond removing the USB drive from your desk drawer and plugging it in. Examples might be a personal safe or storage deposit box—anything that takes extra effort to retrieve your keys.

Bitcoin Transactions

A bitcoin transaction happens when you send or receive a bitcoin. To send a coin, you enter the receiver's address in your wallet application, enter your private key, and agree to the transaction fee. Then, press whichever button corresponds to 'send.' The receiver must wait for the transaction to be verified by the mining network, which can take up to 30 minutes because transactions wait in a mining queue called the mempool

Bitcoin Security

There are many parts that make up the Bitcoin blockchain and network, but it is not necessary to understand it all to use this new currency technology. You only need to know that you use a wallet to send, receive, and store your bitcoin keys; you also should use a cold storage method for security because non-custodial wallets can be hacked.

Custodial wallets can also be hacked, but many who offer this service take measures to reduce the chances that hackers can get into the storage systems. Most are turning to enterprise-level cold storage techniques businesses use to store essential data for extended timeframes.

For good reason, many people are concerned about Bitcoin's level of security, especially since it involves exchanging money for encrypted data ownership. However, it's important to note that the Bitcoin blockchain has never been hacked because of the community consensus mechanisms used. Wallets are the weak spot, so if you're looking to get involved in Bitcoin, it's essential to understand how to utilize cold storage methods and keep your keys out of your hot wallet.

How Does One Make Money From Bitcoin?

Bitcoin wasn't designed as a means for making money but rather as a payment method accessible by everyone. However, some people use it as an investment. This is very risky and should only be done after talking to a professional financial advisor about your financial circumstances.

Can Bitcoin Be Converted to Cash?

You can use some exchanges to convert your bitcoin to cash. There are also some ATMs—called Bitcoin Kiosks—that will allow you to withdraw cash in exchange for bitcoin.

Is Bitcoin Worth Investing in?

Bitcoin's price is very volatile, which means it rises and falls very often, sometimes in large dollar increments. You can generate significant returns investing in Bitcoin, but you can also quickly lose substantial money. It's best to speak to a professional investment or financial advisor about your financial circumstances before investing in Bitcoin.

Investing in cryptocurrencies and other Initial Coin Offerings (“ICOs”) is highly risky and speculative, and this article is not a recommendation by Investopedia or the writer to invest in cryptocurrencies or other ICOs. Since each individual's situation is unique, a qualified professional should always be consulted before making any financial decisions. Investopedia makes no representations or warranties as to the accuracy or timeliness of the information contained herein.

Comments

Popular posts from this blog

BIG List of Security Related Websites [400+ sites]

http://cryptosuite.org/forum/ 260 CryptoSuite.ORG 80 || The Best Encryption Platform Of The World http://www.turkworm.com/default/index.php?wwwRedirect 154 IP//TurkWorm.Com Hacking & Security Platform - Anasayfa http://www.turkishajan.com/ 88 Hack l TurkishAjan Turkish Hacking&Security Forum // Turk Hack ve Güvenlik Forumları http://www.wardom.org/forum.php 69 Wardom.Org 8 - Forum http://www.idhteam.org/ 73 IDHTEAM UNDERGROUND http://hcegroup.us/forum/forum.php 170 H@ck and Cr@ck = Enj0y! http://beyeugroup.net/BYG/forum.php 60 BeYeuGroup - A Legend of Vietnamese Hackers World http://cin1team.biz/index.php 62 CiN1 Team - Cracking Is Number 1 http://diendancracker.com/ 23 diễn đàn crack, diễn đàn seo, crack việt nam http://forum.vncno1.com/ 23 VNC No.1 - VNC Family http://sinhvienit.net/forum/ 12 Diễn đàn - Cộng đồng sinh viên CNTT http://www.vhcteam.net/VHC/index.php 14 VHC TEAM http://vietmatrix.net/upload/index.php 29 Viet Matrix - VietNam Hacker Community http...

What Is Ethereum?

A t its core, Ethereum is a decentralized global software platform powered by Blockchain technology . It is most commonly known for its native cryptocurrency, ether, or ETH. Ethereum can be used by anyone to create any secured digital technology. It has a token designed for use in the blockchain network, but it can also be used by participants as a method to pay for work done on the blockchain. Ethereum is designed to be scalable, programmable, secure, and decentralized. It is the blockchain of choice for developers and enterprises that are creating technology based upon it to change the way many industries operate and how we go about our daily lives. How Does Ethereum Work? Vitalik Buterin, credited with conceiving of Ethereum, published a white paper to introduce it in 2014.  The Ethereum platform was launched in 2015 by Buterin and Joe Lubin, founder of the blockchain software company ConsenSys. The founders of Ethereum were among the first to consider the full potential of bloc...

HOW TO CREATE CARDANO SMART CONTRACTS?

  According to the Cardano blockchain, Cardano’s new Alonzo Hard Fork gained traction as soon as it was launched on the network. The Alonzo update was released and implemented on the mainnet on the 13th of September,2021. Smart contracts can now be developed and deployed on the mainnet as a result of this development. Alonzo provides Cardano with smart contract capabilities and enhances its functionality by incorporating the Plutus scripts written in a simple, functional language such as Solidity or Haskell and allowing users to place the scripts. With such a beneficial update around smart contracts on Cardano, we must learn about smart contract development on the Cardano platform. To begin with, let’s understand the basic definition of smart contracts. What are Smart Contracts? Smart contracts are pre-programmed, automatic digital agreements. They are self-executing and unchangeable. They do not entertain any activity of a middleman or the presence of any third parties. We can div...

What is Polkadot? (DOT)

The Beginner’s Guide to Polkadot Polkadot is a software that seeks to incentivize a global network of computers to operate a  blockchain  on top of which users can launch and operate their own blockchains. In this way, Polkadot is one of a number of competing blockchains aiming to grow an ecosystem of  cryptocurrencies , other notable examples of which include  Ethereum  (ETH),  Cosmos  (ATOM) and  EOSIO  (EOS).  However, Polkadot, launched in 2020, is among the newest, and it introduces a number of novel technical features toward its ambitious goal.  To begin, Polkadot is designed to operate two types of blockchains. A main network, called a relay chain, where transactions are permanent, and user-created networks, called parachains. Parachains can be customized for any number of uses and feed into the main blockchain, so that parachain transactions benefit from the same security of the main chain.  With this design, the Polkad...

What is Go? Golang Programming Language Meaning Explained

  Go, also known as Golang, is an open-source, compiled, and statically typed programming language designed by Google. It is built to be simple, high-performing, readable, and efficient. In this article, you'll learn: Where Go came from and where it is now, Why I think you should learn it, How to install and run it on Windows 10, and How to write your first "Hello World" program in Go Table of Contents What's the Name? Go or Golang? How Go Came into Existence Why you Should Learn Go How to Install and Run Go on Windows 10 How to Write your First Hello World in Go Conclusion What's the Name? Go or Golang? You might hear the language called both Go and Golang, which might be confusing. I once thought they were names for different languages. But Golang is just another name for Go – and Go remains the official name. Golang came from the domain name of the Go official website, golang.org. Which is actually really helpful, because “Golang” is much more searchable than ...

Ethereum Architecture

If you notice the diagram on the right, every client (browser) communicates with its own instance of the application. There is no central server to which all clients connect to. This means, in an ideal decentralized world, every person who wants to interact with a dapp (Decentralized Application) will need a full copy of the blockchain running on their computer/phone etc. That means, before you can use an application, you have to download the entire blockchain and then start using the application. We don't live in an ideal world and it is unreasonable to expect everyone to run a blockchain server to use these apps. But the idea behind decentralization is to not rely on a single/centralized server. So, the community has come up with solutions ( hosted blockchain servers , metamask etc.) where you don't have to spend lot of your hard disk and RAM downloading and running a full copy of the blockchain but also not compromise on the decentralized aspect. We will evaluate those opt...