Mining serves as the bedrock role in the foundation of Bitcoin, guaranteeing its decentralized nature. It involves the complex process of confirming transactions on the blockchain, which is essentially a distributed ledger recording all Bitcoin transfers. Miners employ sophisticated computers to solve complex mathematicalchallenges, competing again