Bitcoin will be legal in Russia, while the government plans to regulate mining.