Financial Mathematics for Cryptocurrencies