Although it is typically legal to generate cryptocurrencies, some nations and jurisdictions have banned or restricted them. For example, since 2017, China has prohibited collecting money through virtual currencies, and all cryptocurrency transactions have been prohibited since then.