What are Smart Contracts?

In simple language, a Smart Contract is computer code that allows you to trade with as wide a range of people without any third-party involvement in creating the agreement. With the Blockchain, you will be able to automatically verify performance and payment.

Start with the basics…

A traditional contract contains legal language on vast documents and rely on third parties for enforcement. If it goes wrong, you are relying on a third party — probably the courts — which takes time and money to deal with.

A Smart Contract defines the rules and consequences of an agreement in the same way you would with a traditional paper-based contract. Except with the blockchain, the obligations, benefits and penalties which apply to all the parties in various circumstances, are automatically executed by a distributed ledger system.

A Smart Contract behaves in a predefined way. When X happens, do Y and then when Y is completed do Z and so on if required. This is the automated part.

A distributed ledger?

Blockchain relies on a network of computers not controlled by any one entity. The contract is encrypted for security. The key is that as multiple computers will hold the contract (though the individual owners have no access to that contract directly, so it is private) you will have multiple points of verification.

The various systems in the distributed ledger will then come to an individual agreement as to the terms of the contract and await notification of performance of the terms. No one party can manipulate the system, because you will require multiple verifications of the contract having been fulfilled before the reward part of the agreement is triggered.

Step by step

  1. Define your smart contract. It can be a simple task that performs one operation and get the benefits for that. Do not perform the one task and get the penalty. If you need multiple steps, then you can have those as well.
  2. Have the distributed ledger transmit the contract details.
  3. Have the distributed ledger execute the agreement for you and confirm either that it has been performed or not.

This is part of our introductory guide to Blockchain technologies. See the other posts in this series:

  1. What is Blockchain?
  2. Cryptocurrency
  3. Smart contracts
  4. Public vs private chains
  5. Delegated Proof of Stake
Find out more about Blockpool at https://blockpool.io/