a survey of attacks on ethereum smart contracts .
Step by Step Towards Creating a Safe Smart Contract: Lessons and Insights from a Cryptocurrency Lab