# Cryptocurrency Mining 101 | How It Works

Blockchain technology and cryptocurrencies have grown to become a trending and hot topic in a relatively short amount of time. Perhaps youโve even heard people around you saying โIโm mining cryptoโs, itโs awesome!โ

But what is crypto mining, exactly? And how does it work?

In this article, Iโll be explaining some basic crypto terms as well as everything you need to know about the basic concept of crypto mining.

## Basic Crypto Terms

### 1.ย ย (Centralized) Ledger

In short, the chain of transactions within a network are linked to each other and stored on a ledger. Itโs basically a record of financial transactions.

Now, a centralized ledger means that all the chains (transaction data) are stored in one particular ledger.

### 2.ย ย Distributed Ledger

In essence, the distributed ledger is similar to the centralized ledger, however, the transactions of the network arenโt stored on one ledger. Instead, the distributed ledger is a decentralized version, which means that everyone in the network owns a copy of the ledgerโs data on a node.

### 3.ย ย Node

In crypto terms, a node stands for a device that every single participant in the network possesses. When you join a network, youโll have to download a copy of the latest version of the ledger.

As __Lisk__ describes it:

*โThe role of a node is to support the network by maintaining a copy of a blockchain and, in some cases, to process transactions.โ*

### 4.ย ย Blocks

The blockย in the __blockchain__ is an expanding list of financial records and data, linked to each other using cryptography.

The blocks in the chain are linked to through โhashing.โ In the next paragraph, Iโll explain what hashing means. (You can check out Pixel Privacy’s Blockchain 101 here:ย https://pixelprivacy.com/resources/what-is-the-blockchain/ )

### 5.ย ย Hashing

The term โhashingโ stands for the process of taking a particular input of a certain length and turning it into cryptographic output through a mathematical algorithmic process.

Meaning, the input contains and represents every single piece of data (financial information) that has happened in the blockchain. So, hashing means that every single transaction in combination with a new transaction, generates a new hash output. The hash is formed by all the previous transactions in the blockchain.

### 6.ย ย Hash of the previous block

Every block in the chain contains the output of the previous hash as well as the newly generated hash input through the mathematical process.

### 7.ย ย Proof of Work (PoW)

__BlockGeeks defines โProof of Workโ__ as the following:

*โProof of work is a requirement to define an expensive computer calculation, also called mining, that needs to be performed in order to create a new group of trustless transactions (the so-called block) on a distributed ledger called blockchain.โ*

Since youโre familiar with all the basic crypto terms, letโs take a deeper look at what crypto mining is, how the process works and why people โmine.โ

## Crypto Mining

Crypto miners validate new transactions within a distributed ledgerโs network. Letโs take a closer look at a simplified example to get a better understanding their function.

Imagine that youโre in a network with 4 friends and you want to send $100 to one of your friends. By doing so, you automatically share and publish a transaction request to the network.

Now, all of your friends will receive a message that you published this transaction request. Note: at this point the transaction *has not* been validated yet, meaning itโs not recorded and stored on the ledger yet.

In order to validate your transaction and execute it, another principle of crypto is required: โmining.โ Simply put, mining means solving complex calculations based on the hash data.

In a distributed ledger, miners also possess a node in the network – since itโs a public network and anyone can join. These miners execute an essential process of cryptography and compete with other miners in the ledger. The miners are required to solve a complex mathematical problem.

Miners have to invest a lot of computing resources to the network to solve these complex mathematical problems. So, the more computing resources a miner has, the higher the chance they have to solve the problem the fastest.

The math is extremely complicated. All that you need to know is that every node has the algorithm built into it. So, the software on the node is automatically receiving and calculating mathematical problems. The new โhash keyโ that needs to be identified is random and therefore takes a lot of time to โguess.โ

The miner who solves the math the quickest receives a financial reward, similar to winning a prize. For example, Bitcoin miners will receive their reward paid out in Bitcoin.

Once a miner has solved the โpuzzleโ to find the new key the fastest, the miner has to synchronize the distributed ledger across the entire network.

In short, the miner adds your validated transaction to his node and publishes the solution to the network. The miner is basically saying โHey guys, Iโve solved the puzzle, hereโs the answer.โ The new key generated by the miner is then used by your friends in the network to add it to their node as well.

After that, all the distributed ledgers on the network are updated and contain the exact same hash key and chain of transactions.