Cryptocurrencies and blockchains
What is crypto mining? That’s the process of validating blocks on the blockchain by solving mathematical problems by the computer of anyone on the planet, even you. The miner gets back a % of the mined cryptos to be rewarded.
Cryptocurrency is a combination of two words; “Crypt” and “Currency” Crypt means hidden, vault and currency is a medium of exchange or what is commonly known, money. Cryptocurrency, therefore, is a virtual or digital currency, also called crypto. Digital currencies are protected by what is known as cryptography which is a method where a code is used to protect information and allow access to authorized users only.
Cryptocurrencies do not just exist, they live on blockchains. A blockchain is a structure of data. This data includes transactional records and security protocol that protects the user from possible hacks. Blockchains do not have a central authority that commands their operations therefore they are decentralized. Unless specified most blockchains are transparent although there are some blockchains that are private, an example is Monero XMR.
Blockchain was invented by Satoshi Nakamoto, the mysterious person or group that invented Bitcoin. Nakamoto started the blockchain when they were starting Bitcoin making it the mother of all blockchains. Coins that were created after Bitcoin are called altcoins, they are an alternative to Bitcoin.
What is crypto mining? Two different kinds of mining
Crypto mining is validating transactions and putting new coins into the blockchain. It is worth noting that not all coins can be mined, for example Ripple XRP. Mining occurs in two different forms: Proof of Work and Proof of Stake.
- Proof of Work is where miners find and solve difficult mathematical problems. Miners then get rewarded for successfully solving the problem and bringing a new block into the blockchain. Proof of Work is a competition so however solves it first gets the rewarded for the work. This algorithm requires a lot of power and may require cost validators their coins to manage.
- Proof of Stake on the other hand is a consensus that allows a node to mine depending on the number of coins the nodes holds. Proof of Stake does not need too much power to run because it’s only a given number of users who have a certain number of coins. Although validation of transactions may seem easy with Proof of Stake, a node will need 51% of all the available coins of a given cryptocurrency to validate a fraud block. This is impractical with the market capitalization of most coins.
The target block is a hashed number, a numeric value that is less than or equal to the new block to be mined. The process of mining begins with a coin base transaction where the miner sends themselves a mining reward to initiate a new block. The first step of the hash then follows where every transaction is added to the hash.
What is crypto mining? To hash transactions
When every transaction is hashed they are organized into a single tree and then they are organized in pairs with the previous transactions which also get hashed. The outcome is then organized into pairs and hashed with previous transactions. The process is repeated until a top of all transactions is achieved. The top of all the transactions is what is called the root of the hash which is a representation of all previous transactions.
The new hash next to the preceding block hash and with a random number called a Nonce is placed as the block’s header. The output is produced after hashing the new hash, the previous hash and the Nonce with a few other parameters producing an identity of the nominated block.
What is crypto mining? To create blocks
Miners have to repeat hashing the header using the Nonce until a new block is produced. The protocol keeps everything balanced, it ensures the value is lower than a certain target value. It secures the hashing difficulty level for mining a block at constant and that same power required for mining remains the same. It raises when new miners join the pool and lower when some of the miners leave keeping mining time constant.
When a successful hash is found, the initial miner launches the block into the blockchain. Other nodes examine the validity of the new block and add it to their copy in the blockchain. In the case of an orphan block; when a valid block is broadcasted by two miners at the same time. Miners will hash using the block they received first until they mine a new block and the hash used receives the reward.
We truly hope you liked this article ! Share it or write a comment if you have any question.