legalized cryptocurrency mining