The European Commission has formally proposed legislation that will provide a comprehensive regulatory regime for cryptocurrencies.