Smart contract
Smart contracts are computer protocols that facilitate, verify, or enforce the negotiation or performance of a contract, or that make a contractual clause unnecessary. Smart contracts usually also have a user interface and often emulate the logic of contractual clauses. Proponents of smart contracts claim that many kinds of contractual clauses may thus be made partially or fully self-executing, self-enforcing, or both. Smart contracts aim to provide security superior to traditional contract law and to reduce other transaction costs associated with contracting.
The real world implementation of a smart contract that gained mainstream coverage was The DAO, a distributed autonomous organization for venture capital funding, which was launched with US$150 million in crowdfunding in May 2016 and was hacked and drained of approximately US$50 million in cryptocurrency three weeks later.[1]
History
The phrase "smart contracts" was coined by computer scientist Nick Szabo in 1994, to emphasize the goal of bringing what he calls the "highly evolved" practices of contract law and related business practices to the design of electronic commerce protocols between strangers on the Internet. Szabo's 1994 description was:[2]
A smart contract is a computerized transaction protocol that executes the terms of a contract. The general objectives are to satisfy common contractual conditions (such as payment terms, liens, confidentiality, and even enforcement), minimize exceptions both malicious and accidental, and minimize the need for trusted intermediaries. Related economic goals include lowering fraud loss, arbitrations and enforcement costs, and other transaction costs.
Szabo, inspired by researchers like David Chaum, also had a broader expectation that specification through clear logic, and verification or enforcement through cryptographic protocols and other digital security mechanisms, might constitute a sharp improvement over traditional contract law, even for some traditional kinds of contractual clauses (such as automobile security interests that provide for repossession) that could be brought under the dominion of computer protocols.[3]
In a 2013 paper, Mark Miller and others have stressed capabilities[4] as the security basis of smart contracts, in contrast to Chaum and other researchers in the financial cryptography community who have emphasized advanced cryptographic protocols to bring security and privacy to digital money, credentials, contract signing, auctions, and other commercial mechanisms.
Several formal languages have been developed or proposed for specifying contractual clauses.[5][6][7] The IEEE has held two workshops on electronic contracting,[8] which have furthered this research.
Within the recent hype around blockchain,[9] "smart contract" is mostly used more specifically in the sense of general purpose computation that takes place on a blockchain.[10] In this interpretation a smart contract is not necessarily related to the classical concept of a contract, but can be any kind of computer program.
Security issues
A smart contract is "a computerized transaction protocol that executes the terms of a contract,"[2] it is not inherently "smart" as a separate attribute of contract type.[11] A blockchain-based smart contract is visible to all users of said blockchain. However, this leads to a situation where bugs, including security holes, are visible to all but may not be able to be quickly fixed.[12] Such an attack, difficult to fix quickly, was successfully executed on The DAO in June 2016, draining US$50 million in Ether while developers attempted to come to a solution that would gain consensus.[1] The program on the blockchain had time requirements in place before the hacker could access the funds, and remove funds from The DAO contract. A hard fork of the blockchain was done to claw back the funds from the attacker before the time limit expired.[13]
Replicated titles and contract execution
A smart contracts infrastructure can be implemented by replicated asset registries[14] and contract execution using cryptographic hash chains and Byzantine fault tolerant replication. Each node in the peer-to-peer network acts as a title registry and escrow, executing changes of ownership and automatically checkable rules governing those transactions, and checks the same work of other nodes. Askemos implemented this approach in 2002 using Scheme as contract script language. Cryptocurrencies such as bitcoin have implemented special cases of such registries, where the property is money. Bitcoin and many of its spin-offs contain mechanisms to enable more general property titles and contract execution. Code supporting this is a latent part of the bitcoin protocol, based on probabilistic and anonymous (proof-of-work based) Byzantine replication. One proposal for using bitcoin for replicated asset registration and contract execution is called "colored coins".[15] A replicated domain name registry is implemented in Namecoin; replicated titles for potentially arbitrary forms of property, along with replicated contract execution, are implemented in Crypti, Ripple, Mastercoin and Ethereum.[16][17] NXT[18] implements replicated property titles based on proof-of-stake in the underlying currency.
Smart contracts can be implemented with the Ricardian Contract design pattern.[19][20]
Applications may include financial instruments such as bonds, shares, and derivatives, assurance contracts, and other instruments and transactions where the nodes can monitor the events on which the smart contract rules are conditioned. Advantages of a smart contract over its equivalent conventional financial instrument include minimizing counterparty risk, reducing settlement times, and increased transparency.[21] As of 2015, UBS was experimenting with "smart bonds" that use the bitcoin blockchain[22] in which payment streams could be fully automated, creating a self-paying instrument.[23]
In popular culture
Permanence (2002) by Karl Schroeder features a "rights economy" in which all physical objects are nano-tagged with contractual requirements so that payment may be enforced for all uses of proprietary information, e.g. a military mission in deep space must continuously justify the cost-benefit ratio of their mission to the ship or it will stop working.
See also
- Code and Other Laws of Cyberspace
- Decentralized autonomous organization
- Ethereum
- Secure multiparty computation
References
- 1 2 Price, Rob (17 June 2016). "Digital currency Ethereum is cratering amid claims of a $50 million hack". Business Insider. Retrieved 17 June 2016.
- 1 2 Tapscott, Don; Tapscott, Alex (May 2016). The Blockchain Revolution: How the Technology Behind Bitcoin is Changing Money, Business, and the World. pp. 72, 83, 101, 127. ISBN 978-0670069972.
- ↑ Nick Szabo. "Formalizing and Securing Relationships on Public Networks". First Monday.
- ↑ Miller, Van Cutsem, and Tulloh (2013). "Distributed Electronic Rights in JavaScript".
- ↑ "Welcome to ERights.Org". erights.org.
- ↑ "A Formal Language for Analyzing Contracts". vwh.net.
- ↑
- ↑ http://tab.computer.org/tcec/cec04/programWEC.html
- ↑ https://www.google.ch/trends/explore?q=blockchain
- ↑ http://www.multichain.com/blog/2015/11/smart-contracts-slow-blockchains/
- ↑ https://medium.com/blockchain-hub/to-fork-of-not-to-fork-a9b077718fe3#.xk7ojtacq
- ↑ Peck, M. (28 May 2016). "Ethereum's $150-Million Blockchain-Powered Fund Opens Just as Researchers Call For a Halt". IEEE Spectrum. Institute of Electrical and Electronics Engineers.
- ↑ This Is Your Company on Blockchain, Business Week, 25 August 2016, accessed 5 September 2016.
- ↑ Nick Szabo (2005). "Secure Property Titles with Owner Authority". Retrieved January 12, 2014.
- ↑ Hal Hodson (20 November 2013). "Bitcoin moves beyond mere money". New Scientist. Retrieved 12 January 2014.
- ↑ "Ethereum: A Next-Generation Generalized Smart Contract and Decentralized Application Platform". Retrieved 12 January 2014.
- ↑ http://blockgeeks.com/guides/what-is-ethereum-a-step-by-step-beginners-guide
- ↑ "Bitcoin Descendant NXT Features 100% New Code, Green Mining, Decentralized Trading, More". Yahoo Finance. 23 December 2013. Retrieved 12 January 2014.
- ↑ Grigg (2015). "The Sum of all Chains - Lets Converge". Coinscrum.
- ↑ Clack; et al. (2016). "Smart Contract Templates: foundations, design landscape and research directions" (PDF).
- ↑ "Blockchain Technology: Preparing for Change" (PDF). Accenture.
- ↑ Ross, Rory (2015-09-12). "Smart Money: Blockchains Are the Future of the Internet". Newsweek. Retrieved 2016-05-27.
- ↑ Wigan, David (2015-06-11). "Bitcoin technology will disrupt derivatives, says banker". IFR Asia. Retrieved 2016-05-27.
External links
- The Idea of Smart Contracts
- erights.org: Smart Contracts
- The E Language: Cryptographic Capabilities for Distributed Smart Contracting
- The Digital Path: Smart Contracts and the Third World
- "Late on payments? Device won't let car engine start."
- Open-Transactions: open-source Smart Contracts