The Double Spending Problem and Cryptocurrencies