How to build a Blockchain