a survey of attacks on ethereum smart contracts .
On the Security and Performance of Proof of Work Blockchains