The Efficiency of Smart Contracts and Blockchain