Unit 4
Unit 4
FUNDAMENTAL OF BLOCKCHAIN
Lecture on - Introduction to Etherum & Ethereum Virtual Machines
Prepared by:
Tanushree Dholpuria
Ass. professor
LNCT BHOPAL
Introduction to Ethereum
• Ethereum is a decentralized blockchain platform that establishes a
peer-to-peer network that securely executes and verifies application
code, called smart contracts.
• Smart contracts allow participants to transact with each other
without a trusted central authority.
• Transaction records are immutable, verifiable, and securely
distributed across the network, giving participants full ownership and
visibility into transaction data.
Features of Ethereum
1. Ether: This is Ethereum’s cryptocurrency.
2. Smart contracts: Ethereum allows the development and
deployment of these types of contracts.
3. Ethereum Virtual Machine: Ethereum provides the underlying
technology—the architecture and the software—that understands
smart contracts and allows you to interact with it.
4. Decentralized applications (Dapps): A decentralized application is
called a Dapp (also spelled DAPP, App, or DApp) for short. Ethereum
allows you to create consolidated applications, called decentralized
applications.
5. Decentralized autonomous organizations (DAOs): Ethereum allows
you to create these for democratic decision-making.
Applications of Ethereum
1. Voting Systems
2. Banking Systems
3. Shipping services
4. Signing agreements
Ethereum Virtual Machine
• It is use to operate as a runtime environment for compiling and
deploying Ethereum-based smart contracts. EVM is the engine that
understands the language of smart contracts, which are written in the
Solidity language for Ethereum.
• EVM is operated in a sandbox environment—basically, you can deploy
your stand-alone environment, which can act as a testing and
development environment.
• You can then test your smart contract (use it) “n” number of times,
verify it, and once you are satisfied with the performance and the
functionality of the smart contract, you can deploy it on the Ethereum
main network.
Thank you
IS 501
FUNDAMENTAL OF BLOCKCHAIN
Lecture on - Ethereum Wallets
Prepared by:
Tanushree Dholpuria
Ass. professor
LNCT BHOPAL
What is Ethereum Wallets?
• Just like an internet banking app, the Ethereum wallet is an
application that allows you to manage your Ethereum account.
Ethereum is the second most popular and valuable cryptocurrency
after Bitcoin and is now accepted as a form of payment by various
merchants around the world.
• The Ethereum account is like an email account with some balance and
is used to send funds to other accounts. The wallet allows you to
manage your Ethereum account and perform operations like view
account balance, do transactions, etc
Working of Ethereum wallets
• An Ethereum account is a pair of keys. One key is used to create the
address you can share freely, and the other key you need to keep
secret because it's used to sign things. Together, these keys let you
hold assets and make transactions.
• A wallet is a tool that lets you interact with your account, using your
keys. It allows you to view your account balance, send transactions,
and more.
Types of Wallets
1. Physical hardware wallets are devices that let you keep your crypto
offline – very secure
2. Mobile applications that make your funds accessible from
anywhere.
3. Browser wallets are web applications that let you interact with your
account directly in the browser.
4. Browser extension wallets are extensions you download that let
you interact with your account and applications through the
browser.
5. Desktop applications if you prefer to manage your funds via
macOS, Windows or Linux
Trending Ethereum Wallets
1. Trezor Model T - It’s all about security. The PIN never leaves the
wallet, and this extra layer of protection makes it more difficult for
hackers to access your funds. Trezor is a hardware wallet that stores
your funds on a USB flash drive. It supports over one thousand
cryptocurrencies, including Bitcoin, Litecoin, Ethereum, Dash, and
Ethereum Classic. But it doesn’t support Ripple, Monero, Cardano,
or Tezos. Trezor is compatible with Mac OS X, Windows, and Linux.
Prepared by:
Tanushree Dholpuria
Ass Professor
LNCT BHOPAL
Introduction to Smart Contracts
• Smart Contracts play a very essential role, it helps to make the
transactions taking place more safe and secure and function in an
organized manner.
• A smart contract is a self-executing program that automates the
actions required in an agreement or contract. Once completed, the
transactions are trackable and irreversible.
• Smart contracts permit trusted transactions and agreements to be
carried out among disparate, anonymous parties without the need for
a central authority, legal system, or external enforcement mechanism.
History of Smart Contract
• Smart contracts were first proposed in 1994 by Nick Szabo, an American
computer scientist who invented a virtual currency called "Bit Gold" in 1998,
10 years before Bitcoin was introduced. In fact, Szabo is often rumored to be
the real Satoshi Nakamoto, the anonymous Bitcoin inventor, which he has
denied.
• Szabo defined smart contracts as computerized transaction protocols that
execute the terms of a contract.
• Szabo also proposed the execution of a contract for synthetic assets, such as
derivatives and bonds. Szabo wrote, "These new securities are formed by
combining securities (such as bonds) and derivatives (options and futures) in a
wide variety of ways. Very complex term structures for payments...can now be
built into standardized contracts and traded with low transaction costs, due to
computerized analysis of these complex term structures.
Types of Smart Contracts
• Smart Legal Contracts
These contracts are legally enforceable and require the parties to satisfy their contractual obligations.
Parties may face strict legal actions if they fail to comply.
It has diverse use cases that range from simple to complex, which depends on the number of
stakeholders.
DAOs are open-source and also feature transparency, and, in theory, are incorruptible. Plus, any
action taken by the community members gets replaced by a self-enforcing code.
Role of Smart Contract in Blockchain
• Security and high reliability: The transactions can be performed with high reliability. Plus, as the distributed ledger
is highly encrypted, it is impenetrable and offers high security.
• Disintermediation: Smart contracts eliminate the reliance on third-party intermediaries to perform transactions.
So, it enables parties to enter into agreements without any dependence on intermediaries.
• Transparency: It creates a cohesive environment because both the logic and information in the contract are visible
to all those participating in the blockchain network. Plus, parties involved can check out any edits made by a party
to the contract’s content as it is visible to everyone involved in the cycle, improving transparency.
• Lesser errors: As the contracts use software code to automate tasks, they are less prone to manual errors.
Moreover, they offer real-time updates with speed and precision.
• Lesser human intervention: The transactions don’t need much human management, which reduces the risks
involved in the contract execution cycle.
• Speed and efficiency: Since smart contracts execute immediately when a pre-defined condition is met, they offer
speed and efficiency. Furthermore, smart contracts are digital and automated, and there’s no paperwork to process
and no time spent reconciling errors that often result from manually filling in documents.
• Savings: We’ve already talked of smart contracts removing the need for intermediaries to handle transactions,
reducing their associated time delays and fees.
Applications of Smart Contract
1. Supply Chain
2. Trade finance
3. Dispute Resolutions
4. NFT
5. Property Ownership
6. Medical research
7. Smart Agriculture
Attacks on Smart Contract
Before moving further on smart contract attacks lets understand attacks classification. This is of two
types:
1. Malicious Attacks : This type of blockchain attack comprises spreading malware and viruses to
people’s wallets and accounts. Sometimes, it starts with compromising identities. Examples of such
attacks are crypto-jacking, slack, and forum attack. How it happens is that a set of hacks will write
programs that could penetrate your wallet to change some properties. Such properties are
passwords, usernames, emails, etc. By doing so, it could compromise your account and, as such,
may lead to loss of values.
2. Weak Protocols : Weak consensus can lead to multiple attacks that relate to the blockchain
network. Some of those attacks are 51% attacks, Sybill attacks, 34% attack, and denial of service.
Smart Contract Attack
1. Reentrancy: This is one of the most catastrophic attacks on smart contract security
protocols. The attack can completely render the smart contract useless or steal valuable
information. This type of attack occurs when a function calls for another contract through
an outer call. Such vulnerability enables an attacker to execute a recursive call back of the
main function. The action creates an unintended loop that recurs many times.
Prepared By:
Tanushree Dholpuria
Ass Professor
LNCT BHOPAL
Introduction to Hyperledger
• Hyperledger is an open-source collaborative effort created to
advance cross-industry blockchain technologies. It is not a specific
blockchain or cryptocurrency, but rather a collection of blockchain
frameworks, tools, and libraries that are designed to provide
developers with a starting point for building robust, enterprise-grade
blockchain solutions.
• Hyperledger is an open-source project under the Linux Foundation
where people can come and work on the platform to develop
blockchain-related use cases.
Reasons of using hyperledger
1. To enhance the efficiency, performance, and transactions of various
business processes.
2. It provides the necessary infrastructure and standards for
developing various blockchain-based systems and applications for
industrial use.
3. It gets rid of the complex nature of contractual agreements, as the
legal issues are taken care of.
4. Hyperledger offers the physical separation of sensitive data.
5. It decreases the need for verification and enhances trust, thus
optimizing network performance and scalability.
Hyperledger layers
1) Consensus layer: It takes care of creating an agreement on the
order and confirming the correctness of the set of transactions that
constitute a block.
2) Smart layer: This layer is responsible for processing transaction
requests and authorizing valid transactions.
3) Communication layer: It takes care of peer-to-peer message
transport.
4) Identity management services: these are important for establishing
trust on the blockchain.
5) API: It enables external applications and clients to interface with
the blockchain.
Working of hyperledger
• The membership service involved in the network validates the
contract.
• The concerned two-peer has to produce a result and then sent it to
the consensus cloud.
• The generated result from both the peer has to be the same in order
to validate the contract.
• Once it is validated, then the transaction will happen between the
affiliated peers and their ledger will be updated.
• When a business requires confidentiality and a private network for its
transaction to happen without doing that in a single network, a
hyperledger paves the way.
Hyperledger Projects
1. Hyperledger Fabric: Hyperledger Fabric is intended as a foundation for developing applications
and solutions with modular architecture. It provides many benefits like permissioned
networks, confidential transactions, etc.
2. Hyperledger Sawtooth: It is an open-source project and used as an enterprise-level blockchain
system used for creating and operating distributed ledger applications. Hyperledger sawtooth
supports a variety of consensus algorithms like PBFT, and PoET.
3. Hyperledger Indy: It is a project that is made for decentralized identity. It offers lots of
libraries, tools, and reusable components for creating decentralized identities.
4. Hyperledger Iroha: It is a blockchain platform designed for infrastructure projects that need
distributed ledger technology. It is used to build identity management platforms like national
IDs. It can integrate with Linux, macOS, and Windows platforms.
5. Hyperledger Burrow: It is a framework for executing smart contracts in permissioned
blockchains. The goal of Hyperledger burrow is to facilitate cross-industry applications for
smart contracts. It is built around the BFT consensus algorithm.
Hyperledger Projects.... contd
6. Hyperledger Caliper: It is a blockchain benchmark tool that allows users to measure the
performance of a blockchain implementation with a set of predefined use cases. It will produce
reports containing a number of performance indicators to serve as a reference when using the
blockchain solutions like Hyperledger Burrow, Hyperledger Fabric, Hyperledger Iroha, and so on.
7. Hyperledger Cello: It serves as an operational dashboard for Blockchain that reduces the effort
required for creating, managing, and using blockchains. It provides an operational console for
managing blockchain efficiently.
8. Hyperledger Explorer: It is a user-friendly web application tool that is used to view, invoke,
deploy, or query blocks, associated data, and network information stored in the ledger. It is
regarded as an easy way that allows users to view the necessary network information of the
blockchain.
9. Hyperledger Besu: It is an Ethereum client designed to be enterprise-friendly for both public and
private blockchain network use cases. It offers many useful features like EVM, several proof-of-
authority protocols, a privacy transaction manager to ensure the privacy of transactions, etc.
Thank you