Cryptocurrency mining is the process of validating transactions on a blockchain and ensuring it is validated and written on a block. Mining is carried out by miners who use costly computation equipment to provide consensus to a blockchain. Mining is mostly used by Proof-of-Work(PoW) consensus algorithm where the miner has to solve complex mathematical puzzles. They are rewarded for their work.