Cryptocurrencies: a gentle introduction