Block Chain Programming
Block Chain Programming
Revised Edition
Course Title
BLOCKCHAIN
Objectives and Employable skills and hands-on practice for Blockchain
Expectations
Blockchain is radically improving supply chains, banking and other business
networks, as well as creating new opportunities for innovation.
Blockchain technology provides a dynamic shared ledger that can be applied
to save time when recording transactions between parties, remove costs
associated with intermediaries, and reduce risks of fraud and tampering.
Businesses contain many examples of networks of individuals and
organizations that collaborate to create value and wealth. These networks
work together in markets that exchange assets in the form of goods and
services between the participants.
This is a special course designed to address unemployment in the youth. The
course aims to achieve the above objective through hands on practical training
delivery by a team of dedicated professionals having rich market/work
experience. This course is therefore not just for developing a theoretical
understanding/back ground of the trainees. Contrary to that it is primarily
aimed at equipping the trainees to perform commercially in a market space in
independent capacity or as a member of a team.
The course therefore is designed to impart not only technical skills but also soft
skills (i.e interpersonal/communication skills; personal grooming of the trainees
etc) as well as entrepreneurial skills (i.e. marketing skills; free lancing etc.).
The course also seeks to inculcate work ethics to foster better citizenship in
general and improve the image of Pakistani work force in particular
Main Expectations:
In short, the course under reference should be delivered by professional
instructors in such a robust hands-on manner that the trainees are comfortably
able to employ their skills for earning money (through wage/self-employment)
at its conclusion.
This course thus clearly goes beyond the domain of the traditional training
practices in vogue and underscores an expectation that a market-centric
approach will be adopted as the main driving force while delivering it. The
instructors should therefore be experienced enough to be able to identify the
training needs for the possible market roles available out there. Moreover, they
should also know the strengths and weaknesses of each trainee to prepare
them for such market roles during/after the training.
3 | Blockchain Programming
willingness to be engaged on the practical tasks for a longer time without
boredom and loss of interest because they can see in their mind's eye where
their hard work would take them in short (1-3 years); medium (3 -10 years) and
long term (more than 10 years).
As this tool is expected that the training providers would make arrangements
for regular well planned motivational lectures as part of a coordinated strategy
interspersed throughout the training period as suggested in the weekly lesson
plans in this document.
Course-related motivational lectures online link is available in Annexure-II.
No of Students 25
Learning Place Classroom / Lab
Instructional ● [Link]
Resources ● [Link]
● [Link]
● [Link]
● [Link]
● [Link]
● [Link]
● [Link]
analytics-training/#showmoreoverview50339330
5 | Blockchain Programming
MODULES
● Course Introduction
● Cryptocurrency Issues
● Trust Computing
6 | Blockchain Programming
Outcomes TASK 6
● Digital Signatures
● Decentralization in Blockchain
Consensus Mechanism
7 | Blockchain Programming
● Working Principles of Bitcpin Annexure-I
● Incentive Mechanism
● Nature of Bitcoin
● Forking
● Ethereum Insight
● Blockchain Mechanics-Lesson
● Smart Contracts
● Ethereum Networks
● Security of Ethereum
● Ethereum Blockchain-Lesson
Summary
9 | Blockchain Programming
Add Personal Information
Add Educational details
Add Experience/Portfolio
Add contact details/profile links
10 | Blockchain Programming
Blockchain ● Limitations of Order-Everute Daradiam Details may
be seen at
● State Machine Replication Annexure-I
Internet of Things
● Tangle Simulations I
● Tangle Simulations II
● Corda Blockchain
11 | Blockchain Programming
● Blockchain Services Features of Corda Details may
Blockchain be seen at
Annexure-I
● Corda Ledger
12 | Blockchain Programming
● Leading to the successful employment.
[Link]
[Link]
[Link]
[Link]
science-and-engineering-cse-project-
topics-ideas-for-students/
13 | Blockchain Programming
How to search and Browse the following website and
apply for jobs in at create an account on each website
[Link] – The Middle East
least two labor Leading Job Site
marketplace Monster Gulf – The International
Job Portal
countries (KSA,
Gulf Talent – Jobs in Dubai and
UAE, etc.) the Middle East
Find the handy ‘search’ option at the
top of your homepage to search for the
jobs that best suit your skills.
Select the job type from the first ‘Job
Type’ drop-down menu, next, select
the location from the second drop-
down menu.
Enter any keywords you want to use to
find suitable job vacancies.
On the results page you can search for
part-time jobs only, full-time jobs only,
employers only, or agencies only. Tick
the boxes as appropriate to your
search.
Search for jobs by:
Company
Category
Location
All jobs
Agency
● Industry
14 | Blockchain Programming
● Outlier Detection on Pandas Annexure-I
● Handling Categories
● Regression
● Clustering
● Feature Selection
● Evaluating Models
● Class Exercise
● Feature Selection
● Evaluating Models
● Class Exercise
● Freelancing sites
● Introduction
15 | Blockchain Programming
● Fundamentals of Business Development
● Entrepreneurship
● Startup Funding
● SMART Objectives
● OKRs
● Final Assessment
16 | Blockchain Programming
Annexure-I:
Task
Task Description Week
No.
Blockchain Programming
Bitcoin transactions Consider the steps involved in processing Bitcoin Week-1
17 | Blockchain Programming
Task
Task Description Week
No.
ScriptPubKey address: OP_SHA1
OP_EQUALVERIFY. c. Would implementing this using
Pay-to-script-hash (P2SH) fix the security issue(s) you
identified? Why or why not?
ScriptSig Write a ScriptSig script that will successfully redeem Week-5
8
this transaction. [Hint: it should only be one line long.]
protect Bitcoins Explain why this is not a secure way to protect Bitcoins Week-5
9
using a password
Bitcoin script III. Write a ScriptPubKey that requires demonstrating a Week-6
SHA-256 collision to redeem. b. (Hard) write a
10
corresponding ScriptSig that will successfully redeem
this transaction.
Burning and What are some ways to burn bitcoins, i.e., to make a Week-6
encoding
transaction unredeemable? Which of these allow a
proof of burn, i.e., convincing any observer that no one
11
can redeem such a transaction? [Hint: you have more
control over the contents of the transaction “out” field
than might at first appear.]
burnt bitcoins What are some ways to encode arbitrary data into the Week-6
12
block chain? Which of these result in burnt bitcoins?
JavaScript code One user encoded some JavaScript code into the Week-7
into the block chain
13 block chain. What might have been a motivation for
doing this?
Green addresses: One problem with green addresses is that there is no Week-9
18 | Blockchain Programming
Task
Task Description Week
No.
be enforced by miners. Propose a possible design for
GreenCoin
SPV proofs: Suppose Bob the merchant runs a lightweight client Week-10
and receives the current head of the block chain from
19 | Blockchain Programming
Task
Task Description Week
No.
Soft fork The most prominent Bitcoin soft fork was the addition Week-16
20 | Blockchain Programming
Task
Task Description Week
No.
value, and promises to prove to any customer that her
node is included in the tree (by the standard Merkle
tree proof of inclusion).
Transaction fees. Alice has a large number of coins each of small value Week-20
v, which she would like to combine into one coin. She
constructs a transaction to do this, but finds that the
transaction fee she’d have to spend equals the sum of
21 | Blockchain Programming
Task
Task Description Week
No.
Select the job type from the first ‘Job Type’
drop-down menu, next, select the location from
the second drop-down menu.
Enter any keywords you want to use to find
suitable job vacancies.
On the results page you can search for part-
time jobs only, full-time jobs only, employers
only, or agencies only. Tick the boxes as
appropriate to your search.
Search for jobs by:
Company
Category
Location
All jobs
Agency
Industry
BitCorp If BitCorp uses a 2-out-of-2 instead of a 2-out-3 wallet, Week-23
what steps can they take in advance so that they can
recover even in the event of one of their servers
32
getting broken into (and Mallory not just learning but
also potentially deleting the key material on that
server)?
Exchange rate Speculate about why buying bitcoins in person is Week-23
generally more expensive than buying from an online
exchange. Moore and Christin observe that security
33
breaches and other failures of exchanges have little
impact on the Bitcoin exchange rate. Speculate on why
this might be.
Payments. A Bitcoin payment service might receive thousands of Week-24
34
payments from various users near-simultaneously.
payment protocol How can it tell whether a particular user Alice who Week-25
22 | Blockchain Programming
Task
Task Description Week
No.
of any values printed. Bitcoinia proposes a simple
design: a weekly run of tickets is printed with an
address holding the jackpot on each ticket. This allows
everybody to verify the jackpot exists. The winning
ticket contains the correct private key under the
scratch material. What might happen if the winner finds
the ticket on Monday and immediately claims the
jackpot? Can you modify your design to ensure this
won’t be an issue? Some tickets inevitably get lost or
destroyed. So you’d like to modify the design to roll
forward any unclaimed jackpot from Week n to the
winner in Week n+1. Can you propose a design that
works, without letting the lottery administrators
embezzle funds? Also make sure that the Week n
winner can’t simply wait until the beginning of Week
n+1 to attempt to double their winnings.
23 | Blockchain Programming
Annexure-II:
What is freelancing and how you can make money online - BBCURDU
[Link]
What Is the Role of Good Manners in the Workplace? By Qasim Ali Shah | In Urdu
[Link]
[Link]
[Link]
Success Story of a 23 Year - Old SEO Expert | How This Business Works | Urdu Hindi
Punjabi
[Link]
Failure to Millionaire - How to Make Money Online | Fiverr Superhero Aaliyaan Success
Story
[Link]
24 | Blockchain Programming
Annexure-II
SUGGESTIVE FORMAT AND SEQUENCE ORDER OF MOTIVATIONAL
LECTURE.
Mentor
Mentors are provided an observation checklist form to evaluate and share their observational
feedback on how students within each team engage and collaborate in a learning environment.
The checklist is provided at two different points: Once towards the end of the course. The
checklists are an opportunity for mentors to share their unique perspective on group dynamics
based on various team activities, gameplay sessions, pitch preparation, and other sessions, giving
insights on the nature of communication and teamwork taking place and how both learning
outcomes and the student experience can be improved in the future.
Session- 1 (Communication):
Please find below an overview of the activities taking place Session plan that will support your
delivery and an overview of this session’s activity.
Session- 1 OVERVIEW
Aims and Objectives:
To introduce the communication skills and how it will work
Get to know mentor and team - build rapport and develop a strong sense of a team
Provide an introduction to communication skills
Team to collaborate on an activity sheet developing their communication, teamwork, and
problem-solving
Gain an understanding of participants’ own communication skills rating at the start of the
program
25 | Blockchain Programming
Understand what Flip Chart
communication skills Marker
mean
Understand what
skills are important
for communication
skills
26 | Blockchain Programming
ACTIVITY”
As a team, collaborate on a creative brainstorm on social
problems in your community. Vote on the areas you feel most
passionate about as a team, then write down what change you
would like to see happen.
Make sure the teams have the opportunity to talk about how they
want to work as a team through the activities e.g. when they
want to complete the activities, how to communicate, the role of
the project manager, etc. Make sure you allocate each young
person a specific week that they are the project manager for the
weekly activities and make a note of this.
Type up notes for their strategy if this is helpful - it can be
included underneath the Team Contract.
Session Close: MENTOR: Close the session with the opportunity for anyone to
5 minutes ask any remaining questions.
Instructor:
Facilitate the wrap-up of the session. A quick reminder of what is
coming up next and when the next session will be.
27 | Blockchain Programming
MOTIVATIONAL LECTURES LINKS.
28 | Blockchain Programming
Annexure-III
SUCCESS STORY*
29 | Blockchain Programming
4. Message to others Take the training opportunity seriously
Impose self-discipline and ensure regularity
(under training) Make Hard work pays in the end so be always ready for
the same.
*Example pattern
Note: Success story is a source of motivation for the trainees and can be presented in several
ways/forms in a NAVTTC skill development course as under: -
1. To call a passed out successful trainee of the institute. He will narrate his success story to
the trainees in his own words and meet trainees as well.
2. To see and listen to a recorded video/clip (5 to 7 minutes) showing a successful trainee
Audio-video recording that has to cover the above-mentioned points.*
3. The teacher displays the picture of a successful trainee (name, trade, institute,
organization, job, earning, etc) and narrates his/her story in the teacher’s own motivational
words.
* The online success stories of renowned professional can also be obtained from Annex-II
30 | Blockchain Programming
Annexure-IV:
Workplace/Institute Ethics Guide
Work ethic is a standard of conduct and values for job performance. The modern definition of what
constitutes good work ethics often varies. Different businesses have different expectations. Work
ethic is a belief that hard work and diligence have a moral benefit and an inherent ability, virtue, or
value to strengthen character and individual abilities. It is a set of values-centered on the
importance of work and manifested by determination or desire to work hard.
The following ten work ethics are defined as essential for student success:
1. Attendance:
Be at work every day possible, plan your absences don’t abuse leave time. Be punctual
every day.
2. Character:
Honesty is the single most important factor having a direct bearing on the final success of
an individual, corporation, or product. Complete assigned tasks correctly and promptly.
Look to improve your skills.
3. Team Work:
The ability to get along with others including those you don’t necessarily like. The ability to
carry your weight and help others who are struggling. Recognize when to speak up with an
idea and when to compromise by blend ideas together.
4. Appearance:
Dress for success set your best foot forward, personal hygiene, good manner, remember
that the first impression of who you are can last a lifetime
5. Attitude:
Listen to suggestions and be positive, accept responsibility. If you make a mistake, admit it.
Values workplace safety rules and precautions for personal and co-worker safety. Avoids
unnecessary risks. Willing to learn new processes, systems, and procedures in light of
changing responsibilities.
6. Productivity:
Do the work correctly, quality and timelines are prized. Get along with fellows, cooperation
is the key to productivity. Help out whenever asked, do extra without being asked. Take
pride in your work, do things the best you know-how. Eagerly focuses energy on
accomplishing tasks, also referred to as demonstrating ownership. Takes pride in work.
31 | Blockchain Programming
7. Organizational Skills:
Make an effort to improve, learn ways to better yourself. Time management; utilize time and
resources to get the most out of both. Take an appropriate approach to social interactions
at work. Maintains focus on work responsibilities.
8. Communication:
Written communication, being able to correctly write reports and memos.
Verbal communications, being able to communicate one on one or to a group.
9. Cooperation:
Follow institute rules and regulations, learn and follow expectations. Get along with fellows,
cooperation is the key to productivity. Able to welcome and adapt to changing work
situations and the application of new or different skills.
10. Respect:
Work hard, work to the best of your ability. Carry out orders, do what’s asked the first time.
Show respect, accept, and acknowledge an individual’s talents and knowledge. Respects
diversity in the workplace, including showing due respect for different perspectives,
opinions, and suggestions.
32 | Blockchain Programming