際際滷

際際滷Share a Scribd company logo
ethereum
$ whoami
Aleksandr Sobolev
Software Engineer at Mad Devs 
Platform and Ecosystem for Ethereum
Security Tools
MythX is a security analysis API for Ethereum
smart contracts. It powers tools that bring security
into the smart contract SDLC.
s0b0lev s0b0lev
Nodes
Ethereum network
Vp2p
Consensus
Illustrate blockchains at all
Source: https://bit.ly/2Y0fI0Y
Blocks
- Average block time 15 sec
- Block is linked to the previous one
- Merkle tree
- Miners
- block includes a set of transactions
- Blocks are immutable
- Distributed across network via p2p
- Verified via PoW
- Block reward 2eth
ethviewer.live
Transactions
- Change of blockchain state
- State tick
- Miners
- Paid Gas to miner
- Signed by EOA private key
- Smart Contract interaction
- NONCE  <- important one
Credits: https://hackernoon.com/merkle-trees-181cb4bc30b4
Byzantine fault tolerance (BFT)
Consensus
- Proof of Work (PoW) (current implementation)
- Proof of Stake (PoS) (planned migration)
Ethereum Accounts
Externally Owned Account (EOA)
- Private key
- Address
- Balance
- Can create transactions
- Address
- Ballance
- Source Code
- A lot of vulnerabilities.
Contract Account
Ethereum Accounts
Vulnerabilities
Source: https://wiki.hh.se/wg211/images/e/ec/Ethereum19.pdf
Smart Contracts (2 words)
1. Immutable
2. Public
Smart Contracts are public
- Read contract source code, bytecode
- See balance
- Contract creator
- Contract transactions
- etc...
Ethereum Classic (DAO Fork)
EIPs
EIP 867: Standardized Ethereum Recovery EIP 999: Restore Contract Code at
0x863DF6BFa4469f3ead0bE8f9F2AAE51c91A907b4
http://eips.ethereum.org/EIPS/eip-999http://eips.ethereum.org/EIPS/eip-867
Ethereum blockchain
Gas Price
- Cost per opcode execution
- Cost for transaction
- Block has gas limit (avoid infinite loops and
keep average block time)
- Transaction gas fee (base fee 21000)
Lets BUIDL
BUIDL: verb
bui dl
Definition of BUIDL
1 : building useful blockchain based products and services that
democratize technology for people of all races, genders and cultures
2 : to develop blockchain projects at every layer of the technology stack,
from protocols and infrastructure to dApps and design
// BUIDLing the next great dApp
// I don't HODL, I BUIDL
// Have an idea... Why not BUIDL it?
// I'm a BUIDL Ambassador

More Related Content

Ethereum blockchain