Smart Contracts: Beyond Simple Transactions