The Economic Structure of Cryptocurrencies