Mining of bitcoins is actually the process of verifying other bitcoin transactions, which users are rewarded for. Bitcoin mining is legal and is accomplished by running SHA256 double round hash verification processes in order to validate Bitcoin transactions and provide the requisite security for the public ledger of the Bitcoin network.