ethereum - Đapptullio/is-1/2017/dispense/p09.pdf · ethereum’s basic unit is the account. the...

37
Ethereum - ĐApp 1/37 Alessandro Maccagnan

Upload: others

Post on 22-May-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

Ethereum - ĐApp

1/37

Alessandro Maccagnan

Page 2: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

https://medium.com/@angelomilan/ethereum-explained-to-my-mom-infographic-673e32054c1c

2/37

Page 3: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

3/37

Page 4: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

4/37

Page 5: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

5/37

Page 6: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

6/37

Page 7: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

7/37

Page 8: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

Distributed database plus

Stored procedures(almost) equalEthereum

8/37

Page 9: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

Distributed database

9/37

Page 10: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

10/37https://medium.com/@sbmeunier/blockchain-technology-a-very-special-kind-of-distributed-database-e63d00781118

Page 11: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

11/37https://www.coindesk.com/information/how-ethereum-works/

Page 12: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

12/37https://ethereum.stackexchange.com/questions/268/ethereum-block-architecture

Page 13: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

13/37https://ethereum.stackexchange.com/questions/268/ethereum-block-architecture

Page 14: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

14/37https://ethereum.github.io/yellowpaper/paper.pdf

Page 15: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

15/37https://www.coindesk.com/information/how-ethereum-works/

Page 16: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

16/37https://www.coindesk.com/information/how-ethereum-works/

Page 17: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

17/37

Page 18: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

18/37

https://www.slideshare.net/aeronbuchanan/september-ethereum

Page 19: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

19/37

Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and

all state transitions on the Ethereum blockchain are transfers of value and information between

accounts. There are two types of accounts:

● Externally Owned Accounts (EOAs), which are controlled by private keys

● Contract Accounts, which are controlled by their contract code and can only be “activated” by

an EOA

http://ethdocs.org/en/latest/introduction/what-is-ethereum.html#how-does-ethereum-work

Page 20: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

20/37

Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and

all state transitions on the Ethereum blockchain are transfers of value and information between

accounts. There are two types of accounts:

● Externally Owned Accounts (EOAs), which are controlled by private keys

● Contract Accounts, which are controlled by their contract code and can only be “activated” by

an EOA

Page 21: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

21/37

Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and

all state transitions on the Ethereum blockchain are transfers of value and information between

accounts. There are two types of accounts:

● Externally Owned Accounts (EOAs), which are controlled by private keys

● Contract Accounts, which are controlled by their contract code and can only be “activated” by

an EOA

Page 22: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

22/37

Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and

all state transitions on the Ethereum blockchain are transfers of value and information between

accounts. There are two types of accounts:

● Externally Owned Accounts (EOAs), which are controlled by private keys

● Contract Accounts, which are controlled by their contract code and can only be “activated” by

an EOA

Page 23: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

Distributed database plus

Stored procedures(almost) equalEthereum

23/37

Page 24: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

Distributed database plus

Stored procedures

24/37

Page 25: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

25/37

What is a smart contract?A smart contract is code that runs on the EVM. Smart contracts can accept and store ether, data, or a combination of both. Then, using the logic programmed into the contract, it can distribute that ether to other accounts or even other smart contracts.

http://truffleframework.com/tutorials/ethereum-overview

Page 26: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

26/37

Page 27: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

Distributed database plus

Stored procedures(almost) equalEthereum

27/37

Page 28: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

Blockchain plus

Stored procedures(almost) equalEthereum

28/37

Page 29: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

Blockchain plus

Smart contracts(almost) equalEthereum

29/37

Page 30: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

30/37https://medium.com/@mvmurthy/ethereum-for-web-developers-890be23d1d0c

Page 31: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

31/37https://medium.com/@mvmurthy/ethereum-for-web-developers-890be23d1d0c

Page 32: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

32/37

http://tyleryasaka.me/blog/2017/01/14/ethereum-dapps.html

Page 33: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

33/37https://forum.ethereum.org/discussion/14411/simple-chart-of-how-smart-contract-and-web-tools-work-together-on-ethereum

Page 34: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

34/37

Mist/Parity (browsers)Metamask (Chrome extension)Infura (public node)

Page 35: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

35/37https://medium.com/@ConsenSys/a-101-noob-intro-to-programming-smart-contracts-on-ethereum-695d15c1dab4

Page 36: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

36/37

Page 37: Ethereum - ĐApptullio/IS-1/2017/Dispense/P09.pdf · Ethereum’s basic unit is the account. The Ethereum blockchain tracks the state of every account, and all state transitions on

37/37

https://stampery.com

https://kyc-chain.com

https://www.augur.net

http://www.bspend.com/playeth