Introduction to blockchains