Step by Step Towards Creating a Safe Smart Contract: Lessons and Insights from a Cryptocurrency Lab
How to Use Bitcoin to Design Fair Protocols