Appearance
What are smart contracts?
On January 8th 2009, an email arrived on a cryptography mailing list, a niche forum frequented by a small group of privacy and security enthusiasts. The sender was Satoshi Nakamoto, a pseudonymous developer who had just launched a project he called Bitcoin, described simply as an open-source peer-to-peer digital cash system[1]. He had shared its white paper on the same list two months earlier.
The mailing list had seen many ambitious ideas before, most of which quickly faded into obscurity. But Hal Finney, a respected cryptographer and long-time contributor to the list, took notice. Reflecting later on these early days, Hal wrote:
"When Satoshi announced Bitcoin on the cryptography mailing list, he got a skeptical reception at best. Cryptographers have seen too many grand schemes by clueless noobs. They tend to have a knee jerk reaction. I was more positive. I had long been interested in cryptographic payment schemes... So I found Bitcoin facinating [sic]."[2]
Finney had good reason to be interested. Bitcoin was the turning point in an experiment that had been running for more than twenty-five years, and one he had been a part of. It began in 1982, when the cryptographer David Chaum proposed a way of making digital payments as private as cash. He founded DigiCash in 1990 to bring it to market with the project's 'e-cash' hiding who was spending. Still, it required a bank to keep track of spent coins, and when too few banks and merchants adopted its technology, it went bankrupt[3]. Around the same time a similar project, e-gold, launched, this time growing to millions in accounts. However, it also relied on one company's centralised ledger, and US prosecutors eventually brought it down[4].
Over the same period, others went to work attempting to remove the ledger-keeper entirely. Adam Back's Hashcash put proof of work to use in 1997, Wei Dai's b-money and Nick Szabo's bit gold imagined money with no one in charge, and Finney's own RPOW came close in 2004, but still ran on a single server[5]. The problem remained. How can strangers, who don't trust each other, agree on one true ledger without outsourcing the role to a trusted third party?
Szabo, who had worked at DigiCash, could see, though, that solving this issue would open up far more than money[6].
Consider the legal system for a moment. If you make an agreement with someone, how can you be sure that they will follow through? That question alone is at the heart of an entire legal field known as contract law. If a contract isn't followed, disputes are mediated by a whole host of third parties, lawyers, judges and courts who, in each case, act as trusted intermediaries. A contract, in other words, is only as good as the third parties standing behind to enforce it.
The same is true of the modern monetary system. Earlier sections already explained the role banks play in processing transactions and charging a fee. On top of this, today, banks play a fundamental role in creating money, with most of the money in the world existing today as digital bank deposits rather than as physical banknotes and coins. To explain, when you borrow £100 from a bank, the bank does not hand you other people's savings. It simply adds £100 to your account as a line of credit and records a matching loan on its books. New money is created as a result. You now owe the bank the loan, and the bank owes you the money in your account. This is how most of the money in the world is produced, by loan agreements, which are themselves contracts.[7] And like any contract, they depend on third parties to uphold them. The bank that keeps the records and the legal system that enforces repayment.
As early as 1994, Nick Szabo theorised that the third parties in any agreement could, in principle, be replaced by code. He put forward the term "smart contracts" to describe this, a computerised version of agreements, or in his words, "a computerized transaction protocol that executes the terms of a contract". One of its aims, he wrote, was to "minimize the need for trusted intermediaries".[8] Rather than relying on a court to enforce it after the fact, a smart contract would carry out its own terms automatically, exactly as written. Applied to money, the idea goes further. If a contract could enforce its own terms, then the two things banks do, keeping the record of every transaction and creating new money through loans, could also be done by code.
With Bitcoin's cryptography and blockchain removing the need for trusted ledger-keepers, this would soon become a reality.
In fact, Bitcoin itself already contained a simple version of the idea. Every Bitcoin transaction is a small program that releases value once its conditions are met, such as a valid signature. Its built-in scripting language also allows a handful of other arrangements, such as payments which only execute on a certain date and accounts that need multiple signatures to make a transaction. But Bitcoin's scripting was deliberately kept simple, and limited to a few uses[9]. Building anything more ambitious meant either bending Bitcoin to purposes it was never designed for, or starting a new blockchain from scratch.
This was the problem a teenage programmer named Vitalik Buterin set out to solve. He first heard about Bitcoin in 2011 from his father, Dmitry, and was sceptical at first, wondering how money with no real-world backing could have any value. A month later he came across it again, and this time it clicked. Rather than simply buying bitcoin, he decided to earn it, writing articles for a Bitcoin blog for five bitcoin apiece, then worth about four dollars. He spent some of his first earnings on a T-shirt, and loved the feeling of taking part in a parallel economy that needed no banks at all[10].
Over the next two years, Vitalik went from sceptic to writer to builder, working on a wave of projects which tried to stretch Bitcoin into new uses, "cryptocurrency 2.0" as he called it. While each new project set out to build its own narrow tool depending on its design, Vitalik could see that something more fundamental was needed. Rather than a new blockchain for every new use case, why not "build the Lego blocks that would allow anyone to make whatever they want?"[11]
On 27 November 2013, five years after Bitcoin's own white paper was published, he emailed a small group of people a draft of his own with the subject line, "Introducing Ethereum: a generalized smart contract/DAC platform"[12]. In the introduction, Vitalik set out a broader vision for the technology behind Bitcoin:
"When Satoshi Nakamoto first set the Bitcoin blockchain into motion in January 2009, he was simultaneously introducing two radical and untested concepts. The first is the "bitcoin", a decentralized peer-to-peer online currency that maintains a value without any backing, intrinsic value or central issuer... However, there is also another, equally important, part to [sic] Satoshi's grand experiment: the concept of a proof of work-based blockchain to allow for public agreement on the order of transactions... And now, attention is rapidly starting to shift toward this second part of Bitcoin's technology, and how the blockchain concept can be used for more than just money.
Commonly cited applications include using on-blockchain digital assets to represent custom currencies and financial instruments... decentralized exchange, financial derivatives, peer-to-peer gambling and on-blockchain identity and reputation systems.
Another important area of inquiry is "smart contracts" - systems which automatically move digital assets according to arbitrary pre-specified rules... What Ethereum intends to provide is a blockchain with a built-in fully fledged Turing-complete programming language that can be used to create "contracts" that can be used to encode arbitrary state transition functions, allowing users to create any of the systems described above, as well as many others that we have not yet imagined, simply by writing up the logic in a few lines of code."[13][14]
Ethereum went live less than two years later, in July 2015[15].
In plain terms, where Bitcoin's blockchain could only record payments, Ethereum's could now run applications[16]. While Bitcoin keeps track of who owns a single currency, Ethereum keeps track of a single, shared computer, which everyone on the network agrees on.
Every computer in the network keeps a copy of it, and anyone can send a request, or transaction, asking it to carry out a computation. The other computers then check the request, run it, and record the result on the blockchain. As with Bitcoin, cryptography ensures that every request is signed by the account making it, and that the record can't be tampered with afterwards. The Ethereum Foundation describes this as "a single, canonical computer (called the Ethereum Virtual Machine, or EVM) whose state everyone on the Ethereum network agrees on."[17]
To reward the computers that do this work, processing changes and keeping the blockchain updated, Ethereum has its own currency, ether. Anyone asking the network to make a change must pay a small amount of ether, known as "gas", for the work of checking, running and recording a change[18].
This is how smart contracts run. Developers don't write new code every time they want something done. Instead, they publish reusable programs (smart contracts) to Ethereum's shared computer, and anyone can use them by sending the required 'gas' fee in ether. As Szabo explained back in the 1990s, this makes a smart contract not dissimilar from a vending machine[19]. As long as you put in the right money, and press the button, the machine hands over your drink. No shopkeeper is required to agree to the sale, and neither side has to trust the other. The agreement terms are already built into the machine itself. Smart contracts function in much the same way. Once a developer publishes one, any Ethereum user can use it, with no intermediary in between.
Creating currency has since become one of the main uses of the Ethereum blockchain, and others like it. While banks in the traditional financial system continue to act as intermediaries in almost every transaction, and create currency through loan agreements, smart contracts running on Ethereum automate both.
The first, keeping track of transactions, is the problem that had, in Vitalik's words, "stymied the development of decentralized digital currency" for decades[13]. With it solved, the Ethereum white paper goes on to explain how to run a currency using smart contracts:
"The key point to understand is that all a currency, or token system, fundamentally is, is a database with one operation: subtract X units from A and give X units to B, with the proviso that (i) A had at least X units before the transaction and (2) the transaction is approved by A. All that it takes to implement a token system is to implement this logic into a contract."[13][20]
Today, smart contracts that fulfil these functions manage the transactions of thousands of Ethereum-based currencies, known as fungible tokens. Take USDC, for example, a token issued by the payments company Circle on Ethereum. USDC's smart contract works much as the white paper describes, keeping a record of how much USDC each ethereum user’s account holds and moving it from one account to another whenever the owner signs a transaction. This runs automatically when the user pays the transaction’s required gas fee. What makes USDC useful is that each token is worth one US dollar. It is what is known as a stablecoin, a cryptocurrency designed to hold the same value as relatively stable assets like the US dollar. Circle maintains that value by holding cash or short-term US government debt, in reserve for every USDC in circulation, issuing new USDC when dollars are deposited with it and destroying USDC when they are withdrawn[21]. While the dollars backing it are held off-chain by Circle, every USDC transfer is carried out by a smart contract on the blockchain, not manually by Circle.
On top of this, currency produced by loans has been automated by smart contracts too. DAI, one of Ethereum's earliest stablecoins, was originally created through ether loans, with users generating "Dai by depositing collateral assets", like ether, into a smart contract and borrowing against it[22]. Repay the loan, plus a fee, and the collateral (the ether) is released[23][24]
[diagram]
In both cases, currencies with the same value as $1 in a US bank account are created and/or managed by smart contracts, instead of a bank. Beyond stablecoins, thousands of currencies, known as tokens (or "fungible tokens", because each unit is interchangeable with every other), run on Ethereum, and on other smart contract enabled blockchains today. They are sent, saved and exchanged around the clock, performing roles once limited to the banking system, using nothing more than smart contracts deployed on the blockchain, and the internet-connected devices needed to use them.
That said, currencies are only one use of smart contracts. As the example of DAI suggests, webs of smart contracts now power increasingly complex systems and financial tools. Everything from peer-to-peer lending, to cooperative organisations. And likely many more protocols which "we have not yet imagined", all made possible "simply by writing up the logic in a few lines of code".
Footnotes
Satoshi Nakamoto, "Bitcoin v0.1 released", The Cryptography Mailing List, 8 January 2009, https://www.metzdowd.com/pipermail/cryptography/2009-January/014994.html (accessed 12 Nov 2026).
Hal Finney, "Bitcoin and me (Hal Finney)", Bitcointalk, 19 March 2013, https://bitcointalk.org/index.php?topic=155054.0 (accessed 12 Nov 2026).
David Chaum, "Blind Signatures for Untraceable Payments", Crypto 82, 1983; DigiCash Inc., "DigiCash Inc. to File Reorganization, Seeks Partners to Drive eCash Forward", press release, Palo Alto, 4 November 1998, archived at https://mailing-list-archive.cryptoanarchy.wiki/archive/1998/11/562503a9eb127935a01b4179f64ca40a3d30a1777349f6f59bd12ceb8a02ec0e (accessed 12 Nov 2026), announcing a Chapter 11 reorganisation; Jens-Ingo Brodesser, "First Monday Interviews: David Chaum", First Monday 4(7), 1999, mirrored at https://cybra.lodz.pl/Content/1081/issues/issue4_7/chaum/index.html (accessed 12 Nov 2026), which dates the founding of DigiCash to 1990.
US Department of Justice, "Digital Currency Business E-Gold Indicted for Money Laundering and Illegal Money Transmitting", press release, 27 April 2007, https://www.justice.gov/archive/criminal/cybercrime/press-releases/2007/egoldIndict.htm (accessed 12 Nov 2026); US Department of Justice, press release on the guilty pleas, July 2008, https://www.justice.gov/archive/opa/pr/2008/July/08-crm-635.html (accessed 12 Nov 2026); US Secret Service, "In U.S. Secret Service-Led Investigation, Digital Currency Business E-Gold Pleads Guilty to Money Laundering and Illegal Money Transmitting Charges", 22 July 2008, https://www.secretservice.gov/press/releases/2008/07/us-secret-service-led-investigation-digital-currency-business-e-gold-pleads (accessed 12 Nov 2026); Kim Zetter, "Bullion and Bandits: The Improbable Rise and Fall of E-Gold", Wired, 9 June 2009, https://www.wired.com/2009/06/e-gold/ (accessed 12 Nov 2026), which dates the start of e-gold to 1996 and puts its customer accounts at about 3.5 million in 165 countries by 2005. The DOJ releases give no total number of accounts.
Adam Back, "Hashcash - a denial of service counter-measure", 2002, http://www.hashcash.org/papers/hashcash.pdf, and W. Dai, "b-money", 1998, http://www.weidai.com/bmoney.txt, both cited in the Bitcoin white paper (its references 6 and 1); Nick Szabo, "Bit gold", Unenumerated, December 2005, https://unenumerated.blogspot.com/2005/12/bit-gold.html (accessed 12 Nov 2026); Hal Finney, "RPOW - Reusable Proofs of Work", 2004, archived by the Satoshi Nakamoto Institute, https://nakamotoinstitute.org/rpow/ (accessed 12 Nov 2026).
Aaron van Wirdum, "The Genesis Files: With Bit Gold, Szabo Was Inches Away From Inventing Bitcoin", Bitcoin Magazine, 12 July 2018, https://bitcoinmagazine.com/culture/genesis-files-bit-gold-szabo-was-inches-away-inventing-bitcoin (accessed 12 Nov 2026).
In the UK, bank deposits made up 97% of broad money, the money held by households and companies, as of December 2013. The Bank of England describes them as "essentially IOUs from commercial banks" and says they are "mostly created by commercial banks themselves". Michael McLeay, Amar Radia and Ryland Thomas, "Money creation in the modern economy", Bank of England Quarterly Bulletin 2014 Q1, pp. 14–27, https://www.bankofengland.co.uk/-/media/boe/files/quarterly-bulletin/2014/money-creation-in-the-modern-economy.pdf (accessed 12 Nov 2026). Counting the reserves that banks hold at the central bank as well, deposits are 79% of all money. Bank of England, "How is money created?", 2019, https://www.bankofengland.co.uk/explainers/how-is-money-created (accessed 12 Nov 2026). These figures are for the UK; the same mechanism operates in other modern banking systems.
Nick Szabo, "Smart Contracts", 1994, archived at https://www.fon.hum.uva.nl/rob/Courses/InformationInSpeech/CDROM/Literature/LOTwinterschool2006/szabo.best.vwh.net/smart.contracts.html (accessed 12 Nov 2026). Szabo lists the general objectives of smart contract design as satisfying common contractual conditions (such as payment terms, liens, confidentiality and enforcement), minimising exceptions both malicious and accidental, and minimising the need for trusted intermediaries. The application to money that follows, replacing a bank's record-keeping and its creation of money through loans, is the authors' own extension of his idea.
Bitcoin Wiki, "Script", https://en.bitcoin.it/wiki/Script (accessed 12 Nov 2026), which describes Bitcoin's scripting language as "intentionally not Turing-complete, with no loops" and covers multi-signature and time-locked payments; Buterin's white paper lists its limitations in the section "Scripting", https://ethereum.org/en/whitepaper/ (accessed 12 Nov 2026).
Camila Russo, The Infinite Machine: How an Army of Crypto-Hackers Is Building the Next Internet with Ethereum, Harper Business, 2020, pp. 54–55.
Camila Russo, The Infinite Machine, Harper Business, 2020, pp. 46–48.
ethereum.org, "Timeline of all Ethereum forks (2014 to present)", https://ethereum.org/en/history/ (accessed 12 Nov 2026), which dates the white paper to 27 November 2013; Zoltan Vardai, "Ethereum white paper turns 11, celebrating blockchain's 'foundational' layer", Cointelegraph, 4 November 2024, https://cointelegraph.com/news/ethereum-white-paper-turns-11-blockchain-foundational-layer (accessed 12 Nov 2026), for the email's subject line.
Vitalik Buterin, "Ethereum: A Next-Generation Smart Contract and Decentralized Application Platform", original white paper first circulated 27 November 2013, as reproduced by Fermat's Library, https://www.fermatslibrary.com/s/ethereum-a-next-generation-smart-contract-and-decentralized-application-platform (accessed 12 Nov 2026).
Quoted from the original 2013 text. The version now published at https://ethereum.org/en/whitepaper/ has been revised and opens differently.
ethereum.org (as note 12), which dates Frontier, the first live release of Ethereum, to 30 July 2015.
Bitcoin's scripting language was deliberately limited rather than confined to payments alone, as Buterin's 2013 white paper explains; see note 9.
ethereum.org, "Intro to Ethereum", https://ethereum.org/en/developers/docs/intro-to-ethereum/ (accessed 12 Nov 2026).
ethereum.org, "Ethereum gas and fees: technical overview", https://ethereum.org/en/developers/docs/gas/ (accessed 12 Nov 2026). Gas is the unit that measures computational work, and it is priced and paid in ether; see also Camila Russo, The Infinite Machine, Harper Business, 2020, p. 111.
Nick Szabo, "Formalizing and Securing Relationships on Public Networks", First Monday 2(9), 1997, https://firstmonday.org/ojs/index.php/fm/article/view/548 (accessed 12 Nov 2026), which describes the vending machine as "the primitive ancestor of smart contracts".
Quoted from the version at https://ethereum.org/en/whitepaper/ ("Token systems") (accessed 12 Nov 2026), which corrects typing errors in the 2013 draft.
Circle, "USDC", https://www.circle.com/en/usdc (accessed 12 Nov 2026).
Sky (formerly Maker), "The Maker Protocol White Paper", https://makerdao.com/en/whitepaper/ (accessed 12 Nov 2026), which records that the original Dai of December 2017, now known as Sai or Single-Collateral Dai, accepted ether as its only collateral.
Sky (formerly Maker), "The Maker Protocol White Paper", 2020, https://makerdao.com/en/whitepaper/ (accessed 12 Nov 2026). This describes Multi-Collateral Dai, not the original 2017 version.
The project behind DAI, MakerDAO, has since rebranded as Sky, and its white paper now refers to "Sky Protocol Vaults".