Optional reading: "Hawk: The Blockchain Model of Cryptography and Privacy-Preserving Smart Contracts"

Click hawk.pdf link to view the file.