The Security Vulnerabilities of Blockchain and How to Stay Safe