Module 3
Module 3
Understanding Blockchain
● Evolution of Cryptocurrency
○ Barter
○ Era of Gold Coins
○ FIAT Currency
○ Using Checks
○ Promises of E-Wallet
■ The biggest problem with e-wallet is that it is still tied up with an existing financial
structure.
■ financial systems can have a good degree of corruption
■ People started making mass withdrawals from banks.
■ They had two options at that time. Either to keep all their money at home, which is not a
great idea, or keep it in a bank, which they no longer trusted
■ https://www.britannica.com/video/187664/history-money
●
Understanding Blockchain:Centralized Systems
Understanding Blockchain:Decentralized
Systems
Understanding Blockchain:Distributed Systems
What Is Blockchain?
What Is Blockchain?
centralized systems
● central database, a person can modify and hack the records. Such hacking
has happened to many banks and customers have suffered.
● valuation of the property and ensure that it belongs to the person from whom
you are buying it? Property information can easily be tampered with, making
you pay more than it’s worth
● identifying organic vegetables from non-organic one. It would be hard to just
trust those labels, which can easily be stamped on.
● case of leasing a car for a couple of years. How do you ensure that car is
insured and within regulations for that country for driving?
Blockchain systems
● The Blockchain is transforming the way we maintain ledgers. ●
https://youtu.be/SSo_EIwHSd4
What Is a Block?
● A block is a unit containing a set of
confirmed transactions. If Blockchain is
a ledger, think of a block as a page or
book
● Each block, as shown in Figure 7-13, is
composed of the header, which contains
information like the previous block hash
reference, the timestamp on which block is
generated, and so on, along with the body.
● The body of the block contains a list of the
accepted transaction. The header is hashed
cryptographically to generate a new block. ●
https://youtu.be/J2EMvYQHRXc
What Is a Block?
● Every transaction is encrypted (hashed)
with a public-private key and every header
is hashed to generate a new block.
● Due to this implementation, every
transaction has a record associated with
the new block.
● The header also contains the address of the
previous block, thus the chain becomes
incorruptible.
● As more and more transactions happen, the
Blockchain transaction appends only and
creates a chronologically growing timestamp
database of transactional data, as shown in
Figure 7-14.
● It thereby creates a chain block, hence the
name Blockchain.
Benefits of Blockchain
Benefits of Blockchain
● Provides a secured way to avoid cybersecurity and fraud risk by using trust
secured algorithms.
● By eliminating third-party intermediaries and overhead cost, ●
Blockchain has great potential to reduce transaction feeds. ●
Provides alternate options of trust using centralized systems. ●
Provides ways for identification and verification.
Smart Contracts
● Smart Contracts are self-executing contracts. They are also known as digital
contracts.
● The Smart Contract can be treated as a computer program that helps in
executing contracts digitally
● Smart Contracts, computers can take an action if some requirements get
fulfilled
● Smart Contracts are a suite of various if-else statements
● Smart Contracts also bring options to revise, execute, or even propose
contracts, thereby ensuring the highest level of traceability and trust
Smart Contracts
Types of Blockchain
Types of Blockchain
● Microsoft provides a suite of The setup done by these companies was called
Blockchain as a Service (BaaS).
● Ethereum is open source and is more suited for creating a private Blockchain.
● Compared to Bitcoin, Ethereum can execute transactions faster
● Ethereum Virtual Machine (EVM):
○ The Ethereum network is made up of various computers or large decentralized computers that
are together called the Ethereum Virtual Machine (EVM).
● Ethereum Nodes
○ All the nodes that implement the Ethereum protocol are called Ethereum nodes
○ These nodes have the complete installation of Blockchain.
○ As and when the new transaction gets added, it is replicated to these nodes instantly. ●
Consortium
○ Consortium refers to a group in Ethereum. This group includes all the consortium members of
Blockchain that use the same infrastructure.
○ When you are working within or across an organization utilizing Blockchain to set up their own
private Blockchain, you are setting up a consortium that has a leader called a consortium leader
Etherium
● Ability of Bitcoin to build its own currency or smart contract without requiring the need to build the
entire Blockchain
● Need for a scripting language on top of the Bitcoin system so it can be used for application
development and more broader uses.
● Since Bitcoin implementation of Blockchain is more public and based on the shared distributed ledger, it
was not possible for the Bitcoin team to implement this suggestion and they refused.
● Ethereum is a shared computing platform that enables people to build smart contracts and
cryptocurrencies without having people to build their own Blockchain.
● It has its own Turing complete programming language that allows developers to create custom
applications
○ https://youtu.be/UQDQ27YluZI
● Summary https://youtu.be/EYAwz0Jp1Og
● Consensus : https://youtu.be/ojxfbN78WFQ
Setting Up Ethereum
BaaS offering from Azure to quickly set up Ethereum in a matter of minutes.
Default templates ensure the transaction and mining nodes are part of the VPN and are
isolated from each other, apart from creating a genesis block.
A genesis block is like a blank distributed ledger or a distributed ledger with no data.
Once the genesis block is created, the transaction can be written on top of the block.
It is also an important prerequisite and for the safety aspects, that mining node should
not accessible outside the private network
Although both fields are technically similar, they differ heavily in terms of
applications and use.
On one hand where data science focuses on data analytics to arrive at actionable
insights that can help the management at an organization take effective decisions,
on the other hand machine learning focuses on creating predictive models that
can be used by other software components (rather than human beings) to produce
accurate, data-driven results
Anomaly Detection
Problems that ML Solves: Clustering
Types of Machine Learning
Supervised Learning: Supervised if the sentences we supply to the algorithm are
explicitly labeled with the language it’s written in: sentences written in French and
ones not in French. Classification, regression, and anomaly detection are all forms
of supervised learning.