Jump to content

Smart contract: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
History: restoring info about Szabo with a better reference
Fazolous (talk | contribs)
m History: citation added
Line 10: Line 10:
==History==
==History==
Smart contracts were first proposed by [[Nick Szabo]], who coined the term.<ref>{{cite web |url=http://fortune.com/2014/01/21/bitcoin-is-not-just-digital-currency-its-napster-for-finance/ |title=Bitcoin is not just digital currency. It’s Napster for finance |last=Morris |first=David Z. |date=21 January 2014 |website=[[Fortune (magazine)|Fortune]] |accessdate=7 November 2018}}</ref>
Smart contracts were first proposed by [[Nick Szabo]], who coined the term.<ref>{{cite web |url=http://fortune.com/2014/01/21/bitcoin-is-not-just-digital-currency-its-napster-for-finance/ |title=Bitcoin is not just digital currency. It’s Napster for finance |last=Morris |first=David Z. |date=21 January 2014 |website=[[Fortune (magazine)|Fortune]] |accessdate=7 November 2018}}</ref>
With the present implementations, based on [[Blockchain (database)|blockchains]],<ref>{{cite web|last1=Stafford|first1=Philip|last2=Murphy|first2=Hannah|title=Has the blockchain hype finally peaked?|url=https://www.ft.com/content/5e48f9ec-b651-11e6-ba85-95d1533d9a62|website=ft.com|publisher=Financial Times|accessdate=1 June 2017}}</ref> "smart contract" is mostly used more specifically in the sense of general purpose computation that takes place on a blockchain or distributed ledger. In this interpretation, used for example by the Ethereum Foundation<ref name=":3">{{cite web|last1=Buterin|first1=Vitalik|title=Ethereum Whitepaper|url=https://github.com/ethereum/wiki/wiki/White-Paper/f18902f4e7fb21dc92b37e8a0963eec4b3f4793a|website=github|accessdate=1 June 2017}}</ref> or IBM,<ref>{{cite web|last1=Cachin|first1=Christian|title=Architecture of the Hyperledger Blockchain Fabric|url=https://www.zurich.ibm.com/dccl/papers/cachin_dccl.pdf|website=ibm.com}}</ref> a smart contract is not necessarily related to the classical concept of a contract, but can be any kind of computer program.
With the present implementations, based on [[Blockchain (database)|blockchains]],<ref>{{cite web|last1=Stafford|first1=Philip|last2=Murphy|first2=Hannah|title=Has the blockchain hype finally peaked?|url=https://www.ft.com/content/5e48f9ec-b651-11e6-ba85-95d1533d9a62|website=ft.com|publisher=Financial Times|accessdate=1 June 2017}}</ref> "smart contract" is mostly used more specifically in the sense of general purpose computation that takes place on a blockchain or distributed ledger. In this interpretation, used for example by the Ethereum Foundation<ref name=":3">{{cite web|last1=Buterin|first1=Vitalik|title=Ethereum Whitepaper|url=https://github.com/ethereum/wiki/wiki/White-Paper/f18902f4e7fb21dc92b37e8a0963eec4b3f4793a|website=github|accessdate=1 June 2017}}</ref> or IBM,<ref>{{cite web|last1=Cachin|first1=Christian|title=Architecture of the Hyperledger Blockchain Fabric|url=https://www.zurich.ibm.com/dccl/papers/cachin_dccl.pdf|website=ibm.com}}</ref> a smart contract is not necessarily related to the classical concept of a contract, but can be any kind of computer program.<ref>{{Cite news|url=https://www.ethos.io/smart-contracts|title=Smart Contracts Explained: What Are Smart Contracts?|work=Ethos|access-date=2018-11-19|language=en-US}}</ref>


In 2018, a [[US Senate]] report said: "While smart contracts might sound new, the concept is rooted in basic contract law. Usually, the judicial system adjudicates contractual disputes and enforces terms, but it is also common to have another arbitration method, especially for international transactions. With smart contracts, a program enforces the contract built into the code."<ref name=usSenate201803>[https://www.jec.senate.gov/public/_cache/files/aaac3a69-e9fb-45b6-be9f-b1fd96dd738b/chapter-9-building-a-secure-future-one-blockchain-at-a-time.pdf Chapter 9: Building a Secure Future, One blockchain at a time], [[US Senate]] [[Joint Economic Committee]], March 2018.</ref>
In 2018, a [[US Senate]] report said: "While smart contracts might sound new, the concept is rooted in basic contract law. Usually, the judicial system adjudicates contractual disputes and enforces terms, but it is also common to have another arbitration method, especially for international transactions. With smart contracts, a program enforces the contract built into the code."<ref name=usSenate201803>[https://www.jec.senate.gov/public/_cache/files/aaac3a69-e9fb-45b6-be9f-b1fd96dd738b/chapter-9-building-a-secure-future-one-blockchain-at-a-time.pdf Chapter 9: Building a Secure Future, One blockchain at a time], [[US Senate]] [[Joint Economic Committee]], March 2018.</ref>

Revision as of 04:55, 19 November 2018

A smart contract is a computer protocol intended to digitally facilitate, verify, or enforce the negotiation or performance of a contract. Smart contracts allow the performance of credible transactions without third parties. These transactions are trackable and irreversible.

Proponents of smart contracts claim that many kinds of contractual clauses may be made partially or fully self-executing, self-enforcing, or both. The aim of smart contracts is to provide security that is superior to traditional contract law and to reduce other transaction costs associated with contracting. Various cryptocurrencies have implemented types of smart contracts.

History

Smart contracts were first proposed by Nick Szabo, who coined the term.[1] With the present implementations, based on blockchains,[2] "smart contract" is mostly used more specifically in the sense of general purpose computation that takes place on a blockchain or distributed ledger. In this interpretation, used for example by the Ethereum Foundation[3] or IBM,[4] a smart contract is not necessarily related to the classical concept of a contract, but can be any kind of computer program.[5]

In 2018, a US Senate report said: "While smart contracts might sound new, the concept is rooted in basic contract law. Usually, the judicial system adjudicates contractual disputes and enforces terms, but it is also common to have another arbitration method, especially for international transactions. With smart contracts, a program enforces the contract built into the code."[6]

Implementations

Byzantine fault tolerant algorithms allowed digital security through decentralization to form smart contracts. Additionally, the programming languages with various degrees of Turing-completeness as a built-in feature of some blockchains make the creation of custom sophisticated logic possible.[3]

Notable examples of implementation of smart contracts are:

  • Bitcoin also provides a Turing-incomplete Script language that allows the creation of custom smart contracts on top of Bitcoin like multisignature accounts, payment channels, escrows, time locks, atomic cross-chain trading, oracles, or multi-party lottery with no operator.[7]
  • Ethereum implements a nearly Turing-complete language on its blockchain, a prominent smart contract framework.[8]
  • RootStock (RSK) is a smart contract platform that is connected to the Bitcoin blockchain through sidechain technology. RSK is compatible with smart contracts created for Ethereum.[9][10][11]
  • Ripple (Codius), smart contract development halted in 2015

Replicated titles and contract execution

Szabo proposes that smart contract infrastructure can be implemented by replicated asset registries[12] and contract execution using cryptographic hash chains and Byzantine fault tolerant replication. Askemos implemented this approach in 2002[13][14] using Scheme (later adding SQLite[15][16]) as contract script language.[17]

One proposal for using bitcoin for replicated asset registration and contract execution is called "colored coins".[18] Replicated titles for potentially arbitrary forms of property, along with replicated contract execution, are implemented in different projects.

As of 2015, UBS was experimenting with "smart bonds" that use the bitcoin blockchain[19] in which payment streams could hypothetically be fully automated, creating a self-paying instrument.[20]

Security issues

A smart contract is "a computerized transaction protocol that executes the terms of a contract".[21] 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 yet may not be quickly fixed.[22]

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.[23] The DAO program had a time delay in place before the hacker could remove the funds; a hard fork of the Ethereum software was done to claw back the funds from the attacker before the time limit expired.[24]

Issues in Ethereum smart contracts, in particular, include ambiguities and easy-but-insecure constructs in its contract language Solidity, compiler bugs, Ethereum Virtual Machine bugs, attacks on the blockchain network, the immutability of bugs and that there is no central source documenting known vulnerabilities, attacks and problematic constructs.[8]

See also

References

  1. ^ Morris, David Z. (21 January 2014). "Bitcoin is not just digital currency. It's Napster for finance". Fortune. Retrieved 7 November 2018.
  2. ^ Stafford, Philip; Murphy, Hannah. "Has the blockchain hype finally peaked?". ft.com. Financial Times. Retrieved 1 June 2017.
  3. ^ a b Buterin, Vitalik. "Ethereum Whitepaper". github. Retrieved 1 June 2017.
  4. ^ Cachin, Christian. "Architecture of the Hyperledger Blockchain Fabric" (PDF). ibm.com.
  5. ^ "Smart Contracts Explained: What Are Smart Contracts?". Ethos. Retrieved 2018-11-19.
  6. ^ Chapter 9: Building a Secure Future, One blockchain at a time, US Senate Joint Economic Committee, March 2018.
  7. ^ Atzei, Nicola; Bartoletti, Massimo; Cimoli, Tiziana; Lande, Stefano; Zunino, Roberto (2018), "SoK: unraveling Bitcoin smart contracts" (PDF), 7th International Conference on Principles of Security and Trust (POST), European Joint Conferences on Theory and Practice of Software
  8. ^ a b Atzei, Nicola; Bartoletti, Massimo; Cimoli, Tiziana (2017), "A survey of attacks on Ethereum smart contracts" (PDF), 6th International Conference on Principles of Security and Trust (POST), European Joint Conferences on Theory and Practice of Software
  9. ^ Thomas Bocek (15 September 2017). Digital Marketplaces Unleashed. Springer-Verlag GmbH. pp. 169–184. ISBN 978-3-662-49274-1.
  10. ^ "Trust in Smart Contracts is a Process, As Well" (PDF).
  11. ^ "Scripting smart contracts for distributed ledger technology" (PDF).
  12. ^ Nick Szabo (2005). "Secure Property Titles with Owner Authority". Archived from the original on January 15, 2014. Retrieved January 12, 2014. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  13. ^ Jörg F. Wittenberger (2002). "Askemos a distributed settlement". {{cite web}}: Unknown parameter |booktitle= ignored (help)
  14. ^ "Proceedings of International Conference on Advances in Infrastructure for e-Business, e-Education, e-Science, and e-Medicine on the Internet" (PDF).
  15. ^ Martin Möbius (2009). "Erstellung eines Archivierungskonzepts für die Speicherung rückverfolgbarer Datenbestände im Askemos-System".
  16. ^ Tom-Steve Watzke (2010). "Entwicklung einer Datenbankschnittstelle als Grundlage für Shop-Systeme unter dem Betriebssystem Askemos".
  17. ^ RA Markus Heinker (2007). "Beweiswürdigung elektronischer Dokumente im Zivilprozess unter vergleichender Betrachtung von qualifizierten elektronischen Signaturen nach dem Signaturgesetz und dem Askemos-Verfahren".
  18. ^ Hal Hodson (20 November 2013). "Bitcoin moves beyond mere money". New Scientist. Retrieved 12 January 2014.
  19. ^ Ross, Rory (2015-09-12). "Smart Money: Blockchains Are the Future of the Internet". Newsweek. Retrieved 2016-05-27.
  20. ^ Wigan, David (2015-06-11). "Bitcoin technology will disrupt derivatives, says banker". IFR Asia. Retrieved 2016-05-27.
  21. ^ 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.
  22. ^ 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.
  23. ^ DuPont, Quinn (2017). "Experiments in Algorithmic Governance: A history and ethnography of "The DAO", a failed Decentralized Autonomous Organization" (PDF). Archived from the original (PDF) on 2017-07-30. Retrieved 29 July 2017. {{cite web}}: Unknown parameter |dead-url= ignored (|url-status= suggested) (help)
  24. ^ Coy, Peter; Kharif, Olga (25 August 2016). "This Is Your Company on Blockchain". Bloomberg Businessweek. Retrieved 2016-12-05.