The Basics of Bitcoins and Blockchains