Your income from mining cryptocurrency will be ordinary. Accordingly, you can invest this income into a qualified opportunity fund (QOF), but you will not obtain any of the associated tax benefits for your investment. When you sell or otherwise dispose of the mined cryptocurrency, you can invest any resulting capital gain into a QOF and the investment will qualify for the associated tax benefits.