ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

Understanding the Bitcoin Mining Process

Updated on December 31, 2017

What is a Bitcoin? Where are they coming from? Anybody who wants to get into cryptocurrency mining with their eyes open has probably asked around to know how these currencies are being generated and probably got some vague answer like, “you generate a hash function which has zeroes at the end.”

This probably generated as many questions as the zeros you’re supposedly meant to look for but that ends today. I’m going to get into the nitty-gritty of crypto mining so that you understand precisely what you’re doing when you set up your mining tools.

Bitcoin Mining

Instead of government issued money, you are paid with Bitcoins for adding new pages to the Bitcoin record book.

The Mining Process

Let’s start with an anecdote. Let’s say you and your friends at work decide to start a savings group. In order to communicate more effectively and have instant record keeping, you start a mobile chat group maybe on Whatsapp or Telegram. Let’s call it Ice Savings. As money is sent in and out of the group kitty, the transactions are recorded by group messages like “500 Received from Isaac into Ice Savings Account.” If money is withdrawn to give to someone it’s also recorded.

This system will probably work quite well for a small group but as it grows and more people get in, it’s going to be a challenge to keep track of who sent what.

One of the problems that such a chat would face is security and many companies have responded by encrypting data. This works by passing the message through a function that changes it to something else. For example, I could create a simple encryption right here by making every letter and alphabet change to the next letter with Z and 9 going back to the first. If you type a message like “I Received 300” the moment you hit send it’s first changed to “J SfdfJwfe 411”. The only way you can interpret this message is by knowing how I encrypted it. On the other end, the other users could have the encryption key so that the message is translated back to “I received 300.” Only someone with that specific key can decrypt the message.

With the key in place, the messages are now secure, but it doesn’t answer the question of what would happen if no one was around to see your message. What if you post several messages at 3 AM when everyone else is asleep or on a public holiday? Wouldn’t one of those messages get overlooked?

You see Bitcoin is decentralized. Messages on a chat such as Whatsapp are normally stored on the company’s storage system but with Bitcoin, there is no company storage server. Think of it like a chat where the app exists on you and your friends’ phones with none having more administrative privileges than the rest. If all of you logged off where would the chat history go? If only one person were online what would prevent them from recording data three or four times and then overdrawing from the group kitty? I’d probably write there Victor sent 10000 a few times. Can’t double counting also occur when I decide to withdraw more than once from the amount put in?

To counter this problem, the transactions are recorded in sets called blocks and each block will record the transactions going in and the transactions going out. That way, if you had not deposited into the block then you cannot withdraw.

Who creates these blocks? Where are they stored? They are stored on every computer that is connected to the Bitcoin network. That’s why when downloading it needs to update from the time mining started to the current date.

I’ve already explained how cryptography works at a basic level, what I haven’t explained is how it works at a complex level. Cryptographers don’t use such a basic formula. It’s too easy. The current standard used is the SHA 256 which converts data into 256 bits long information. So encrypted data looks something like 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010

This is a very long set and on top of that it uses hexadecimal, not binary, so you’d have an easier time herding cats than decrypting it. In fact, it’s not yet been done. The function used to change the data is called the SHA 256 function. Every time data is entered and encrypted it produces a result. When some data is converted, it can produce a result that ends with a certain number of zeroes. That’s what you’re looking for when you are mining.

The process of mining is basically transmitting a number, having it interpreted by the SHA 256 function and seeing if the result has the desired number of zeroes. If your answer is wrong then you can try another number. If it is correct though, you get rewarded with some Bitcoins. Theoretically, it’s something you could do with a pen and paper. However, practically, the numbers being dealt with are extremely large, somewhere between one vigintillion and one centillion if we’re using Arabic numerals.

The purpose of these correct numbers is to create addresses or rather, new pages for record keeping.

Remember your group’s messages are not recorded anywhere, they are decentralized and so somewhere is needed to record the transactions. This is what the hash functions do. Every time a number is found it forms the header for a block or rather a section of the ledger and the person who found that combination is rewarded with Bitcoins. That block can then be used to store transactions’ information. When a transaction is done it is recorded on one of the blocks. Not only that but when transactions are done with your block then the transaction fee goes to you. Just like that, the need for someone to check up on transactions is removed.

How It Started

The process started by getting the first correct function and the creating the first ledger so the mining came before the blockchain. Now you mine and get your reward. After the reward, you can spend it anywhere where Bitcoin is recognized that includes buying other currencies. What’s driving the price up? Why do insiders think there are better options? Well, that’s an entirely different story for another day.


    0 of 8192 characters used
    Post Comment
    • Happymommy2520 profile image


      18 months ago from East Coast

      Great article. I have come across a few people that make great profits in bitcoin mining. Although it's not for me, I think it's a great, passive way to make money.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)