Lecture 4
Lecture 4
Smart Contract
● The concept of the smart contract was there well before the advent of
the Bitcoin.
● Computer scientist Nick Szabo detailed his idea of cryptocurrency Bit
gold as a sort of a precursor for Bitcoin.
● He also outlined the concept of smart contract in his 1996 publication.
● In fact, Szabo coined the term smart contract more than 20 years ago.
● Smart contract is a centerpiece and main thrust of Ethereum
blockchain.
● It is the good, bad and the ugly of the blockchain technology.
● It's a powerful feature.
● Improper design and coding of a smart contract, resulted in significant
failures such as DAO hack and Parity wallet lockup.
What Will going to learn
● Design
● Code
● Deploy
● Execute a smart contract.
Learning Objective
● Pragma directive,
● Name of the contract
● Data or the state variable that define the state of the contract,
● Collection of function to carry out the intent of a smart contract.
● Identifiers representing these elements are restricted to ASCII
character set.
● Make sure you select meaningful identifiers and follow camel case
convention in naming them.
Remix
Example 2