Mais conteúdo relacionado Semelhante a Ethereum Smart Contracts Tutorial | Deploying Smart Contracts | Blockchain Training | Edureka (20) Ethereum Smart Contracts Tutorial | Deploying Smart Contracts | Blockchain Training | Edureka2. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda
ETHEREUM
ETHEREUM ACCOUNTS
ETHEREUM VIRTUAL MACHINE
DApps and DAOsSMART CONTRACTS
DEPLOYING SMART CONTRACTS
3. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why Ethereum?
4. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why Ethereum?
5. Copyright © 2017, edureka and/or its affiliates. All rights reserved.Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is Ethereum ?
6. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is Ethereum?
Ethereum is an open-source, publicly distributed computing platform, featuring smart contract
functionality to build decentralized apps on top of this platform.
7. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Ethereum Network and Token
The value token of the Ethereum blockchain
is called Ether.
8. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What was the need of
developing Ethereum when
Bitcoin already existed ?
9. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Comparing Ethereum and Bitcoin
Bitcoin Ethereum
Concept Digital money World Computer
Cryptocurrency Token BTC Ether
Scripting language Turing incomplete Turing complete
Consensus Algorithm SHA256 Ethash
Coin Release Method Early mining Through ICO
Average block time ~10 minutes ~12-15 seconds
10. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
EXTERNALLY OWNED
ACCOUNTS
CONTRACT
ACCOUNTS
Owned by people or organisations
Controlled by private keys
Autonomous accounts
Controlled by code </>
ETHEREUM ACCOUNTS
Types of Ethereum Accounts
11. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Smart Contract is a computerized protocol wherein you write a standard contract rule that is immutable.
Smart Contracts
Smart contract v1.0
{
if (England wins the match):
send(10 eth, Bob)
else:
send(10eth, Andy)
def send(amt, to):
this.balance -= amt
send.balance += amt
}
12. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What was the need to develop
a contract-specific language?
Why couldn’t we use the
already existing languages?
13. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Solidity for Smart Contracts
Solidity is a contract-oriented, high-level
language for implementing smart contracts
on the Ethereum Virtual Machine (EVM).
SOLIDITY
15. Copyright © 2017, edureka and/or its affiliates. All rights reserved.Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Ethereum Virtual Machine
16. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Contracts written in a smart contract-specific programming language are compiled into ‘bytecode’, which an
EVM can read and execute.
Ethereum Virtual Machine (EVM)
17. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What’s preventing a piece
of code from running
forever and overloading
the network?
So if the EVM is running
application code….
18. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Ethereum Gas
GAS GAS LIMIT
Gas is the unit for the amount of
computational work done by the
computer for one cycle of the contract
Gas Limit is the maximum amount of
gas the contract can use for its
computations
21. Copyright © 2017, edureka and/or its affiliates. All rights reserved.Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Deploying Smart Contracts
22. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Ethereum Platform.
Smart Contracts.
DApps and DAOs.
Ethereum as a Platform
23. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Decentralized Applications (DApps)
OPEN SOURCED
DECENTRALIZEDCONSENSUS MECHANISM
TOKENS
24. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Decentralized Autonomous Organisations
▪ These are organisations that exist entirely on a
blockchain and are governed by its protocols
▪ DAOs comprise a global network of nodes and
members that all work together and create a
unison to manage their distribution
25. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Future of Ethereum
26. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Ethereum Accounts
Summary
Ethereum AccountsWhat is Ethereum? Smart Contracts
Future of DAppsEVM Deploy Smart Contracts
Smart ContractsEthereum Accounts