The basics of Bitcoins and blockchains