What Are Smart Contracts? A Beginner's Guide to Smart Contracts

(https://blockgeeks. com)

Free Trial (/courses/)

Articles (/articles/) Guides (/guides/)

Feedback (https://blockgeek s.com/questions/h

Smart Contracts: The Blockchain Technology (https://bl That Will Replace Lawyers ockgeek s.com/au thor/ame By Ameer Rosic (https://blockgeeks.com/author/ameerrosic) errosic)



1 year ago

ave-someBack to Guides (https://blockgeeks.com/guides)


Post reply


#Blockchain 101 (https://blockgeeks.com/category/blockchain-101/?filter=latest&post_type=guides)

Write for us

#Blockchain for business (https://blockgeeks.com/category/blockchain-for-business/?filter=latest&post_type=guides)


#Blockchain startups (https://blockgeeks.com/category/blockchain-startups/?filter=latest&post_type=guides)


#Crypto for beginners (https://blockgeeks.com/category/crypto-for-beginners/?filter=latest&post_type=guides)

submissions/) Guidelines (https://blockgeek s.com/guidelines/)

Join over 115,115 Members

Angel Investors, Startups & Blockchain developers... Enter your email address

Yes, Get Access! No Thanks!

A Beginner’s Guide to Smart Contracts One of the best things about the blockchain (http://blockgeeks.com/guides/what-is-blockchain-technology-a-step-bystep-guide-than-anyone-can-understand/) is that, because it is a decentralized system that exists between all permitted parties, there’s no need to pay intermediaries (Middlemen) and it saves you time and conflict. Blockchains have their problems, but they are rated, undeniably, faster, cheaper, and more secure than traditional systems, which is why banks and governments are turning to them. In 1994, Nick Szabo (https://en.wikipedia.org/wiki/Nick_Szabo), a legal scholar, and cryptographer (https://blockgeeks.com/guides/cryptocurrencies-cryptography/), realized that the decentralized ledger could be used for smart contracts, otherwise called self-executing contracts, blockchain contracts, or digital contracts. In this format, contracts could be converted to computer code, stored and replicated on the system and supervised by the network of computers that run the blockchain. This would also result in ledger feedback such as transferring money and receiving the product or service.

Start Your Free Trial Today

Free Trial (https://blockgeeks.com/courses/?utm_source=Guides&utm_medium=Widget&utm_campaign=FromGuides)

What are Smart Contracts? Smart contracts help you exchange money, property, shares, or anything of value in a transparent, conflict-free way while avoiding the services of a middleman. The best way to describe smart contracts is to compare the technology to a vending machine. Ordinarily, you would go to a lawyer or a notary, pay them, and wait while you get the document. With smart contracts, you simply drop a bitcoin into the vending machine (i.e. ledger), and your escrow, driver’s license, or whatever drops into your account. More so, smart contracts not only define the rules and penalties around an agreement in the same way that a traditional contract does, but also automatically enforce those obligations.

As Vitalik Buterin, the 22-year-old programmer of Ethereum, explained it at a recent DC Blockchain Summit (http://digitalchamber.org/dcsummit.html), in a smart contract approach, an asset or currency is transferred into a program “and the program runs this code and at some point it automatically validates a condition and it automatically determines whether the asset should go to one person or back to the other person, or whether it should be immediately refunded to the person who sent it or some combination thereof.”In the meantime, the decentralized ledger also stores and replicates the document which gives it a certain security and immutability. Example Suppose you rent an apartment from me. You can do this through the blockchain by paying in cryptocurrency (http://blockgeeks.com/guides/what-is-cryptocurrency-everything-you-need-to-know-ultimate-guide/). You get a receipt which is held in our virtual contract; I give you the digital entry key which comes to you by a specified date. If the key doesn’t come on time, the blockchain releases a refund. If I send the key before the rental date, the function holds it releasing both the fee and key to you and me respectively when the date arrives. The system works on the IfThen premise and is witnessed by hundreds of people, so you can expect a faultless delivery. If I give you the key, I’m sure to be paid. If you send a certain amount in bitcoins, you receive the key. The document is automatically canceled after the time, and the code cannot be interfered by either of us without the other knowing since all participants are simultaneously alerted. You can use smart contracts for all sort of situations that range from financial derivatives to insurance premiums, breach contracts, property law, credit enforcement, financial services, legal processes and crowdfunding agreements.

A Smart Contract Example Here is the code for a basic smart contract that was written on the Ethereum blockchain (https://blockgeeks.com/guides/what-is-ethereum/). Contracts can be encoded on any blockchain, but Ethereum is mostly used since it gives unlimited processing capability.

An example smart contract on Ethereum. Source: https://www.ethereum.org/token (https://www.ethereum.org/token) The contract stipulates that the creator of the contract be given 10,000 BTCS (i.e. bitcoins); it allows anyone with enough balance to distribute these BTCs to others.

Here’s How You Can Use Smart Contracts

Jerry Cuomo (https://en.wikipedia.org/wiki/Jerry_Cuomo), vice president for blockchain technologies at IBM, believes smart contracts can be used all across the chain from financial services to healthcare to insurance. Here are some examples: Government Insiders vouch that it is extremely hard for our voting system to be rigged, but nonetheless, smart contracts would allay all concerns by providing an infinitely more secure system. Ledger-protected votes would need to be decoded and require excessive computing power to access. No one has that much computing power, so it would need God to hack the system! Secondly, smart contracts could hike low voter turnout. Much of the inertia comes from a fumbling system that includes lining up, showing your identity, and completing forms. With smart contracts, volunteers can transfer voting online and millennials will turn out en masse to vote for their Potus. Management The blockchain not only provides a single ledger as a source of trust, but also shaves possible snarls in communication and workflow because of its accuracy, transparency, and automated system. Ordinarily, business operations have to endure a back-and-forth, while waiting for approvals and for internal or external issues to sort themselves out. A blockchain ledger streamlines this. It also cuts out discrepancies that typically occur with independent processing and that may lead to costly lawsuits and settlement delays. Case history In 2015, the Depository Trust & Clearing Corp. (DTCC) used a blockchain ledger to process more than $1.5 quadrillion worth of securities, representing 345 million transactions. Supply Chain Smart contracts work on the If-Then premise so, to put in Jeff Garzik’s words (http://searchcio.techtarget.com/feature/What-is-a-smart-contract-and-whats-it-good-for),

“UPS can execute contracts that say, ‘If I receive cash on delivery at this location in a developing, emerging market, then this other [product], many, many links up the supply chain, will trigger a supplier creating a new item since the existing item was just delivered in that developing market.’” All too often, supply chains are hampered by paper-based systems, where forms have to pass through numerous channels for approval, which increases exposure to loss and fraud. The blockchain nullifies this by providing a secure, accessible digital version to all parties on the chain and automates tasks and payment. Case history Barclays Corporate Bank uses smart contracts (https://bitcoinmagazine.com/articles/chainalysis-and-wave-showcaseblockchain-fintech-products-at-new-york-barclays-accelerator-sign-deal-with-barclays-1445454899) to log change of ownership and automatically transfer payments to other financial institutions upon arrival Automobile There’s no doubt that we’re progressing from slothful pre-human vertebrates to super-smart robots. Think of a future where everything is automated. Google’s getting there with smartphones, smart glasses, and even smart cars. That’s where smart contracts help. One example is the self-autonomous or self-parking vehicles, where smart contracts could put into play a sort of ‘oracle’ that could detect who was at fault in a crash; the sensor or the driver, as well as countless other variables. Using smart contracts, an automobile insurance company could charge rates differently based on where, and under which, conditions customers are operating their vehicles. Real Estate You can get more money through smart contracts. Ordinarily, if you wanted to rent your apartment to someone, you’d need to pay a middleman such as Craigslist or a newspaper to advertise and then again you’d need to pay someone to confirm that the person paid rent and followed through. The ledger cuts your costs. All you do is pay via bitcoin and encode your contract on the ledger. Everyone sees, and you accomplish automatic fulfillment. Brokers, real estate agents, hard money lenders, and anyone associated with the property game can profit. Healthcare Personal health records could be encoded and stored on the blockchain with a private key which would grant access only to specific individuals. The same strategy could be used to ensure that research is conducted via HIPAA laws (in a secure and confidential way). Receipts of surgeries could be stored on a blockchain and automatically sent to insurance providers as proof-of-delivery. The ledger, too, could be used for general healthcare management, such as supervising drugs, regulation compliance, testing results, and managing healthcare supplies.

Smart Contracts are Awesome! Here’s what smart contracts give you: Autonomy – You’re the one making the agreement; there’s no need to rely on a broker, lawyer or other intermediaries to confirm. Incidentally, this also knocks out the danger of manipulation by a third party, since execution is managed automatically by the network, rather than by one or more, possibly biased, individuals who may err. Trust – Your documents are encrypted on a shared ledger. There’s no way that someone can say they lost it. Backup – Imagine if your bank lost your savings account. On the blockchain, each and every one of your friends has your back. Your documents are duplicated many times over. Safety – Cryptography (https://blockgeeks.com/guides/cryptocurrencies-cryptography/), the encryption of websites, keeps your documents safe. There is no hacking. In fact, it would take an abnormally smart hacker to crack the code and infiltrate. Speed – You’d ordinarily have to spend chunks of time and paperwork to manually process documents. Smart contracts use software code to automate tasks, thereby shaving hours off a range of business processes. Savings – Smart contracts save you money since they knock out the presence of an intermediary. You would, for instance, have to pay a notary to witness your transaction. Accuracy – Automated contracts are not only faster and cheaper but also avoid the errors that come from manually filling out heaps of forms.

Here’s how Jeff Garzik, owner of blockchain services Bloq, described (http://searchcio.techtarget.com/feature/What-isa-smart-contract-and-whats-it-good-for) smart contracts:

“Smart contracts … guarantee a very, very specific set of outcomes. There’s never any confusion and there’s never any need for litigation.”

“Smart Contracts are where the rubber meets the road for businesses and blockchain

technology. While a few highly specialized distributed financial services use cases for blockchain have appeared —for example, payment ledger services for the Yangon Stock Exchange in Myanmar. Its services on top of blockchain that are really interesting. In the Yangon Exchange, it solves the problem of distributed settlement in a trading system that only synchronizes trades twice a day. But the autonomous execution capacities of smart contracts extends the transactional security assurance of blockchain into situations where complex, evolving context transitions are required. And it’s this possibility that has Amazon, Microsoft Azure and IBM Bluemix rolling out Blockchain-as-a-Service (Baas) from the cloud.” – Patrick Hubbard (http://www.solarwinds.com/head-geeks/patrick-hubbard), Head Geek, SolarWinds

Now for Problems Smart contracts are far from perfect. What if bugs get in the code? Or how should governments regulate such contracts? Or, how would governments tax these smart contract transactions? As a case in point, remember my rental situation? What happens if I send the wrong code, or, as lawyer Bill Marino points out (http://tech.cornell.edu/news/smartcontracts-the-next-big-blockchain-application), I send the right code, but my apartment is condemned (i.e., taken for public use without my consent) before the rental date arrives? If this were the traditional contract, I could rescind it in court, but the blockchain is a different situation. The contract performs, no matter what. The list of challenges goes on and on. Experts are trying to unravel them, but these critical issues do dissuade potential adopters from signing on.

And here’s To the Future of Smart Contracts… Part of the future of smart contracts lies in entangling these issues. In Cornell Tech, (http://tech.cornell.edu/news/smartcontracts-the-next-big-blockchain-application) for instance, lawyers, who insist that smart contracts will enter our everyday life, have dedicated themselves to researching these concerns. Actually, when it comes to smart contracts, we’re stepping into a sci-fi screen. The IT resource center, Search Compliance suggests (http://searchcompliance.techtarget.com/definition/smart-contract) that smart contracts may impact changes in certain industries, such as law. In that case, lawyers will transfer from writing traditional contracts to producing standardized smart contract templates, similar to the standardized traditional contracts that you’ll find on LegalZoom (https://www.legalzoom.com/). Other industries such as merchant acquirers, credit companies, and accountants may also employ smart contracts for tasks, such as real-time auditing and risk assessments. Actually, the website Blockchain Technologies sees (http://www.blockchaintechnologies.com/blockchain-smart-contracts) smart contracts merging into a hybrid of paper and digital content where contracts are verified via blockchain and substantiated by physical copy.

Blockchains Where You Can Process Smart Contracts Bitcoin (https://bitcoin.org/): Bitcoin is great for processing Bitcoin transactions, but has limited ability for processing documents. Side Chains (http://gendal.me/2014/10/26/a-simple-explanation-of-bitcoin-sidechains/): This is another name for blockchains that run adjacent to Bitcoin and offer more scope for processing contracts. NXT (http://nxt.org/): NXT is a public blockchain platform that contains a limited selection of templates for smart contracts. You have to use what is given; you’re unable to code your own. Ethereum (https://www.ethereum.org/): Ethereum is a public blockchain platform and the most advanced for coding and processing smart contracts. You can code whatever you wish but would have to pay for computing power with “ETH” tokens. As to the potential of smart contracts itself, there’s no end to the range of industries it can impact, from healthcare to automobiles to real estate and law. The list goes on and on. Says, Ethereum CTO, Gavin Wood

“The potential for [smart contracts] to alter aspects of society is of significant magnitude. This is something that would provide a technical basis for all sorts of social changes, and I find that exciting.”

Join over 115,115 Members

Angel Investors, Startups & Blockchain developers... Enter your email address

Yes, Get Access! No Thanks!

Tweet 136

Share 842




(https://twitter.com/sh (https://www.facebook (https://www.linkedin. are? .com/share.php? com/cws/share? Comments original_referer=/&te u=https%3A%2F%2 url=https%3A%2F% xt=Smart+Contracts Fblockgeeks.com%2F 2Fblockgeeks.com%2 %3A+The+Blockchai guides%2FsmartFguides%2FsmartDmitry Buterin n+Technology+That+ contracts%2F%3Fut contracts%2F%3Fut (https://blockgeeks.com/author/dmitry-buterin) 1 year ago Will+Replace+Lawyer m_source%3Dfaceboo m_source%3DlinkedI (https://blWhat are the biggest challenges and limitations of smart contracts as of today? s&url=https://blockge k%26utm_medium% n%26utm_medium% ockgeek eks.com/guides/smart- 3Dsocial%26utm_cam 3Dsocial%26utm_cam contracts/%3Futm_so paign%3DSocialWarf paign%3DSocialWarf s.com/auurce%3Dtwitter%26u are%2FBG) are%2FBG) thor/dmit tm_medium%3Dsocia l%26utm_campaign% Alex Todd ry- • 3DSocialWarfare%2F (https://blockgeeks.com/author/trust2pay) 1 year ago buterin/) BG&via=Blockgks) (https://bl


(https://www.reddit.co m/submit? url=https://blockgeeks .com/guides/smartcontracts/&title=Smar t+Contracts%3A+The 1 +Blockchain+Technol ogy+That+Will+Repla ce+Lawyers)


@Dmitry Buterin Today, the biggest challenge is the misconception of what the term

ockgeek“smart contract” really means, as it is not a contract in the conventional sense of the

s.com/auword – so the term can be misleading. However, once that gets cleared up, there are thor/trustmany other limitations that will need to be addressed, such as how do you trust them to 2pay/) do what they promise to do, and what recourse do you have if they don’t?

George Nguyen

(https://blockgeeks.com/author/georgenguyen) 3 weeks ago


(https://bl @Alex Todd I would say it’s more like a individual deal and agreement. Contract is ockgeek more of legal enforcement s.com/au thor/geor genguyedavid teruzzi (https://blockgeeks.com/author/david_teruzzi) 1 year ago n/) (https://[email protected] Buterin To be or not to be? Code is Law or Code is not Law ? ockgeek s.com/auJust think what happened to TheDAO. To be part of the DAO people accepted “terms


thor/daviand conditions” in English while services in the platform run pieces of Ethereum code. d_teruzziObviously “terms and conditions” cannot include BUGS and cannot provide a perfect /)

match between english and solidity code (for instance) So we have 3 big challenges : 1) build a bridge between smart contracts and paper contracts. Common Accord is a very promising project aimed at this goal http://www.commonaccord.org/ (http://www.commonaccord.org/) http://blogchaincafe.com/common-accord-le-pont-smart-contracts-contrats-papier (http://blogchaincafe.com/common-accord-le-pont-smart-contracts-contrats-papier) 2) produce a 100% bug-free code for smart contracts 3) find a way to update smart contracts to take into account evolutions in laws

david teruzzi

(https://blockgeeks.com/author/david_teruzzi) 1 year ago


(https://bl Maybe a fourth one:

ockgeek 4) find a way to hide public information for some kind of smart contracts that need s.com/au privacy (using z-Cash+Ethereum, for instance) thor/davi

d_teruzzi /)

Dmitry Buterin

(https://blockgeeks.com/author/dmitry-buterin) 1 year ago


(https://[email protected] teruzzi Excellent Summary! Though i wonder if we would every have bug-free ockgeeksmart contracts…big challenge, in any software development. s.com/au thor/dmit ry-

Ameer Rosic

(https://blockgeeks.com/author/ameerrosic) 1 year ago buterin/) (https://[email protected] Buterin @dmitry-buterin (https://blockgeeks.com/author/dmitry-buterin/) ockgeekBug free. no. But my thoughts are. What about A.I and Smart contracts, Hmmmm????


s.com/au thor/ame

errosic/) Peter Westerhof (https://blockgeeks.com/author/pjw9779) 1 year ago


(https://bl @Ameer Rosic ‘Smart Contracts’ are to ‘Legal Contracts’ what ‘AI’ is to ‘Expert ockgeek Systems’. Worlds of differences. s.com/au Take a peek at the ‘Four Corners Rule’ and the ‘Parol Evidence Rule’ for legal thor/pjw9 contracts. 779/)

George Nguyen

(https://blockgeeks.com/author/georgenguyen) 3 weeks ago


(https://bl @david teruzzi It’s a great view. We are a law firm in Vietnam and looking forward to ockgeek making something similar. Wondering if we can have a community to contribute to this s.com/au such an Open Source project thor/geor genguye n/)

Julien Béranger

(https://blockgeeks.com/author/jbrg) 1 year ago


(https://[email protected] Buterin I see three main limitations of autonomous contracts : ockgeek s.com/au– Private keys management thor/jbrg/– Identity management – Good practices and security ) That’s ok, we take these challenges! https://twitter.com/julienbrg (https://twitter.com/julienbrg)

Ameer Rosic

(https://blockgeeks.com/author/ameerrosic) 1 year ago


(https://bl @Julien Béranger @jbrg (https://blockgeeks.com/author/jbrg/) Out of those three: ockgeek Which one do you think we should tackle first? s.com/au thor/ame Dmitry Buterin errosic/)

(https://blockgeeks.com/author/dmitry-buterin) 1 year ago


(https://blAnother good guide on smart contracts: https://coincenter.org/entry/what-are-smart-contracts-andockgeekwhat-can-we-do-with-them (https://coincenter.org/entry/what-are-smart-contracts-and-what-cans.com/auwe-do-with-them) thor/dmit ryAJ Guerra

buterin/) •

(https://blockgeeks.com/author/ajguerratqmccnamcsesec) 10 months ago


(https://bl @Dmitry Buterin Thank you Dmitry ockgeek s.com/au thor/ajgu Christiaan Mulder erratqmc (https://blockgeeks.com/author/agante) 5 months ago cnamcse (https://bl Great article! sec/) ockgeek


s.com/au thor/aga nte/)

Marci Urling

(https://blockgeeks.com/author/marci) 5 months ago

(https://bl I think the smart contract just like any new form of technology that needs to iron out the bugs.

ockgeek Start testing those scenarios first, and then let the brainstorming begin. I’m sure we had s.com/au all kinds of questions and legal issues about the horse and buggy moving into the automobile thor/mar era…and yet here we are. ci/) We can start testing with small dollar transactions and move from there.

PK Mwangi Global Consulting


(https://blockgeeks.com/author/pkmwangi) 4 months ago


(https://bl This is clearly the future of every aspect of our lives. Being the first mover in this aspect of

ockgeek blockchain technology it is my view that Ethereum will continue to be the trend-setter and the s.com/au platform to go to for institutions, governments and corporations adopting blockchain technology thor/pkm for efficiency, utility, security, due diligence capabilities, etc. wangi/)

At around $300 a coin (19 October 2017) Ethereum is massively undervalued. Time will tell but from this end the revolutionary and massive disruptive nature of Ethereum is as clear as crystal.

vivek sharma

(https://blockgeeks.com/author/viveksharma) 2 months ago


(https://blHello Sir, Your Article is really a gold for starters, I am a Beginner working on Smart contract but ockgeekhave some question which is continuously roaming in my mind question are s.com/au1. How smart contracts takes inputs from external world? thor/vive2. How should systems know the certain conditions are fulfilled in smart contracts? ksharma/3. How real-world business expectation work on Smart Contract? ) Sergii Andonov

(https://blockgeeks.com/author/acronge) 2 weeks ago


(https://bl @vivek sharma if you blockchained the world you can do it easy ockgeek s.com/au thor/acro nge/)

You must be logged in (https://blockgeeks.com/wp-login.php?

redirect_to=https%3A%2F%2Fblockgeeks.com%2Fguides%2Fsmart-contracts%2F) to post a comment.

(http s://w ww.l inke din. com /co mpa ny/b lock gee ks)

(http s://t witt er.c om/ bloc kgk s)

(http s://w ww.i nsta gra m.c om/ bloc kge eks/ )

(http s://w ww.f ace boo k.co m/Bl ock gee ks/)


What Are Smart Contracts? A Beginner's Guide to Smart Contracts

(https://blockgeeks. com) Free Trial (/courses/) Articles (/articles/) Guides (/guides/) Feedback (https://blockgeek s.com/questions/h Smart Contr...

984KB Sizes 4 Downloads 18 Views

Recommend Documents

No documents