8 Ethereum on Python Jan Xie(Cryptape)

2020-02-27 57浏览

  • 1.Ethereum on Python 中国Python开发者大会 jan@cryptape.com
  • 2.@janx peatio pyethapp pyethereum ruby-ethereum cita
  • 3.Bitcoin Decentralized Data Layer
  • 4.Ethereum Decentralized Computation Layer
  • 5.Pattern Cryptography P2P Network Consensus Authenticated Data Structure
  • 6.DEVP2P Node Discovery (UDP) ● Kademlia ● Bootstrap nodes Secure Transport (TCP) ● Handshake ● Transport ● Multiplexer ● Flow Control
  • 7.Authenticated Data Structure Hash List Tree
  • 8.github.com/ethereum/ pyethereum
  • 9.ethereum/block.py
  • 10.ethereum/block.py
  • 11.ethereum/state.py
  • 12.ethereum/transactions.py
  • 13.Account Model Contract Account Machine Program External Account Human Private Key
  • 14.PoW Ethash 15s Uncles ASIC Resistance
  • 15.EVM Ethereum Virtual Machine Minimal Safe Deterministic Bounded Turing-complete
  • 16.Gas Mechanism Halting Problem Opcode PricingExample:Tx cost = 21000 gas * 20 shannon per gas = 0.00042 ether
  • 17.ethereum/opcodes.py
  • 18.Precompile Contract “System Applications” ● 0x01 - ecrecover ● 0x02 - sha256 ● 0x03 - ripemd160 ● 0x04 - identity Metropolis ● Bigint modular exponentiation ● Addition and scalar multiplication on alt_bn128 ● Ate pairing check on alt_bn128
  • 19.Transaction To Nonce Value Data Signature Submit & Transaction Execution EVM Code Storage non-volatile Args Memory Stack volatile Log external
  • 20.ethereum/meta.py
  • 21.ethereum/messages.py
  • 22.ethereum/messages.py
  • 23.ethereum/messages.py
  • 24.pyethapp pyethereum pydevp2p py-evm
  • 25.High Level Languages Solidity, Serpent, Bamboo, Viper, … ABI - Solidity Calling Convention Formal Verification
  • 26.MyToken.sol
  • 27.DApp Smart Contract UI + web3.js
  • 28.CITA on Rust
  • 29.We’re hiring! join@cryptape.com