Scripting smart contracts for distributed ledger technology
a survey of attacks on ethereum smart contracts .