What is bitcoin mining and how does it work to mine bitcoins?We’ve talked to you before about what bitcoins are, but in today’s article we’re going to go a little further.We are going to explain to you what it is to mine bitcoins and what is the purpose of mining bitcoins.Where do the bitcoins come from?Unlike traditional monetary systems, where governments print currency when they need it, bitcoins work in a different way. Not being a currency, there is no way to print it as such.How do the bitcoins appear then? Very simple, they are discovered. As if it were gold fever, computers around the world “Minan” in search of coins competing with each other.What is the purpose of mining bitcoins?People send bitcoins through the bitcoin network constantly, but unless you keep a record of those transactions, nobody would be able to monitor if someone has paid something. The bitcoin network takes care of this by collecting all transactions made during a certain period in a list, better known as a block. What a miner does, would be to confirm those transactions and write them as if it were an account book, this is known as Blockchain or block chain.A blockchain is a small file, similar in size to a text message on your mobile. This account book is a very long list of blocks, in which any transaction made anywhere in the chain can be explored. When a new transaction block is created it is added to the blockchain, creating a very long list of all transactions that have been made in the bitcoin network.Each blockchain consists of 3 parts, two of which are very simple:Identify the address (Approximately 34 characters)The history of who has bought and sold. (The account book).The third part, is the Private Key Header Log.To create hashThe miners take the information from a block, apply a mathematical formula and transform it into something different. Create a new, much shorter sequence of apparently random numbers and letters. This sequence is known as hash. The hash is stored inside the block, where it is the end of the chain at that moment.This allows the system to sort the information more quickly and to be found easily but it is a slow and cumbersome process and that is why the miners are needed to do it.But, the miners not only use the transactions of a block to generate a hash, they also use another type of data and one of them is the last part of the last block added to the chain, the header.The header of the blocks is where a sophisticated digital signature is captured to confirm each and every one of the transactions in that bitcoins file. Here a hash is created using the hash of the previous block as an aid.These digital signatures are the security system that bitcoins use: each and every one of the transactions in a chain of blocks are registered and publicly displayed and with the signature of the digital participant attached to it as a confirmation. Therefore, the blockchain is always protected by design.For example, if you tried to forge a transaction by changing a block that was just added to the blockchain, the hash of that block would also change. So as soon as someone looked at the authenticity, he would easily realize that he is facing a forgery, since the hash would not be the same as the previous block in the blockchain and that block would be cataloged at once as false.How much is earned by mining bitcoins?Each time a person successfully creates a new hash, he receives 25 bitcoins as a reward (Currently, a bitcoin equals $ 15,075), the blockchain is updated and everyone in the network finds out about it. That is the incentive that is given for people to continue mining and for transactions to continue to be recorded.But the main problem with this is that it is extremely easy to create hash from the collected data. So the bitcoin network needs to make it more difficult so that all bitcoins are not mined in a matter of minutes and the currency is devalued. For that a protocol known as “Work Test” is created that makes it more expensive and difficult.That protocol does not accept any old hash. Ask that the hash of each block be in a certain way; for example, it has to have a certain number of zeros at the beginning. There is no way to say what a hash will be until you create it, and as soon as you include a new piece of data in the mix, the hash will be completely different.Miners in principle do not interact with the data of the block transactions, but they must change the data they use to create a different hash. This is achieved by using another piece of data known as NONCE. This is used with the transaction data to create a hash. If the hash does not fit the required format, the NONCE changes and becomes “hashear”.It can take many tries to find a NONCE that works, and all the miners in the network are trying to do it at the same time. And that’s how miners earn their bitcoins.We will bring to you the best mining accessories in the market in our next article. Until then happy reading!