Smart Contracts and the Law (BitLaw) (2024)

Contracts are legally enforceable agreements that have existed in the law for hundreds of years. Smart contracts,in contrast, are much new constructs defined through executable computer code. The intersection between these newly createdsmart contracts and the legal system is interesting and complex, and the law's role in enforcingand establishing smart contracts is still to be determined.

This page's discussion of smart contracts and the lawis divided into the following topics:

  • What is a Smart Contract
  • A Trustless Smart Contract
  • Ethereum Blockchain and Smart Contracts
  • Smart Contracts and Gas
  • The Oracle Problem
  • Is a Smart Contract a Legal Contract
  • Enforcing a Smart Contract under the Law
  • Legal Assistance

You may also wish to look at these related pages in Bitlaw:

  • Introduction to Blockchains
  • Decentralized Autonomous Organizations (DAOs)
  • Non-Fungible Tokens (NFTs)
  • Blockchain Lawsuits

What is a Smart Contract

An agreement is generally a "meeting of the minds" (to use standard legal terminology), where two ormore entities come to a common understanding, in which each party performs some action, provides some benefit, or incurs some detriment in order to complete the agreement. The actual legal definition of what is requiredto form an enforceable contract will vary from country to country, but at a high level this type of agreementwill typically create an enforceable contract. If an enforceable contract has been created, the legal systemwill get involved when one of the parties breaches that contract.

As for what constitutes a "smart" contract, one author (in the GeorgetownLaw Review) defined smart contracts "as agreements wherein execution is automated, usually by computers." A smart contract, for instance, can be formed through a human interacting witha vending machine. The human purchaser makes a selection by interacting with the vending machine,and then provides payment for the selected goods. The computer inside the machine identifies the selection,receives the payment, verifies that the payment is sufficient for the selection, and then vends the desired product to complete the contract.

The automated execution in a smart contract can relate to the entire agreement, or to justpart of the agreement. In the case of the vending machine, the automated portion does not take over executionof the agreement until after the user has input a selection and provided payment to the machine.

A more complicated smart contract that relates to the entire agreement may take the form of a lending agreement. One party may wish to borrow three Bitcoins and promisesto return the Bitcoins plus 20% interest in one year. Computer code can be programmed to execute this agreement. The codeitself can receive the Bitcoins from the lender, and then distribute the Bitcoins to the borrower. At the end of the year,the borrower will send 3.6 Bitcoins back to the computer code, which then returns the original three Bitcoins, plus20% interest, to the lender. The computer code could even acquire control over a digital asset of the borrower during the original transaction to act as collateral.If the borrower does not return the 3.6 Bitcoins at the end of the year, the computer code could then transferthe collateral at that time to the lender. In this example, the smart contract codeneeds to have the ability to receive, hold, and transfer digital assets such as cryptocurrencies. Blockchains, such as the Ethereum blockchain, have been written to allow exactly this type of scenario.

Smart contracts are usually stored as computer code on a blockchain. Since all of the data on the blockchain (on most blockchains)is viewable by the public, any user is able to examine the code that implements the smart contract. This usually is a benefit to the strength of smart contracts because participants in the contract canfully understand the agreement and how it will be executed on the blockchain. Provably fair gambling contracts, such as sports betting contracts, can be examined by betters so that they know how winners are calculated and how odds are paid out. This public accessibility alsomeans in that bugs can be easily discovered through a careful review of the code by interested parties. However, because contracts that have been saved in the blockchain are unchangeable, itcan be difficult or impossible to fix any bugs that are discovered, and public knowledge of these bugs can lead to thembeing exploited by bad actors.

A Trustless Smart Contract

In most cases, a discussion of "smart contracts" focuses on automated agreements that are implemented, atleast in part, through programming operating on a blockchain. Thus, although the broadest definitionof a smart contract will include operation of a vending machine, vending machine smart contracts are less interestingbecause they rely so heavily on trust. The concept of trust means that an individual will need to have knowledgeabout a machine before they are willing to engage into a smart contract with that machine. For example, a personwishing to purchase a new iPhone from a vending machine may be willing to do so if they approach this machine:

Smart Contracts and the Law (BitLaw) (1)

The user is physically present at the machine, can confirm that the machine appears to be operating correctly, can see the iPhone behind the glass, will recognize the brand name "Best Buy" and therefore will know the party on theother side of this transaction, and can conclude that it would berationale to provide a $1,000 credit card payment to this machine in the hopes of receiving a new iPhone. Even if the transactionfails, the user trusts that there will a recourse to correct this problem, either by complaining at a local Best Buy store,or by asking their credit card company to reverse any charges made because of an incomplete transaction. Each of these factorseffectively establishes the trust that the user needs to complete this transaction.

In contrast, a user approachingthis machine is much less likely to enter into the same transaction:

Smart Contracts and the Law (BitLaw) (2)

The user in this case is also present at the machine. Even if the machine indicated that an iPhone would be vended on the insertion of $1,000 of coinage, the user is much less likely to trust this machine and therefore less likely to enter into this smart contract. The user may recognize the DyDo brand as a good, reliable brand. However,the user will see that the machine is old, may not be powered on, and does not appear to contain the desired iPhone. Even if the machine is working appropriately, the user may wonder whether the "intelligence" in the machine even has the abilityto accept $1,000 in payment.

Smart contracts that exist on the blockchain are considered "trustless" because the type of trust described aboveis not required. The code that defines the smart contract is public, as all data on the blockchain is public. Thus,a lender that wants to enter into the lending smart contract described above can examine the underlying code and determine that it will function properly. The operation of the blockchain is decentralized, which means that there is no fear that the failure of a computer (or even the failure of multiple computers) will stop the performance of the smart contract. The lending user does not need to trust,or even be able to identify, the other side of the loan transaction, as the smart contract will be performed according to its terms as long as the lender performs their side of the transaction.

How the Ethereum Blockchain Aids Smart Contracts

There are many blockchains in existence. While the Bitcoin blockchain is the most well-known, it isthe Ethereum blockchain that is most commonly used for smart contracts. Like the Bitcoin blockchain,Ethereum has its own digital currency (known as Ether). Ethereum uses a slightly more complexsystem to manage accounts and balances in the account, but Ether transactions nonetheless look verysimilar to Bitcoin transactions. But unlike the Bitcoin blockchain, Ethereum was designed from thebeginning with the ability to execute complex scripts (programming code) that can be embedded intothe blockchain. In other words, instead of just holding data, the blockchain contains code that canperform calculations, store data, and change the ownership of Ether.

Smart contracts are generally written in a high-level programming language and then compiled down to abytecode (such as the Ethereum Virtual Machine, or EVM, bytecode) and then stored on the blockchain in binary code.Interaction with a contract is made through apublic ABI (similar to an API but on the binary level). Smart contracts can have both short-termmemory and long-term storage to hold data related to the contract. Smart contracts can also initiateother transactions, such as the transfer of Ether from one account to another, and can even hold (own)cryptocurrencies.

Smart Contracts and Gas

When a smart contract is executed on the Ethereum blockchain, every node on the network is required to execute the code of that smart contract. If there are a thousand nodes on the Ethereum blockchain, and you have asmart contract that pays another 1 Ether, every one of the thousand nodes will execute the samesmart contract to determine that the person should get paid. This is obviously not computationallyefficient.

Each contract must pay for this computing power by providing “gas” for the transaction. Everycomputational step in a contract costs gas for performance. Interaction with a contract usuallyincludes a pre-paid gas amount. While gas is purchased in Ethers, the price varies according to demand. Tohave a smart contract transaction accepted for placement into a new block on the blockchain, a bid pricefor the required gas is submitted along with the transaction. The miner can then accept whichevertransactions they desire for inclusion in their generated block.

The monetary costs for any significant computation are very high. One researcher found that acertain task performed on the Ethereum blockchain would use $26 in gas charges but would cost $0.00000006on an Amazon web platform (the blockchain calculation costs 400 million time as much). Blockchains also chargefor data storage on the blockchain, which can make it prohibitively expensive to store large amountsof data on the blockchain.

Gas prices (which are set in Ether) can vary as much or more that the value of Ether. On May 1, 2022 (the date of an important Bored Ape land sale), the gas cost for a typical transaction (including a simple 32-byte storage of data) was almost $200.Less than three months later, this cost was under $2.

To avoid such chargesfor computation and data storage, most complex smart contracts move data storage and complexcomplications off the blockchain. Off-blockchain storage is verified by computing a hash and storingthe hash on the blockchain. This blending of on-blockchain steps and off-blockchain stepscomplicates the programming of smart contracts, but it generally remains possible to ensure theintegrity of such data and computations steps using the blockchain.

The Oracle Problem

One example of a recent startup that focused on using smart contracts is Robomed. Robomed started in Russia as a way to pay for medical appointments using digital currencies. Thesystem used smart contracts as a way to ensure that standard medical practices are used duringthe procedure. Patients can request a medical appointment from a clinic that accepts Robomedreferrals and payment. The patient requests a procedure or a treatment through a web interface. Thesmart contract is the responsible for identifying specific steps that the doctor should perform tomeet the needs of the patient. These steps are identified using a database of standard medicalpractices. The doctor then must verify that all of the steps have been performed. If the doctorfails to so indicate, the smart contract will not release payment to the clinic. If the doctor hasperformed all of the specified steps, the smart contract will release the digital currency paymentto the clinic.

One obvious limitation with the Robomed smart contract is that the physician/clinic being paid isthe same individual responsible for confirming to the smart contract that all of the steps have beenperformed. This is a common problem in smart contracts—who is responsible for providing the inputsnecessary to trigger conditional performance within the contract, and can that actor be trusted. Asothers have noticed, the need to trust third parties to provide truthful data to a smart contractmakes it difficult to call smart contracts “trustless.”

Conceptually, the linkage between the smart contract and the real world is accomplished by using anaccepted “Oracle.” An Oracle is someone that can provide trusted data. Oracles can also be trustedto perform any real-word task that is prompted by the smart contract. The need to trust such a partyor entity is often referred to as the “Oracle Problem” in smart contracts. For example, if a smartcontract requires 36 monthly payments before ownership of a real-world asset is transferred, someparty or mechanism must exist to ensure that legal transfer of the asset occurs after the smartcontract confirms that all of the payments have been made. Even if the asset has been digitized or“tokenized” so that the ownership of the asset is now embodied in a token that exists on theblockchain (see the Bitlaw discussion on NFTs), some type of Oracle is required to ensure that transfer of that digital asset has legaleffect in the jurisdiction where the asset is located.

In practice, smart contracts frequently use data sources and software that resides outside of theblockchain as their Oracle. Fizzy, for example, was a European company that utilized a smart contractto provide flight delay and cancellation insurance. After purchasing an airplane ticket, a user couldpurchase flight insurance up to five days before the flight through a website. An internal algorithmat the website determined the cost of the insurance. If the user purchased the policy, this factwill be embodied in the smart contract. The smart contract used an external but well-respectedflight status database as its Oracle to determine when a flight has landed (or if it were canceled).If the flight were canceled or delayed more than two hours, the smart contract indicated thatpayment should be made to the customer. When implemented, the financial aspects of the transactionswere conducted in Euros outside of the smart contract using external programming and public paymentnetworks. It was anticipated, however, that payments in Ether would be accepted such that the purchaseof the insurance and the payment to customers would be entirely within the domain of the smartcontract. But in no event will the smart contract be able to function autonomously without theOracle providing the smart contract with real-world flight data.

Is a Smart Contract a Legal Contract

Many proponents of smart contracts have argued that the public nature and immutability of the smartcontract means that the legal system is no longer necessary for these transactions. Since “the codeis law,” there can be no legal disputes over the terms of the agreement. All parties that agreed toparticipate in the smart contract have agreed to be bound by the automatic performance of thecontract as defined by the code. Once the contract is entered into, there is no longer a requirement to trust the otherparty. There is no ability to alter the contract, or to change one’s mind on a smart contract. Thisis the beauty and simplicity inherent in smart contracts—it is “trustless” and removes the need fortrusted middlemen. Furthermore, if the code is the law, there is no more need for lawyers.

Not surprisingly, most of these proponents are not lawyers. Lawyers have instead asked questionslike “are smart contracts even contracts?” The answer to this question should, of course, be basedon standard contract law principles of offer, acceptance, and consideration. Where these elementsare present, smart contracts can be considered enforceable legal contracts.

While some states have passed “smart contract legislation,” the legislation does not automaticallyturn blockchain smart contracts into binding contracts. Rather, the legislation simply states that abinding contract does not become invalid merely because the contract includes a smart contract term (partialautomation).

Hence, in reality, most smart contracts today are merely terms within, or mechanisms for theperformance of, a standard legal agreement. Even in the absence of clarifying state legislation,there is no reason to believe that an enforceable contract that requires parties to abide by thecomputations and determinations of a smart contract is unenforceable.

Enforcing a Smart Contract under the Law

Unfortunately, there are some significant limitations to pure smart contracts when compared to legallyenforceable contracts written in English (or some other human, non-code language). For example, parties that negotiate a written agreement will frequently utilizepurposefully ambiguous language as part of the contract. One party may, for instance, be obligated to provide their "best efforts"to perform an act, or to utilize "commercially reasonable efforts." These phrases, while ambiguous, establish a relatively-well understood level of effort that should be expended to perform that act. A court might be required to determine whether a close case falls on one side of the line or another,but both parties accept that such phrasing best represents their intentions. A smart contract, which requires binary decision points to determine whether or not a contractualrequirement has been fulfilled, cannot adequately represent these levels of efforts with theirinherent ambiguity.

Furthermore, courts have established various equitable considerations that actto forgive certain types of contractual breaches, or to prevent the enforcement of unusuallyonerous terms. And if one party induces another to enter into an agreement through fraudulent acts and representations, the courts can invalidate the agreement. In other words, courts can smooth out the inherent unfairness of unequal bargaining positions, can correct minor mistakes in a written contract, and can conform the agreementto the understood intention of the parties. None of these legal niceties are available in a puresmart contract where the "code is the law."

In other cases, parties to a standard contract may choose to forgive partial performance of the agreement and treat the contract as fully performed. The performance may have been "close enough" to perfect performanceas to satisfy all the parties involved. Alternatively, one party may forgive partial performance in orderto maintain a strong relationship with the other party. This again may not be possible when performance is governed by a pure smart contract.

As explained above, most of the smart contracts that exist today are partial smart contracts, where the self-executing code that defines the smart contract exists as part of a separate (non-smart) agreement. In these cases, an underlying written agreement can establish additional terms of the agreement that are not reflected in the smart contract code. This written agreement can establish and/or resolve ambiguities and spell out the intent of the parties. If there is a mistake or disagreement as to the operation the smart-contract portion of the agreement, theparties will likely be able to resolve this dispute in a court in the same way as they would any other contract.

But what happens when the smart contract is the only agreement between the parties? When The DAO was formed, all non-code written materials were considered non-binding,and only the functionality of the code itself was to be considered binding on the participants. When a flaw was discovered in the code thatallowed a nefarious individual to pull out a huge portion of other people's cryptocurrency, the binding smartcontract provided no remedy. Could a court of law have intervened to protect the rights of the investorsin The DAO? While legal theories certainly exist that could allow such intervention, there are very few realworld instances of where this has occurred. In other words, we must still wait and see....

Smart Contract Attorney

Please see Dan Tysver's bio and contact information if you need any smart-contract legal assistance. Dan is a Minnesota-based attorney providing intellectual property advice on smart contract issues to clients across the country.

Smart Contracts and the Law (BitLaw) (2024)

FAQs

Are smart contracts legally enforceable? ›

But while a smart contract can be a legally binding agreement, it isn't necessarily always legally binding. A smart contract still has to meet all the legal requirements of a contract, such as intent to form a contract. And these legal requirements might also vary by jurisdiction.

How will smart contracts affect law firms? ›

This transformative potential is no less true for the legal profession, especially with the advent of 'smart contracts' which automatically execute coded contractual terms without requiring a lawyer. Much of the work traditionally completed by lawyers may therefore be automated in the near future.

What is a smart contract in law? ›

Smart contracts are defined as agreements wherein execution is automated, usually by computers. Such contracts are designed to ensure performance without recourse to the courts.

Why would someone use a smart contract instead of a contract prepared by a lawyer? ›

Many proponents of smart contracts have argued that the public nature and immutability of the smart contract means that the legal system is no longer necessary for these transactions.

What is the legal status of a smart contract? ›

Smart contracts are not legal agreements, but instead transactions which are executed automatically by a computer program or a transaction protocol, such as technological means for the automation of payment obligations such as by transferring cryptocurrencies or other tokens.

Are smart contracts self enforcing? ›

Smart contracts permit trusted transactions and agreements to be carried out among disparate, anonymous parties without the need for a central authority, legal system, or external enforcement mechanism.

How risky are smart contracts? ›

Technical risks of smart contracts

Smart contracts are highly dependent on the precision of their code and the security of the blockchain infrastructure they operate on. Even minor flaws or oversights can lead to severe consequences such as unauthorized access, fund misappropriation or unintentional legal disputes.

Are smart contracts really immutable? ›

Smart contracts are immutable. Once deployed, the code is unalterable, providing a tamper-resistant and trustless environment.

Can smart contracts be revoked? ›

If you signed a malicious smart contract or if the signed smart contract was exploited, you can revoke your approvals and permissions. You also can revoke the approvals if you don't want to interact with a specific smart contract.

What are the top 10 smart contracts? ›

The top 10 best smart contract platforms in 2024 are Ethereum, Binance Smart Chain (BSC), TRON, Arbitrum, Cardano, Solana, Polygon, Algorand, Avalanche, and Tezos.

What is a real example of smart contract? ›

One of the best examples of smart contracts in the real world is a vending machine. If you insert $1 and press a specific button, then the vending machine will dispense products that were linked to the button. In a way, the vending machine dispenses products when it receives the required amount of money.

How can law firms use smart contracts? ›

A smart contract is computer code working as part of a blockchain that can execute the terms of a contract or agreement when predetermined conditions are met. A smart contract can be part of a binding legal contract. It also can have no connection to one.

What problems do smart contracts solve? ›

Smart contracts are typically used to automate the execution of an agreement so that all participants can be immediately certain of the outcome, without any intermediary's involvement or time loss. They can also automate a workflow, triggering the next action when predetermined conditions are met.

What is the difference between smart contract and digital contract? ›

With E-contract executions, the code is exclusively in the hands of the third party responsible for it. However, when it comes to smart contracts, all parties involved operate and store the same code because it utilises blockchain technology. Sometimes these codes are publicly available as well.

What type of contract is not legally enforceable? ›

Generally, contracts are void because the subject matter is not legal or one of the contracting parties does not have the competency to contract. For example, a contract to commit a crime is void and cannot be enforced.

Can you break a smart contract? ›

Smart contracts are immutable, meaning the contract cannot be changed once deployed. So, if a bug or security flaw is found on the smart contract after deployment, it can not be fixed. Destroying the smart contract is the only viable option in this case.

Can a smart contract be revoked? ›

If you signed a malicious smart contract or if the signed smart contract was exploited, you can revoke your approvals and permissions. You also can revoke the approvals if you don't want to interact with a specific smart contract.

Is there a legally enforceable contract? ›

A contract is an agreement made between 2 or more parties that is legally enforceable. Legally enforceable means if one of the parties breaks the contract, the other party can take legal action against them. There is generally a contract whenever a seller makes an offer and a buyer accepts it.

Top Articles
7 Xanax Alternatives: How Else You Can Help Treat Your Anxiety | Talkiatry
The Share of Americans Who Are Mortgage-Free Is at an All-Time High
Woodward Avenue (M-1) - Automotive Heritage Trail - National Scenic Byway Foundation
UPS Paketshop: Filialen & Standorte
Cooking Chutney | Ask Nigella.com
New Slayer Boss - The Araxyte
Insidious 5 Showtimes Near Cinemark Tinseltown 290 And Xd
Bellinghamcraigslist
Notary Ups Hours
10000 Divided By 5
Tanger Outlets Sevierville Directory Map
Sunday World Northern Ireland
Progressbook Brunswick
Pro Groom Prices – The Pet Centre
MindWare : Customer Reviews : Hocus Pocus Magic Show Kit
8 Ways to Make a Friend Feel Special on Valentine's Day
UEQ - User Experience Questionnaire: UX Testing schnell und einfach
Industry Talk: Im Gespräch mit den Machern von Magicseaweed
Mary Kay Lipstick Conversion Chart PDF Form - FormsPal
Sky X App » downloaden & Vorteile entdecken | Sky X
Arre St Wv Srj
Aaa Saugus Ma Appointment
Little Caesars 92Nd And Pecos
SuperPay.Me Review 2023 | Legitimate and user-friendly
Somewhere In Queens Showtimes Near The Maple Theater
Craigslist Battle Ground Washington
Project Reeducation Gamcore
3569 Vineyard Ave NE, Grand Rapids, MI 49525 - MLS 24048144 - Coldwell Banker
Grave Digger Wynncraft
Tim Steele Taylorsville Nc
3473372961
Dtlr On 87Th Cottage Grove
Que Si Que Si Que No Que No Lyrics
Omnistorm Necro Diablo 4
Edict Of Force Poe
Scanning the Airwaves
Stafford Rotoworld
Walgreens Agrees to Pay $106.8M to Resolve Allegations It Billed the Government for Prescriptions Never Dispensed
Kerry Cassidy Portal
Thelemagick Library - The New Comment to Liber AL vel Legis
2 Pm Cdt
Questions answered? Ducks say so in rivalry rout
Disassemble Malm Bed Frame
Florida Lottery Powerball Double Play
Pixel Gun 3D Unblocked Games
Gonzalo Lira Net Worth
Gander Mountain Mastercard Login
Lesson 5 Homework 4.5 Answer Key
Cars & Trucks near Old Forge, PA - craigslist
What your eye doctor knows about your health
Mawal Gameroom Download
Black Adam Showtimes Near Cinemark Texarkana 14
Latest Posts
Article information

Author: Jonah Leffler

Last Updated:

Views: 5765

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Jonah Leffler

Birthday: 1997-10-27

Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808

Phone: +2611128251586

Job: Mining Supervisor

Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy

Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.