1
Smart Contract
MD SAQUIB NASIR KHAN
2
Topic will
covered
Introduction
Problems
Blockchain
Conclusion
Working of Smart
contract
TOC
3
Applications
Copyright
Insurance
Government
Services
Property
Management
Employee
Contract
Online Betting
Cloud Storage Asset
Management
Identity
Management
4
Dubai - "Adopting Blockchain technology
Dubai stands to unlock 5.5 billion dirham
in savings annually in document
processing alone — equal to the one Burj
Khalifa’s worth of value every year."
Hero Motocorp – Vendor management
using Blockchain can reduce 80 % Cost
5
Why We Need Smart
Contract
6
If two people want to make a contract related to any thing they need trust each
other.
1. If they know each other trusting is easy
2. If they don’t know each other but physically present in front of each other
that may still do the job.
3. But if they don’t know each other and only connected virtually then trusting
each other become a issue.
Should I trust
him with my
money
Should I sell my
property to him?
Problem
7
As solutions a intermediator introduced, Like online shopping both trust
Amazon, Ebay, Flipkart. Same way for property we trust Gov. Want to buy a
home on lone, start trusting bank etc..
Happy Happy
Solution
8
Problem 1
This Intermediator Bank, Shopping website, Government are run by Human, So there is chances of
Corruptions also.
Problem 2
When everyone started doing business or transaction through Intermediators, They started to keep
records about each client or customers. So all information are stored centralized.
So if you look back history attackers primary motive is always information. And if they get access of a
centralized server contain information it’s a lottery for them
9
Yahoo
2013-
2014
UBER
2016
OPM
2012 -
2014
Ebay
2014
JP Morgan
2014
Stuxnet
2005 - 2010
3 Billion user
Account
57 Million User
Data
22 million current
and former federal
employees
140 Million User
Account
76 Million user 7
Million Small
Business
Iran Nuclear
power program
Data Breaches
10
Problem 3
Privacy – When ever you do any activity online, either your ISP or The End point know about your
activity. That also store on centralized server for future use.
11
Problem 4
Impersonation / Identity Theft –
1. If some use a stole identity
2. If someone deny after contract
Problem 5
Double Spending problem
12
Problem 6
Countries boundaries – Our money, tax system, Law are country oriented. How you are going to
deal with problem related to you cross border trading? Which law or which tax system to follow?
13
We look into
how Smart
Contract
helping us to
solve This
problems
Authentication
Nonrepudiation
Data Privacy
Confidentiality
Integrity
14
Cryptographi
c
Algorithms
Decentralize
d Network
Economics
Application
Solution - Cryptoeconomics
15
OF
Working
Smart Contract
16
Traditional Contract
Want to buy a
house
Want to sell a
house
17
A smart contract is a
computer protocol intended to
digitally facilitate, verify,
or enforce the negotiation or
performance of a contract.
Smart contracts allow the
performance of credible
transactions without third
parties
What is Smart contract ?
18
Smart Contract – Blockchain Implementation
A list of predefine condition, if meet the condition then it will execute
and no 3rd party require
IF
IF
IF
IF
IF
IF
19
Step 1
20
Step 2
21
“If” Condition will
verify the
satisfaction
Yes
Step 3
22
“If” Condition will
verify the
satisfaction
No
Step 3
23
Immuta
ble
Why we should trust Smart Contract ?
24
Immuta
ble
25
A
B
C
D
E
26
A
B
C
D
E
51% Attack
27
Immuta
ble
What Make Smart Contract Immutable?
28
What is Blockchain?
Immuta
ble
29
Blockchain
Satoshi Nakamoto
He introduced blockchain network, A decentralized P2P network. He published paper on bitcoin, helping people
share some value over network without any intermediators.
2008
30
Ethereum
2014 Ethereum project started with dream of using BlockChain technology for other application
2014
31
Blockchain
In layman term Blockchain is a number of block contain some
information and mathematically link with each other.
Now we will look into
1. What information one block contain
2. How they link with each other.
32
1. Data
Blockchain
1. What information one block contain
Contract between A & B (Digital)
+
Both of their Digital Signature
And verified by “IF” condition
33
Game Time (How Digital
Signature is done)
34
Game Time (How Digital
Signature is done)
35
Game Time (How Digital
Signature is done)
36
1. Data
Blockchain
1. What information one block contain
2. Time Stamp
This Photo by Unknown Author is licensed
under CC BY
37
1. Data
Blockchain
1. What information one block contain
2. Time Stamp
3. Every block store hash value of data with time stamp, as we know hash are use for data integrity.
Here every data are bind with timestamp so not only if data manipulated hash will change, if time
change by even by one second the hash will change also . This will avoid hash collision and provide
more data security
3. Hash (Data + Time Stamp)
LETTERS HASH
Paladion 1839de10415111d4ccf12e9f4787a053b320490b7d80b5ea0152d4c4cb5cab78
PALADION 9ca9837d549b6914ca6cc6dad790bff40b72248c6f12294ba95484061f5720cf
paladion 81e200925ec4fba1aff54e7cfb5d5fec292dba6cd9dbb4576505bf136d3ee6b2
38
1. Data
Blockchain
1. What information one block contain
2. Time Stamp
4.
4. Will Discuss after point 5
3. Hash (Data + Time Stamp)
39
1. Data
Blockchain
1. What information one block contain
2. Time Stamp
4.
5. Block Hash (1 + 2 + 3 + 4)
3. Hash (Data + Time Stamp)
5. If any change happen at 1,2,3 & 4 the hash of the
block will change. So that will protect this block from
manipulation
40
Blockchain
2. How they link with each other.
Information – Genesis block
Previous block hash – 00000
Current Block Hash – XYZ22
Information – Smart Contract 1
Previous block hash – XYZ22
Current Block Hash – ABC57
Information –Smart Contract 2
Previous block hash – ABC57
Current Block Hash – FGD53
41
Data Hash with time
stamp
P o i n t A
Current Block HashP o i n t B
Previous Block HashP o i n t C
Digital SignatureP o i n t D
Recap – Which all security features one
block have
42
How Blockchain Network Works
43
A
B
C
D
E
A
B
C
D
E
Centralized P2P
44
A
B
C
D
E
In This Network if one person create a block, Next step
he will do is broadcast the block towards everyone in
the same network
A
B
C
D
E
45
A
B
C
D
E
A
B
C
D
E
46
Both Entity will generate their own Public & Private Key Pair using Cryptographic Algorithm
Each of them will use their public key as their identity in a network not there actual Name
Their Private key will act as their digital signature – So Contract will be sign with there
private key, and if need to verify public key will be use
Private key is always kept secure, and public key can be share with any one
Identity of every entity in blockchain are secure to maintain privacy
47
Problem 1 – Intermediators Blockchain – Decentralized P2P Network
Problem 2 – Hacker & Data
Manipulation
Hash & Encryption
Problem 3 & 4 – Privacy Instead of identity blockchain use public & Private key
Problem 5 – Identity Theft /
Impersonation
Digital Signature
Beginning of the slide we marked some problem – Let see how many of them are solved by Block chain
48
Some time we don’t need to
Upgrade the technology, we
need to update ourselves first
49
• Blockchain – 1991 (Stuart & Scott)
• Market Tree - 1992, Bayer, Haber and Stornetta
• Proof of Work – 1993 Cynthia Dwork and Moni Naor
• Hash SHA2 – 2004
• Public Key – 1976, Diffie and Martin Hellman
• RSA - 1977: Ronald Rivest, Adi Shamir and Len Adleman
• Digital Signature - 1999
2008 – Satoshi Nakamoto
50
Any
Questions ?
Do question, even the
basics! You will be a
fool for once! If you
don't, you will be, for a
lifetime..”
― Himmilicious
51
THANK YOU
0 0 6 S a q u i b @ g m a i l . c o m
MD Saquib Nasir Khan
Threat Hunting

More Related Content

PPTX
Smart contract
PDF
Blockchain
PDF
Blockchain
PDF
An Introduction to Blockchain Technology
PDF
Examples of Smart Contracts
PDF
Introduction to Blockchain
PPTX
Understanding blockchain
PPTX
Creating Smart Contract
Smart contract
Blockchain
Blockchain
An Introduction to Blockchain Technology
Examples of Smart Contracts
Introduction to Blockchain
Understanding blockchain
Creating Smart Contract

What's hot (20)

PPTX
Blockchain Technology
PPTX
BLOCKCHAIN
PDF
Introduction to Blockchain
PDF
Formation BLOCKCHAIN
PDF
Block chain 101 what it is, why it matters
PDF
Blockchain Explained | Blockchain Simplified | Blockchain Technology | Blockc...
PPTX
Blockchain Intro to Hyperledger Fabric
PPTX
Blockchain Interview Questions And Answers | Blockchain Technology Interview ...
PDF
PoW vs. PoS - Key Differences
PPTX
Blockchain basics
PDF
Blockchain Presentation
PDF
Blockchain Technology | Blockchain Explained | Blockchain Tutorial | Blockcha...
PPTX
Smart Contract & Ethereum
PDF
PPTX
Blockchain concepts
PPTX
Blockchain
PPTX
Blockchain
PDF
Blockchain
PPTX
Blockchain - HyperLedger Fabric
Blockchain Technology
BLOCKCHAIN
Introduction to Blockchain
Formation BLOCKCHAIN
Block chain 101 what it is, why it matters
Blockchain Explained | Blockchain Simplified | Blockchain Technology | Blockc...
Blockchain Intro to Hyperledger Fabric
Blockchain Interview Questions And Answers | Blockchain Technology Interview ...
PoW vs. PoS - Key Differences
Blockchain basics
Blockchain Presentation
Blockchain Technology | Blockchain Explained | Blockchain Tutorial | Blockcha...
Smart Contract & Ethereum
Blockchain concepts
Blockchain
Blockchain
Blockchain
Blockchain - HyperLedger Fabric
Ad

Similar to Blockchain Smart Contract v5 (20)

PPTX
Blockchain.pptx
PDF
Blockchain External.pdf
PPTX
BlockChain for the Banker
ODT
Ultimate guide to understand- What is Blockchain Technology
PPTX
Tyntec keynote, Hybrid Authentication in Decentralized Banking, Marco Lafrent...
PDF
Blockchain presentation v0617
PDF
A beginners Guide to NFTs.pdf
PDF
Lapine blockchain introduction 10/04/2018
PDF
AWIP Pink Innov Blockchain Workshop deck - May 23, 2019
PPTX
Bitcoin Cryptocurrency
PDF
Blockchain tutorial for MBA
PPTX
Crypto Mining Project Proposal by Slidesgo.pptx
PPTX
Intro to Crypto Knowledge by Abid Hussain.pptx
PPTX
What problems can blockchain solve
PPTX
Machine learning presentation in using pyhton
PDF
Crypto currency secrets
DOCX
Blockchain technology.docx
PDF
From 7331 to legal : a selection of blockchain discussion topics
PDF
20190316 - CLBFest - 1337 to legal - Koen Vingerhoets
PPTX
How does blockchain developer help improving the banking & finance sector
Blockchain.pptx
Blockchain External.pdf
BlockChain for the Banker
Ultimate guide to understand- What is Blockchain Technology
Tyntec keynote, Hybrid Authentication in Decentralized Banking, Marco Lafrent...
Blockchain presentation v0617
A beginners Guide to NFTs.pdf
Lapine blockchain introduction 10/04/2018
AWIP Pink Innov Blockchain Workshop deck - May 23, 2019
Bitcoin Cryptocurrency
Blockchain tutorial for MBA
Crypto Mining Project Proposal by Slidesgo.pptx
Intro to Crypto Knowledge by Abid Hussain.pptx
What problems can blockchain solve
Machine learning presentation in using pyhton
Crypto currency secrets
Blockchain technology.docx
From 7331 to legal : a selection of blockchain discussion topics
20190316 - CLBFest - 1337 to legal - Koen Vingerhoets
How does blockchain developer help improving the banking & finance sector
Ad

Recently uploaded (20)

DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PPTX
20th Century Theater, Methods, History.pptx
PDF
HVAC Specification 2024 according to central public works department
PPTX
Computer Architecture Input Output Memory.pptx
PDF
My India Quiz Book_20210205121199924.pdf
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PPTX
Introduction to pro and eukaryotes and differences.pptx
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
International_Financial_Reporting_Standa.pdf
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Unit 4 Computer Architecture Multicore Processor.pptx
History, Philosophy and sociology of education (1).pptx
FORM 1 BIOLOGY MIND MAPS and their schemes
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
20th Century Theater, Methods, History.pptx
HVAC Specification 2024 according to central public works department
Computer Architecture Input Output Memory.pptx
My India Quiz Book_20210205121199924.pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Introduction to pro and eukaryotes and differences.pptx
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Cambridge-Practice-Tests-for-IELTS-12.docx
Paper A Mock Exam 9_ Attempt review.pdf.
What if we spent less time fighting change, and more time building what’s rig...
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
International_Financial_Reporting_Standa.pdf

Blockchain Smart Contract v5

  • 4. 4 Dubai - "Adopting Blockchain technology Dubai stands to unlock 5.5 billion dirham in savings annually in document processing alone — equal to the one Burj Khalifa’s worth of value every year." Hero Motocorp – Vendor management using Blockchain can reduce 80 % Cost
  • 5. 5 Why We Need Smart Contract
  • 6. 6 If two people want to make a contract related to any thing they need trust each other. 1. If they know each other trusting is easy 2. If they don’t know each other but physically present in front of each other that may still do the job. 3. But if they don’t know each other and only connected virtually then trusting each other become a issue. Should I trust him with my money Should I sell my property to him? Problem
  • 7. 7 As solutions a intermediator introduced, Like online shopping both trust Amazon, Ebay, Flipkart. Same way for property we trust Gov. Want to buy a home on lone, start trusting bank etc.. Happy Happy Solution
  • 8. 8 Problem 1 This Intermediator Bank, Shopping website, Government are run by Human, So there is chances of Corruptions also. Problem 2 When everyone started doing business or transaction through Intermediators, They started to keep records about each client or customers. So all information are stored centralized. So if you look back history attackers primary motive is always information. And if they get access of a centralized server contain information it’s a lottery for them
  • 9. 9 Yahoo 2013- 2014 UBER 2016 OPM 2012 - 2014 Ebay 2014 JP Morgan 2014 Stuxnet 2005 - 2010 3 Billion user Account 57 Million User Data 22 million current and former federal employees 140 Million User Account 76 Million user 7 Million Small Business Iran Nuclear power program Data Breaches
  • 10. 10 Problem 3 Privacy – When ever you do any activity online, either your ISP or The End point know about your activity. That also store on centralized server for future use.
  • 11. 11 Problem 4 Impersonation / Identity Theft – 1. If some use a stole identity 2. If someone deny after contract Problem 5 Double Spending problem
  • 12. 12 Problem 6 Countries boundaries – Our money, tax system, Law are country oriented. How you are going to deal with problem related to you cross border trading? Which law or which tax system to follow?
  • 13. 13 We look into how Smart Contract helping us to solve This problems Authentication Nonrepudiation Data Privacy Confidentiality Integrity
  • 16. 16 Traditional Contract Want to buy a house Want to sell a house
  • 17. 17 A smart contract is a computer protocol intended to digitally facilitate, verify, or enforce the negotiation or performance of a contract. Smart contracts allow the performance of credible transactions without third parties What is Smart contract ?
  • 18. 18 Smart Contract – Blockchain Implementation A list of predefine condition, if meet the condition then it will execute and no 3rd party require IF IF IF IF IF IF
  • 21. 21 “If” Condition will verify the satisfaction Yes Step 3
  • 22. 22 “If” Condition will verify the satisfaction No Step 3
  • 23. 23 Immuta ble Why we should trust Smart Contract ?
  • 27. 27 Immuta ble What Make Smart Contract Immutable?
  • 29. 29 Blockchain Satoshi Nakamoto He introduced blockchain network, A decentralized P2P network. He published paper on bitcoin, helping people share some value over network without any intermediators. 2008
  • 30. 30 Ethereum 2014 Ethereum project started with dream of using BlockChain technology for other application 2014
  • 31. 31 Blockchain In layman term Blockchain is a number of block contain some information and mathematically link with each other. Now we will look into 1. What information one block contain 2. How they link with each other.
  • 32. 32 1. Data Blockchain 1. What information one block contain Contract between A & B (Digital) + Both of their Digital Signature And verified by “IF” condition
  • 33. 33 Game Time (How Digital Signature is done)
  • 34. 34 Game Time (How Digital Signature is done)
  • 35. 35 Game Time (How Digital Signature is done)
  • 36. 36 1. Data Blockchain 1. What information one block contain 2. Time Stamp This Photo by Unknown Author is licensed under CC BY
  • 37. 37 1. Data Blockchain 1. What information one block contain 2. Time Stamp 3. Every block store hash value of data with time stamp, as we know hash are use for data integrity. Here every data are bind with timestamp so not only if data manipulated hash will change, if time change by even by one second the hash will change also . This will avoid hash collision and provide more data security 3. Hash (Data + Time Stamp) LETTERS HASH Paladion 1839de10415111d4ccf12e9f4787a053b320490b7d80b5ea0152d4c4cb5cab78 PALADION 9ca9837d549b6914ca6cc6dad790bff40b72248c6f12294ba95484061f5720cf paladion 81e200925ec4fba1aff54e7cfb5d5fec292dba6cd9dbb4576505bf136d3ee6b2
  • 38. 38 1. Data Blockchain 1. What information one block contain 2. Time Stamp 4. 4. Will Discuss after point 5 3. Hash (Data + Time Stamp)
  • 39. 39 1. Data Blockchain 1. What information one block contain 2. Time Stamp 4. 5. Block Hash (1 + 2 + 3 + 4) 3. Hash (Data + Time Stamp) 5. If any change happen at 1,2,3 & 4 the hash of the block will change. So that will protect this block from manipulation
  • 40. 40 Blockchain 2. How they link with each other. Information – Genesis block Previous block hash – 00000 Current Block Hash – XYZ22 Information – Smart Contract 1 Previous block hash – XYZ22 Current Block Hash – ABC57 Information –Smart Contract 2 Previous block hash – ABC57 Current Block Hash – FGD53
  • 41. 41 Data Hash with time stamp P o i n t A Current Block HashP o i n t B Previous Block HashP o i n t C Digital SignatureP o i n t D Recap – Which all security features one block have
  • 44. 44 A B C D E In This Network if one person create a block, Next step he will do is broadcast the block towards everyone in the same network A B C D E
  • 46. 46 Both Entity will generate their own Public & Private Key Pair using Cryptographic Algorithm Each of them will use their public key as their identity in a network not there actual Name Their Private key will act as their digital signature – So Contract will be sign with there private key, and if need to verify public key will be use Private key is always kept secure, and public key can be share with any one Identity of every entity in blockchain are secure to maintain privacy
  • 47. 47 Problem 1 – Intermediators Blockchain – Decentralized P2P Network Problem 2 – Hacker & Data Manipulation Hash & Encryption Problem 3 & 4 – Privacy Instead of identity blockchain use public & Private key Problem 5 – Identity Theft / Impersonation Digital Signature Beginning of the slide we marked some problem – Let see how many of them are solved by Block chain
  • 48. 48 Some time we don’t need to Upgrade the technology, we need to update ourselves first
  • 49. 49 • Blockchain – 1991 (Stuart & Scott) • Market Tree - 1992, Bayer, Haber and Stornetta • Proof of Work – 1993 Cynthia Dwork and Moni Naor • Hash SHA2 – 2004 • Public Key – 1976, Diffie and Martin Hellman • RSA - 1977: Ronald Rivest, Adi Shamir and Len Adleman • Digital Signature - 1999 2008 – Satoshi Nakamoto
  • 50. 50 Any Questions ? Do question, even the basics! You will be a fool for once! If you don't, you will be, for a lifetime..” ― Himmilicious
  • 51. 51 THANK YOU 0 0 6 S a q u i b @ g m a i l . c o m MD Saquib Nasir Khan Threat Hunting

Editor's Notes

  • #3: Prerequisite – Cryptography, Digital signature, Hash fanction
  • #5: Dubai – 2021 - 2022
  • #6: 89 215 212 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  • #7: Trust Issue - 1. know each other 2. Don’t know but in front of 3. Virtually
  • #8: Shopping example
  • #9: Problem 1 - Corruption (Russian fall & Zimbabwean 1 dollar ) bear story Problem 2 - records in centralized server & Hacker
  • #11: Online privacy
  • #12: Problem4 - Identity theft, impersonation, non repudiation Problem 5 - Double spending (Vending machine)
  • #13: Country oriented money, law & tax system
  • #49: 89 215 212 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.