Crypto mining in Iran is legal but tightly controlled. Miners must get licenses, pay high electricity rates, and face sudden bans during power shortages. State-backed operations ignore rules, making the environment risky for private and foreign miners.