Essays on cryptocurrencies