How cryptocurrencies work and how to earn them