ethereum
ethereum
Ethereum
ot
Kh
ja
oo
1
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
# History of Ethereum
•
Kh
2013: Ethereum was first described in Vitalik Buterin’s white
ja
paper in 2013 with the goal of developing decentralized
oo
applications.
2
Prof. Pooja Khot. – Crypto Currency with Ethernet
# Features of Ethereum
ot
Kh
ja
oo
.P
of
3
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
# Type of Ethereum Accounts
Kh
ja
oo
.P
of
Pr
4
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
Virtual Machine (EVM).
•
Kh
When a transaction triggers a smart contract all the nodes of the
network will execute every instruction.
ja
oo
• All the nodes will run The EVM as part of the block verification,
where the nodes will go through the transactions listed in the
.P
EVM.
All the nodes on the network must perform the same calculations
Pr
5
Prof. Pooja Khot. – Crypto Currency with Ethernet
• Thus it is safe to send transactions with the gas limit above the
estimate to increase the chances of getting it processed.
ot
Banking systems: Due to the decentralized nature of the
•
Kh
Ethereum blockchain it becomes challenging for hackers to gain
unauthorized access to the network. It also makes payments on
ja
the Ethereum network secure, so banks are using Ethereum as a
oo
misplaced.
Pr
# Benefits of Ethereum
• Availability: As the Ethereum network is decentralized so there is
no downtime. Even if one node goes down other computing nodes
are available.
6
Prof. Pooja Khot. – Crypto Currency with Ethernet
• Less ambiguity: The smart contracts that are used as a basis for
trade and agreement on Ethereum ensure stronger contracts that
differ from the normal traditional contracts which require follow-
through and interpretation.
ot
enterprises can easily deploy and manage private blockchain
Kh
networks instead of coding blockchain implementation from
scratch.
ja
# Drawback of Ethereum
oo
classes.
Pr
7
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
Ethereum Virtual Machine (EVM) is designed as the runtime
Kh
environment for smart contracts in Ethereum. It is sandboxed and
isolated from the other parts of the system. This means that any
ja
operation on EVM should not affect your data or programs in any way,
oo
smart contracts.
of
called Solidity, and with this comes a need to execute this code.
# Purpose of EVM
The Ethereum Virtual Machine (EVM) is a Turing complete
programmable machine, which can execute scripts to produce arbitrary
8
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
not met, the system can execute it in an “exit” function as well.
•
Kh
For example, if an account has been hacked, the hacker cannot
steal money from the system, because they don’t have the budget
ja
or authority to do so.
oo
9
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
expected manner as desired by the smart contract code.
Kh
# Ethereum Virtual Machine (EVM) has two parts:
ja
• EVM (the part that runs solidity source code): The EVM is
oo
bytecode.
10
Prof. Pooja Khot. – Crypto Currency with Ethernet
# Benefits of EVM
• Execute untrusted code without risking data: One can execute
untrusted code without putting the data at risk. EVM guarantees
that its computations will not interfere with anything else
happening in the system or with the personal files.
• Can run complex smart contracts: One can run complex smart
contracts in EVM without worrying about how they interact with
each other. One can write them once and then run them on
multiple platforms, which allows for the creation of a single
contract that runs on multiple computing environments.
ot
•
# Downsides of EVM
• High cost of storing data: First is gas, which is what you need to
use in order to pay the fee to run a smart contract, and the other is
the high cost of storing data on the blockchain, which could take
up more than 3TB
11
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
EVM requires technical expertise. It’s a Turing-complete system,
Kh
which allows programmers to write scripts in any programming
language they wish. This can be excellent or disastrous,
depending on the intention behind the code being written.
ja
oo
Ethereum Wallet
.P
of
• An Ethereum wallet is a
Pr
piece of software or
hardware that allows
users to interact with the
Ethereum blockchain.
• Wallets allow users to
manage their accounts on
the Ethereum network.
• An Ethereum account is a
type of account that can
send transactions and keep track of its balance, with as many
Ethereum addresses as it wants to send and receive funds, create
12
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
wallet’s creator, as anyone who knows them can access their
funds. Kh
There are several types of Ethereum wallets to choose from including
ja
some that are held on your desktop or mobile device and some that are
oo
• Balance: This ETH address owns a certain number of Wei (an ETH
unit of denomination), with 1e+18 Wei (exponential notation) per
ETH. 1e+18 Wei means 1 ETH is equivalent to 1x1018 Wei.
13
Prof. Pooja Khot. – Crypto Currency with Ethernet
EOAs is the hash of the empty text. For contract accounts, the
code is hashed and stored as the codeHash.
ot
Kh
ja
oo
.P
network’s transaction fees. You can purchase ETH directly (e.g. with
Pr
If that’s the case, follow these general steps to send yourself ETH to the
appropriate wallet:
1. Find the send feature in your wallet and enter the recipient’s
wallet address (in this case your own).
14
Prof. Pooja Khot. – Crypto Currency with Ethernet
2. Select the type and amount of crypto you want to send (in this
case ETH) and confirm the transaction. If you’re new to sending
crypto, you might want to try a small test transaction first.
ot
Kh
ja
oo
15
Prof. Pooja Khot. – Crypto Currency with Ethernet
Solidity
Solidity is a brand-new programming language created
by Ethereum which is the second-largest market of cryptocurrency by
ot
Kh
ja
oo
16
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
Kh
ja
• Smart contracts are programs that execute exactly as they are set
up(coded, programmed) by their creators. Just like a traditional
contract is enforceable by law, smart contracts are enforceable by
code.
• The bitcoin network was the first to use some sort of smart
contract by using them to transfer value from one person to
another.
17
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
# History:
Kh
In 1994, Nick Szabo, a legal scholar, and a cryptographer recognized
the application of a decentralized ledger for smart contracts.
ja
18
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
Kh
ja
oo
copy of all the conditions of the smart contract and they cannot be
changed by one of the parties. A smart contract is replicated and
of
19
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
2. Automation: Smart contracts can automate the tasks/ processes
that are done manually. Kh
3. Speed: Smart contracts use software code to automate tasks,
ja
thereby reducing the time it takes to maneuver through all the
oo
5. Security: Cryptography can make sure that the assets are safe
and sound. Even if someone breaks the encryption, the hacker will
have to modify all the blocks that come after the block which has
been modified. Please note that this is a highly difficult and
computation-intensive task and is practically impossible for a
small or medium-sized organization to do.
20
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
Kh
ja
1. Smart Legal Contract:
oo
• There are legal guarantees for smart contracts. They follow the
.P
format seen in contracts: “If this occurs, then this will occur.”
• Legal smart contracts provide more openness between
of
21
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
• It permits device-to-device interactions such as blockchain
Kh
integration and the Internet of Things. These are signed between
computers and other contracts rather than between people or
organisations like other kinds of smart contracts.
ja
oo
A smart contract is just a digital contract with the security coding of the
blockchain.
of
22
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
Kh
ja
oo
.P
of
Pr
23
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
# Applications of Smart Contracts Kh
ja
oo
.P
of
Pr
1. Real Estate:
2. Vehicle ownership
3. Music Industry
4. Government elections
5. Management
6. Healthcare
24
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
attempt is marked invalid and not stored in the blockchain.
Kh
3. Fault-tolerance: Since no single person or entity is in control
of the digital assets, one-party domination and situation of
ja
one part backing out do not happen as the platform is
oo
25
Prof. Pooja Khot. – Crypto Currency with Ethernet
1. No regulations: A lack
of international
regulations focusing on
blockchain
technology(and related
technology like smart
contracts, mining, and
use cases like
cryptocurrency) makes
ot
these technologies
difficult to oversee. Kh
2. Difficult to implement: Smart contracts are also complicated
ja
to implement because it’s still a relatively new concept and
oo
26
Prof. Pooja Khot. – Crypto Currency with Ethernet
Turing completeness
Turing-completeness is a word defined by Alan Turing which it
describes the idea that some computing machines are capable of
performing any task a computer can perform.
• In other words, one can write your program without worrying about
what else is allowed for it to do.
ot
aspects of the software. It is also important to know what “Turing-
Kh
complete” means and how it relates to Ethereum.
27
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
using the same tools.
Kh
# Does a System Have To Be Turing Complete To Be Useful
in Blockchain?
ja
oo
28
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
2. Integer Overflow/Underflow: Occur when arithmetic operations
Kh
exceed the storage limits of the data types used. For example,
adding two large numbers might result in an unexpected value,
ja
potentially allowing attackers to manipulate the contract’s logic.
oo
29
Prof. Pooja Khot. – Crypto Currency with Ethernet
Ethereum Construction
ot
Ethereum is a decentralized, blockchain-based platform that enables
Kh
the creation and execution of smart contracts and decentralized
applications (dApps). Its construction involves several key components:
ja
1. Blockchain Structure:
oo
2. Smart Contracts:
30
Prof. Pooja Khot. – Crypto Currency with Ethernet
4. Consensus Mechanism:
ot
o Ethereum is transitioning to PoS with Ethereum 2.0, where
validators are chosen based on the amount of ETH they stake.
Kh
This transition aims to enhance scalability and energy efficiency.
ja
5. Ether (ETH):
oo
participants.
of
7. Layer 2 Solutions:
31
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
one) founder Dan Larimer in the year 2015, and was further refined in
the year 2016 by Ethereum’s Vitalik Buterin. A decentralized
Kh
autonomous organization is decentralized, autonomous, and an
organization- as the name already suggests. It is a whole organization
ja
that is automated. It stores rules and processes in code. DAOs are often
oo
# Components of DAO:
of
# Need of DAO
Beginning an association with somebody that includes financing and
cash requires a great deal of confidence in the individuals you’re
32
Prof. Pooja Khot. – Crypto Currency with Ethernet
working with. Yet, it’s difficult to believe somebody you’ve just at any
point associated with on the web. With DAOs you do not need to trust
the other individual within the gathering, simply the DAO’s code, which
is 100% straightforward and evident by anybody. This opens up
countless new freedoms for worldwide joint effort and coordination.
S
No. DAO Traditional Organizations
ot
Casting a ballot is needed by Depending on the structure,
1.
individuals for any Kh
changes can be requested from
progressions to be the sole party, or casting a ballot
ja
implemented. might be advertised.
oo
.P
33
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
3. Deployment: Once everything is set up and on track, the DAO
Kh
needs to be deployed on the blockchain. From this point onwards,
stakeholders decide the future of the organization. The developers
ja
who created the smart contracts, no longer influence the project.
oo
.P
of
Pr
# DAO Examples
Here are some examples illustrating how DAO can be utilized:
34
Prof. Pooja Khot. – Crypto Currency with Ethernet
# Advantages of DAO
1. Decentralization
2. Community Driven
ot
3. Principle-agent dilemma.
# Disadvantages of DAO
Kh
ja
1. Security
oo
GHOST Protocol
The GHOST (Greedy Heaviest Observed Subtree) Protocol is a
consensus mechanism designed to improve the efficiency and security
of blockchain networks like Ethereum. It works by focusing on the
“heaviest” or most frequently seen version of the blockchain, even if
some blocks become “orphaned” or temporarily abandoned. This helps
ensure that the network processes transactions more quickly and
accurately, reducing delays and enhancing overall performance.
35
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
main blockchain are referred to as orphaned or stale blocks.
Kh
GHOST deals with these by ensuring they are still considered in
the consensus process. Instead of discarding these orphaned
blocks, GHOST incorporates them into the decision-making
ja
36
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
Kh
ja
oo
.P
of
Pr
37
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
miners is not wasted. This helps optimize the use of network
Kh
resources and makes the system more efficient.
38
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
3. Faster Fork Resolution
4. Enhanced Security
Kh
ja
5. Efficient Use of Network Resources
oo
1. Increased Complexity
Pr
39
Prof. Pooja Khot. – Crypto Currency with Ethernet
Types of Blockchain
ot
There are 4 types of blockchain:
Kh
• Public Blockchain.
ja
• Private Blockchain.
oo
• Hybrid Blockchain.
.P
• Consortium Blockchain.
of
Pr
40
Prof. Pooja Khot. – Crypto Currency with Ethernet
1. Public Blockchain
ot
transactions or records
Advantages:
Kh
Trustable: There are algorithms to detect no fraud. Participants
ja
•
41
Prof. Pooja Khot. – Crypto Currency with Ethernet
2. Private Blockchain
ot
•
• Speed: The rate of the transaction is high, due to its small size.
.P
42
Prof. Pooja Khot. – Crypto Currency with Ethernet
3. Hybrid Blockchain
It is the mixed content of the private and public blockchain, where some
part is controlled by some organization and other makes are made
visible as a public blockchain.
ot
•
transaction. All the nodes don’t carry the verification hence less
Pr
computational cost.
• Architecture: It is highly customizable and still maintains integrity,
security, and transparency.
• Operations: It can choose the participants in the blockchain and
decide which transaction can be made public.
Disadvantages:
• Efficiency: Not everyone is in the position to implement a hybrid
43
Prof. Pooja Khot. – Crypto Currency with Ethernet
4. Consortium Blockchain
ot
blockchain validates the transaction and also initiates or receives
transactions. Kh
• Also known as Federated Blockchain.
ja
• This is an innovative method to solve the organization’s needs.
oo
44
Prof. Pooja Khot. – Crypto Currency with Ethernet
Namecoin (NMC)
ot
Kh
ja
oo
.P
of
Pr
45
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
decentralization of this system was intended to end internet
censorship and enhance Internet-related security and privacy.
Kh
• Namecoin has been continuously updated since its launch, with
summaries posted on the Namecoin website by Jeremy Rand, one
ja
46
Prof. Pooja Khot. – Crypto Currency with Ethernet
ot
Namecoin creators wanted a domain naming system. Because of this,
Kh
there are different consensus and protocol rules that exist within each
project. Certain features are necessary when conducting financial
ja
transactions that are not necessary when completing name
oo
47