Unit-III-a
Unit-III-a
– IOE411
Minimize
Improve
complexity Increase Reduce
up-time and
by security by barriers to
keep the Ensure
simplifying using entry (even
Ethereum longevity
the design laptops or
network
Ethereum techniques. mobiles)
live.
blockchain.
Ethereum Characteristics
• As like bitcoin, the validity of Ether is provided by a
blockchain.
• Blockchain is a continuously growing list of records.
– Records are linked and secured using cryptographic hashes.
Ethereum – To Discuss
The
Ethereum Ethereum Ethereum
Accounts Network Mining
Solidity Code
Compiler
Ethereum Virtual Machine
(in Sandboxed Environment,
Contracts run here)
Smart Contracts
• Smart contracts are developed on EVMs.
• They are written in several languages such as Solidity,
Vyper, Bamboo, Serpent, and so forth.
• Solidity is more popular among these programming
languages.
• Smart contracts are run by Ethereum nodes on EVMs.
Ethereum Network
• It is a public blockchain network.
• It forms the P2P network in which the decentralized
applications run.
• The network comprises of two types of nodes:
• Full nodes
• Light weight nodes
• Full nodes:
• They contain the entire history of transactions since the
genesis block.
• Full nodes have to contain each and every transaction that
has been verified according to the rules set up by Ethereum’s
specifications.
Ethereum Network
• Lightweight Nodes
• These nodes contain a subset of the entire blockchain.
• These types of nodes are mostly used in e-wallets which have
to be light-weight in nature and hence the entire blockchain
cannot be stored on them.
• These nodes, in contrast, do not verify every block or
transaction and may not have a copy of the current blockchain
state.
• They rely on full nodes to provide them with missing details.
Ether and Gas
• Ether is the name of the crypto-currency used to pay
for transactions on the ethereum network.
• Ether is also used to buy Gas (Computations), which
in turn is used to pay for computation within the EVM.
• Ether is the metric unit and has a lot of denominations
which help accurately pay for transactions and gas.
• The smallest denomination i.e., the base unit is called
Wei.
Buy insurance
dApps – Decentralized Applications
• Game dApps
• Cryptokitties – sell kittens using Ethereum
– It is a gaming software
– https://www.cryptokitties.co/
• ZedRun
– It is a gambling game (racing horses)
– Winner and loser are shared using ethers.
• Poker, Chess, and so forth.
dApps – Decentralized Applications
• Tracking applications
• E.g., Zapper.fi (to find objects).
• https://studio.zapper.xyz/docs/apis/getting-started
• It has APIs for web3.0
• The assets are recorded in the wallet.
• Next, the assets are tracked using blockchain network.
• It is opensource and free to use.
• It has dashboard to display all tracking information.
dApps – Decentralized Applications
• Marketplace applications
• E.g., Rarible
• Rarible is an NFT marketplace.
• Rarible uses Non-Fungible Tokens (Non-fungible tokens
(NFTs) are assets like a piece of art, digital content, or video
that have been tokenized via a blockchain. )
• It is built on Ethereum blockchain.
• It supports
– Digital art
– Music
– Memes
– Games
• E.g., Bidali
• Used for gift cards
dApps – Decentralized Applications
Educational
applications
• Certificate management
• Learning outcome
management
• Evaluating student’s ability
• Fees and credit transfer
• Examination review
• Supporting lifelong
learning with credit points
dApps Development – Tools and Frameworks
• Web3 js
• is required for the client side app (to communicate with
blockchain.
• Metamask
• It is a browser extension code.
• It is required to enable browsers to talk to blockchain
• Ganache
• local development blockchain
• Remix IDE or Truffle
• Remix IDE is a browser-based IDE for smart contract
development
• Truffle works using node.js (node install truffle).