You will need to check out the local laws in your country of residence to find out whether it’s lawful for you to mine cryptocurrencies.