What is a Smart Contract?

Matt Swezey
Pactum
Published in
5 min readJun 30, 2017

--

Smart Contracts == Digital Agreements

Smart Contracts: applications that run exactly as programmed without any possibility of downtime, censorship, fraud or third party interference.

Background & History

The first smart contract concept was actually introduced well before any blockchain technology was even in existence. Crazy right!? Smart contracts were first proposed by Nick Szabo in 1994. Szabo is a computer scientist, legal scholar, and cryptographer who is a well respected academic with research in digital contracts and digital currency. Many people in the cryptocurrency community even assert that he anonymously created Bitcoin. Szabo denies this claim.

Nick Szabo, in 1996, described a smart contract as “ a set of promises, specified in digital form, including protocols within which the parties perform on these promises…”

It’s only appropriate to give credit where credit is due. Ethereum has global media attention and we should review where the concept of smart contracts actually began before diving into what a smart contract is today.

Below, you can find the definitions from Wikipedia & Investopedia.

  • Wikipedia:

Smart contracts are computer protocols intended to facilitate, verify, or enforce the negotiation or performance of a contract.

  • Investopedia:

Smart contracts are self-executing contracts with the terms of the agreement between buyer and seller being directly written into lines of code. The code and the agreements contained therein exist across a distributed, decentralized blockchain network. 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. They render transactions traceable, transparent, and irreversible.

So, what does this all mean?

In short, you can setup a digital, binding agreement between a stranger and yourself. You do not care to trust this stranger. And that’s okay! Because with smart contracts, they require no trust, as in a trustless agreement. The agreement is public knowledge (via the public ledger) and is fully transparent so both parties know what they are agreeing to.

It’s all programming logic at the end of the day. The outcomes are predefined in the contract which are dependent on the actions of the parties involved in the smart contract. When both parties fulfill their obligations, the smart contract will know which action to take. For example, releasing funds to the seller once the buyer confirms the delivery of the package. Take it a step further and have the funds release automatically by means of tracking the shipment via the tracking number. Want more security or peace of mind? One can require this smart contract to hold escrows by both parties to ensure no foul play is involved or they risk losing their escrow deposit.

Smart contracts have the power to automate processes and streamline operations. Currently, most use cases deal with financial services, but smart contracts can also extend into many business activities, such as, but not limited to: share holdings, voting, audit trails, document of records, auctions, etc…

The best part about smart contracts is that it doesn’t require the need to pay a middle man to handle your agreements. You save time and money! Also, with it being on the public ledger, you don’t have to go through a 3rd party to look up records. You have direct access to any and all records of your choosing.

Here are some example use cases:

  1. Crowdfunding
  2. Crowdsales
  3. Insurance
  4. Auto Title Registrations
  5. Land Title Records
  6. Digital Identities
  7. Derivatives
  8. Auctions
  9. Waging|Betting
  10. Savings
  11. Investment Strategies
  12. Prediction Markets
  13. Scheduled payments
  14. Payments on delivery
  15. Internet of Things
  16. DAO — Decentralized Autonomous Organization

By now, you should have a general-to-good understanding of what a smart contract is. But how does one leverage the power of smart contracts?

Answer: Scripting languages that can operate on a blockchain, the most well known being Ethereum.

More specifically, Solidity, a programming language used to develop smart contracts on the EVM: Ethereum Virtual Machine.

Fun fact: a sub-unit of Ether (the Ethereum token) value is named after Nick Szabo!

Example of a Smart Contract written in Solidity

Oh you’re not a programmer? And you don’t want to spend months, if not years, learning computer science and the Solidity language? Can’t blame you there. It’s not for everyone.

But smart contracts ARE for everyone and by relation so is Ethereum!

So how does one create a smart contract without developing code…

Answer: Pactum. That’s us! :)

Smart Contracts fronted by a great UX and GUI to enable the power of CSCs. (Configurable Smart Contracts)

Pactum is a DApp that will allow users to choose from a “library” of Smart Contract Templates that fits their general use case. Furthermore, a user can customize the variables and conditions to fit their use case exactly as they see fit. This entails filling out an easy to use web form to customize said Smart Contract, along with automated verification and deployment to the EVM on their behalf.

No Solidity experience required!

Enabling P2P Pacts World Wide.

Encouraging mass adoption of Ethereum.

Stay tuned, more to come…

If you found this helpful, here’s my shameless plugs for referrals:

GetUpside: earn $ back at the pump, at stores, and now restaurants!
Using this link will give you a boost on rewards earned at the pump.
(pumps across the nations. Grocery and restaurants in selected areas)
(click the link on a mobile device)
https://upside.app.link/MATT285479

Coinbase: take quick 5 minute quizzes to learn and earn crypto!
If you’re gonna buy, see below and earn even more free crypto!
https://www.coinbase.com/join/swezey_k

Nexo: ditch your sub 1% savings account and earn anywhere from 5%–12% in interest! Paid out regularly!
If you top-up with $100 or more of crypto, both of us get $10 in BTC!
https://nexo.io/ref/stvbxd5rcf?src=web-link

Digital Ocean: get a free $100 cloud credit
https://m.do.co/c/2e7929d058d5

--

--