Ethereum Virtual Machine
Ethereum Virtual Machine
Smart Contracts
Smart Contracts
• Ethereum Networks
• What is a Smart Contract?
• Ethereum Virtual Machine, Ether, Gas
• DApps
• Decentralized Autonomous Organizations (DAO)
• Hard and Soft Forks
• Initial Coin Offerings
• Demo of Smart Contracts
Introduction
• A smart contract is a computer program or a transaction protocol
which is intended to automatically execute, control or document
legally relevant events and actions according to the terms of a
contract or an agreement.
• The objective of smart contracts are the reduction of need in trusted
inter-mediators, arbitrations and enforcement costs, fraud losses, as
well as the reduction of malicious and accidental exceptions.
• Smart contracts are simply programs stored on a Blockchain that run
when predetermined conditions are met.
Ethereum Networks
• With the Ethereum Blockchain , rather than Bitcoin the miners will work to
earn Ether or ETH.
• ETH is the fuel that needed to run the Ethereum network.
• Ethereum is a technology that is home to digital money, global payments and
applications.
• Ethereum is a Blockchain platform with its own cryptocurrency, called
Ether(ETH) and solidity is its own programming language.
• The network’s users can create, publish, monetize and use applications on the
platform and use its Ether cryptocurrency as payment.
• Ethereum Blockchain allows building decentralized apps defined by smart
contracts.
Ethereum Networks
• The node of the network run the Ethereum Virtual Machine(EVM)
and execute the instructions according to the smart contracts.
Ethereum nodes run the EVM to maintain consensus across the
Blockchain.
• The idea behind Ethereum was created by Vitalik Buterin.
• An Ethereum network has all the nodes connected to each other
using the P2P network and each node keep the latest copy of the
Ethereum Blockchain ledger.
• The three types of Blockchain nodes are mining nodes , full nodes
and light node.
What is a smart contract?
• Smart contracts are simply programs stored on a blockchain
that run when predetermined conditions are met. They
typically are used to automate the execution of an agreement
so that all participants can be immediately certain of the
outcome, without any intermediary's involvement or time loss.
How smart contracts work
• One of the major features of digital currencies is that they are decentralized.
• This means they are not controlled by a single institution like a government
or central bank, but instead are divided among a variety of computers,
networks, and nodes.
• In many cases, virtual currencies make use of this decentralized status to
attain levels of privacy and security that are typically unavailable to standard
currencies and their transactions.
• Inspired by the decentralization of cryptocurrencies, a group of developers
came up with the idea for a decentralized autonomous organization, or DAO,
in 2016.
Decentralized Autonomous Organizations (DAO)
Decentralized Autonomous
Organization (DAO)
• The DAO was an organization created by developers to automate
decisions and facilitate cryptocurrency transactions.
• In June 2016, due to programming errors and attack vectors,
hackers attacked the DAO, accessing 3.6 million ETH.
• Digital exchange currencies de-listed the DAO token in September
2016.
Hard and Soft Forks
• Cryptocurrencies like Bitcoin (BTC) and Ethereum (ETH) are powered by a
decentralized open-source software called a blockchain. A fork is a change
to the blockchain’s underlying protocol. A blockchain fork is an important
upgrade to the network and can either represent a radical change or a
minor one and can be initiated by developers or community members.
• It requires node operators — machines connected to the blockchain that
help validate transactions on it — to upgrade to the latest version of the
protocol. Every node has a copy of the blockchain and ensures new
transactions do not contradict its history.
• A hard fork is a radical upgrade that can make previous transactions and
blocks either valid or invalid and requires all validators in a network to
upgrade to a newer version. It’s not backward-compatible.
• A soft fork is an upgrade to the software that is backward-compatible and
has validators in an older version of the chain see the new version as valid.
Hard Fork
• A hard fork refers to a radical change to the protocol of a blockchain
network that effectively results in two branches, one that follows the
previous protocol and one that follows the new version.
• In a hard fork, holders of tokens in the original blockchain will be
granted tokens in the new fork as well, but miners must choose
which blockchain to continue verifying.
• A hard fork can occur in any blockchain, and not only Bitcoin (where
hard forks have created Bitcoin Cash and Bitcoin SV, among several
others, for example).
Soft Fork
• In blockchain technology, a soft fork is a change to the
software protocol where only previously valid transaction
blocks are made invalid. Because old nodes will recognize the
new blocks as valid, a soft fork is backwards-compatible.
Initial Coin Offerings
• An initial coin offering (ICO) is the cryptocurrency industry's
equivalent to an initial public offering (IPO). A company seeking to
raise money to create a new coin, app, or service can launch an ICO
as a way to raise funds.
• Interested investors can buy into an initial coin offering to receive a
new cryptocurrency token issued by the company. This token may
have some utility related to the product or service that the company
is offering, or it may just represent a stake in the company or project.
Initial Coin Offerings
• Initial coin offerings are a popular way to raise funds for products and services
usually related to cryptocurrency.
• ICOs are similar to initial public offerings, but coins issued in an ICO can also
have utility for a software service or product.
• Some ICOs have yielded massive returns for investors. Numerous others have
turned out to be fraudulent or have performed extremely poorly.
• To participate in an ICO, you usually need to first purchase a more established
digital currency, plus have a basic understanding of cryptocurrency wallets and
exchanges.
• ICOs are, for the most part, completely unregulated, so investors must exercise
a high degree of caution and diligence when researching and investing in ICOs.
Working of ICO