Lecture1 2
Lecture1 2
Essentials
Dr. Abdullah Yousafzai
Instructor
DR ABDULLAH YOUSAFZAI
2
Our Objective at UCP
UCP’s Vision
To become an internationally acclaimed University in teaching and research.
UCP’s Mission
To provide quality education leading to research, employability and
entrepreneurial pursuits creating societal impact, serving the nation and the
world.
BSSE -- PEOs
PEO 1– Contribute effectively to software development industry by the
application of requisite technical skills.
PEO 2– Demonstrate advancement in the field of software engineering by
enhancing their knowledge and skills.
PEO 3– Demonstrate ethical values and contribute positively towards the
society.
3
UCP Core Values(بنیادی
)اقدار
Integrity: We put honesty and ethical responsibility at the core of
everything we do.
Respect: We treat everyone with dignity and value the wisdom and
expertise of the people that surround us.
Tolerance: We accept the existence of different views, ideas, and people
even if we may disagree with them.
Commitment: We are passionate and determined to work hard in order
to achieve our goals.
Service: We believe in helping our community and working together to
empower each other.
Creativity: We celebrate innovation and encourage new ways to think.
4
Course Methodology
Lectures
16 power point lectures
Study relevant sections of Text/Ref books
Assignments
Assignment should done on individual basis
To be submitted exactly when due according to the direction.
10% marks deduction per day for being late.
No submission after 5 days (120 hours).
Quizzes
Un-announced.
No make-up for quizzes
Exam Pattern
Exams to include complete material in covered chapters
MCQs, short answers, problems, design questions
5
Academic Honesty
Your work in this class must be your own
If students are found to have:
◦ collaborated excessively, or
◦ copied/shared answers
6
Classroom Etiquettes
Attendance policy strictly in accordance with the Univ policy.
If you come 10 – 20 minutes late, you will be marked late otherwise absent – no relaxation.
7
Administrative
Information
Office : Cabin 16, Gym Building.
Counselling Hours : 12:55-13:55 (Tuesday)
Email : [email protected].
Phone, I generally prefer to communicate on emails so if you
found my number don’t call/message.
Prior appointment is mandatory for coming to my office during
counselling hours.
Saturday & Sunday is OFF, so no one will be entertained on OFF
days.
8
Grading Policy
Quizzes (Average of all) 04 15%
Assignments (Average of all) 04 10%
Project 10%
Mid-exam ..….…. 20%
Final-exam .……… 40%
Class participation ..….…. 05%
Class Participation means how much you adhere to behavioral
conduct (noise making, murmuring).
This will be monitored/recorded for each student.
9
What is
Blockchain
?
Why a course on
Blockchain?
•Have you seen the news lately?
•Bitcoin
•Ethereum
•Solana
•Blockchain for supply chain management
•Blockchain for energy management ……
•Soon: Block chain for Everything
•Is it just a hype?
•Hopefully this course will teach
•Even if you do not care about cryptocurrency and its
market volatility
11
Let’s First talk about
Banking
Regulatory Agency
(State Bank of Pakistan)
12
How do you transact?
•You write a check or do internet transaction to pay a payee
•Bank checks if you have balance > transaction amount
•If yes, it debits your account by
• balance = balance ‐ transaction_amount
•credit’s payee’s account by.
• balance = payee.balance + transaction_amount
13
Bank Frauds
•You find a check was used to pay someone but you never wrote the check
• Someone forged your check and/or signature
•You did sign a check for x amount, but the amount field was modified
• How do you prove to the bank that an extra 0 was not there in your signing time?
•The monthly statement says that you did a transaction but you did not recall or
the amount of a transaction is different from what you had done
• Someone got your password, and possibly redirected OTP to another SIM (SIM Fraud)
• Bank employees themselves might have done something
•How do you argue to the bank? (Non‐repudiation)
•How do you argue that the amount was modified? (Integrity)
•Finally, do you tally your transactions when you receive your monthly
statement?
• Most people do not
14
Digital Currency
Idea
15
Digital Currencies
• Origins of digital currencies date back to the 1990s Dot-com bubble.
• Precursory ideas for digital currencies were presented in electronic
payment methods such as the Sabre (travel reservation system).
• In 1983, a research paper titled "Blind Signatures for Untraceable
Payments" by David Chaum introduced the idea of digital cash.
• e-gold was the first widely used Internet money, introduced in 1996,
and grew to several million users before the US Government shut it
down in 2008.
• Another known digital currency service was Liberty Reserve,
founded in 2006;
• Q coins or QQ coins, were used as a type of commodity-based
digital currency on Tencent QQ's messaging platform and emerged
in early 2005.
Cryptocurrencies
• A whitepaper posted online in 2008: “Bitcoin: A Peer-to-Peer
Electronic Cash System,” by Satoshi Nakamoto.
• Described a distributed cryptocurrency system not regulated by any
government.
• The system went live on January 2009.
• Now “Satoshi Nakamoto” is only associated with certain public keys
on Bitcoin blockchain.
• She/He/They was/were active on forums/emails/etc. until 2010.
• Currently there are more than 22000 cryptocurrencies
17
Cryptocurrencies
• The use of cryptographic primitives and distributed
consensus protocols to secure virtual money creation and
flow between various parties.
• “A type of unregulated, digital money, which is issued and
usually controlled by its developers, and used and accepted
among the members of a specific virtual community” -
European Central Bank.
18
Blockchain
• An append only ledger.
• Simply an immutable record of all transactions and actions
performed in the system so far.
• Each page of this ledger is called a block.
• These pages are glued together by using a hash chain.
• Adding a new page on the ledger is done through a process called
mining.
19
Utility of Blockchains
• Initially, the goal was to build a decentralized virtual currency
medium.
• Interest has shifted towards providing a decentralized service on top
of this medium.
• Lately blockchains on their own (without involving any currency) are
used in several applications.
• Mainly to support transparency and public verifiability.
• Examples include healthcare, business management, and supply
chains.
20
What is Blockchain?
It is data structure
It looks like a linked list
It is Replicated.
It is Distributed.
Consistency maintained by Consensus
Cryptographically linked
Cryptographically assured integrity of data
Used as
Immutable Ledger of events, transactions or time stamped data
Tamper resistant log
Platform to Create and Transact in Cryptocurrency
log of events/transactions unrelated to currency
21
Other Applications: Land
Record
•You buy a piece of land
•Someone else claims to own the land
•But the one who sold you the land showed you paper work
•Land registry office earlier said that the owner was rightful
•Now they say that they made a mistake – it was owned by
the other person
•You already paid for the land – to the first person
•First person goes missing
How does any one prove who changed the land record?
•The government employees?
22
A student Online Grade
Submission and
Management System
23
Perspectives
24
Why not bitcoin?
25
Why not bitcoin?
26
Why not bitcoin?
27
Another perspective – Loss of 145 USD worth cryptocurrency
28
Another perspective
29
Bitcoins and other cryptocurrencies
30
Again, What is a blockchain?
31