Share
Embed
Transcript
25 slides
-
͜ͷൃදݸਓͷओ؍Ͱ͋Γɺ ࢿॿݴͰ͋Γ·ͤΜ This talk is my individual opinion, and not
advising investment -
EthereumϓϩτίϧϨΠϠʔͷ࠷৽ใʹ৮Ε͍ͨ ͕ɺٕज़తഎܠ͕ബ͘Θ͔Γ͍͢આ໌ΛٻΊ͍ͯΔ ํʹ͚ͯͷൃදͰ͢ɻ࣭ٙԠͷ࣌ؒΛΊʹऔΓ ·͢ͷͰɺΘ͔Βͳ͍ϝϞΛऔͬͯɺԕྀͤͣʹ ࣭͍ͯͩ͘͠͞ɻ This talk is for the
person who 1) want to know latest protocol layer of Ethereum 2) doesn’t have enough time and knowledge to digest whitepapers and articles. I plan to take some longer Q&A session so that please take memo and ask me without hesitation :) -
#1 ༷ʑͳεέʔϦϯάιϦϡʔγϣϯ͕ग़ ͯ͘Δ͕ɺզʑSolidity͚ͩΛͬͯ ͍Εྑ͍ͷͩΖ͏͔ʁ Several scaling solutions suggested though, can
we just stick to the Solidity as our development tool? -
#Sharding SolidityΛ͑Δ͕͋ΔछͷॲཧԸܙΛड͚ΒΕͳ͍ You can use Solidity directly but some sort
of computation cannot be fully faster. #Plasma SolidityΛ͏ͱηΩϡϦςΟ͕མͪΔ If you manage to use Solidity, security guarantee would be harmed in many cases #GeneralStateChannel UpdateؔΛ༻͍ͨϩδοΫઃܭͰɺSolidityͷϊϋ ͱผͷͷ͕ඞཁ It requires you to deal with “update” function. And that requires you to learn new paradigm. -
#Sharding - 1 Ethereum2.0(Shasper)͕CasperͱSharding͓Αͼͦͷ ଞͷཁૉٕज़ΛΓࠐΜͩͷͱͯ͠։ൃ͞Ε͍ͯΔɻ Hotel&Train Problemͱ͍͏ShardΛ·͍ͨͩҰׅTx͕ ҰॠͰࡁ·ͤΒΕͳ͍͜ͱͰɺ֎෦ίϯτϥΫτݺͼग़ ͠ͳͲ࠷େੑೳ͕ग़ͤͳͦ͞͏ͱͷ͜ͱɻ (PrysmaticLab
Mori͞ΜͱͷٞΑΓ) Ethereum2.0(Shasper) involves Casper, Sharding, and other modules. Hotel&Train Problem bridges two shards and the Tx isn’t to be maximally fast. External Contract call would be slower (via the talk with Mori from PrysmaticLab) -
#Sharding - 2 ੑೳ: 13,000tps ϒϩοΫλΠϜ8ඵͰ1024Shardsઃఆʹ͓͚Δཧ Performance: 13,000tps Blocktime 8sec,
1024Shards theoretical assumption https://medium.com/@eric.conner/ethereum-network-throughput-under-shasper-390e219ec2b5 -
EVM͕͑ΔPlasmaɺ͓ۚΛҾ͖ग़ͦ͏ͱ͢ΔTxΛ ڐՄ͍͍ͯ͠ͷ͔֬ೝ͢Δίετ͕ߴ͘ͳΔͨΊʹج ຊతʹPlasmaͷܗଶΛͱΕͣɺParity BridgeͳͲͰ Federation(10ਓఔͷAuthorityʹΑΔڐՄ)ͰҾ͖ग़͠ Λ࣮͢ΔɻΑͬͯEthereumͱؔͳ͍EVMΛͬͨ ผνΣʔϯ͕τϥετϑϧʹ͓ۚΛҠಈͰ͖Δ͚ͩͱ͍ ͏ʹͳΔɻ #Plasma -
1 EVM PlasmaͱηΩϡϦςΟ EVM Plasma’s exit is expensive so that you must use Parity Bridge. It is EVM applied Ethereum- independent chain with trustful interchain transfer. -
#Plasma - 2 PlasmaLeapͱηΩϡϦςΟ PlasmaLeapEVMͷ͑ΔExitՄೳͳPlasmaͰ͋Δɻ ͔͠͠TruebitΛࢀߟʹͨ͠ʮશһͰߴՁͳExitΛͤͣ୭ ͔1ਓʹใुͷΘΓʹݕূͤ͞Α͏ʯͱ͍͏Έ ɺҾ͖ग़͠ͷ҆શੑΛ͓ۚͰങ͏༨Λੜͤ͡͞Δͨ ΊʹEthereumͷηΩϡϦςΟΛͦͷ··आΓΕ͍ͯΔ ͱݴ͍͕͍ͨɻ
PlasmaLeap is EVM available excitable Plasma proposal. Its “verify by a person instead of all nodes” economics enabled that cheap exit but it inject another attack vector to 2nd layer, and Ethereum security inheritance is not enough as Plasma. -
ϚʔΫϧπϦʔͱ͍͏ߏͰʮߴϦετʯͷΑ͏ ͳߏΛ࡞Γɺߴͷߋ৽ʹؔͯ͠PlasmaࢠνΣʔ ϯͷγϯάϧϊʔυΛཧ͢ΔOperator͕ෆਖ਼Λ ߦ͍ͬͯͳ͍͜ͱͷূ໌Λɺzk-SNARKsͷSNARK ProofΛ༻͍ͯߦ͏࣮ɻTinyRAMͱ͍͏zk- SNARKsͷճ࿏ઃܭπʔϧΛ༻͍Δͱɺෳࡶͳίϯ τϥΫτѻ͍͏Δ͕ɺຖϒϩοΫͷProofੜ࣌ؒ ෳࡶ͞ʹൺྫͯ͠৳ͼΔͷͰɺੑೳվળ͕ඞཁɻ #Plasma -
3 Plasma snapp Use SNARK Proof as MerkleProof-unchanged proof. TinyRAM may enable the complex contract, but proof generation time defines block time and it’s so slow for now. Performance tuning is needed. -
#Plasma - 4 PlasmaCashͰͷεϚʔτίϯτϥΫτͷ։ൃํ๏ PlasmaCash is completely inherited the fund
security property from Ethereum. And adding multisig is possible. But the logic woudn’t be written by Solidity, and you need PlasmaResearchers. PlasmaCashEthereum͔Βࢿ࢈อશʹؔ͢ΔηΩϡ ϦςΟΛશʹҾ͖ܧ͍͛ͯΔઃܭͰɺ͔ͭϚϧνγ άDEXͷΑ͏ͳॲཧΛຒΊࠐΊΔɻ͔ͦ͠͠Ε SolidityͰॻ͚ΔϩδοΫͰͳ͍ɻdappsͻͱͭͻͱ ͭʹPlasmaResearcher͕ඞཁʹͳΓɺdapps։ൃ νʔϜ͕େֻ͔ΓʹͳΔɻ -
#Plasma - 5 Plasma GeneratorͱIvy-lang So building generator framework of
PlasmaCash- based app could be secure and useful. Chain Inc.’s Ivy-lang is quiet good example how to write Solidity- like human readable UTXO smart-contract. This would be best match with Plasma Generator. PlasmaCashʹdappΛຒΊࠐΜͩͷΛɺੜ͢Δϑ ϨʔϜϫʔΫͷՄೳੑ͕ࣔࠦ͞Ε͍ͯΔɻIvy-langͱ ͍͏”UTXOϕʔεͷίϯτϥΫτ”ʹ͍ͨݴޠ͕૬ ੑ͕Α͘ɺͦͯ͠Solidityʹॻ͖৺͕ࣅ͍ͯΔͷͰɺ Plasma Solidityͱݴ͑ͦ͏ͳײ͕͢͡Δɻ -
#2 ΥϨοτଆͷ։ൃऀ৽͍ٕ͠ज़ʹͲ ͏ରԠͨ͠ΒΑ͍ͷ͔ʁ How the wallet developers should deal with
Plasma or other new technology? -
ΥϨοτʢϥΠτΫϥΠΞϯτʣ࠷ηΩϡΞͳ Plasma࣮Ͱ͋ΔPlasmaCashͰɺྫ͑ΔͳΒຖϒ ϩοΫ͝ͱεϚϗʹͦΕͧΕͷ͓ࡳ͕ΘΕ͔ͨΘ Εͯͳ͍͔ͷূ໌(ཤྺ)Λอଘ͠ɺ͓ࡳΛड͚औΔͨͼ ʹِࡳ(ෆਖ਼ཤྺ)͡Όͳ͍͔֬ೝ͢Δ͕͋Δɻ In PlasmaCash as the most
secure Plasma flavor, the Wallet(Light Client) must store your bucks’ history whether it is used or not, for every block. And the wallet must check counterfeit money by scanning all that history when you are sent a buck to you, before accept it. -
BitcoinͰVtalikΒʹΑΓఏҊ͞Ε͍ͯΔ99%߈ܸੑ ͷఏҊʹ͓͍ͯɺϥΠτΫϥΠΞϯτϝοηʔδΛ సૹ͢Δ͕͋ΔɻΥϨοτ͕ߴԽηΩϡΞԽ ͷͨΊͷηΩϡϦςΟϞσϧʹΈࠐ·Ε͓ͯΓɺઃܭ ࣮͕ϒϩοΫνΣʔϯ͝ͱʹҟͳͬͯ͘Δ͜ͱ͕༧ ͞ΕΔɻ The wallet must forward
message in the 99% fault tolerance proposal which is suggested in Scaling Bitcoin, with Vitalik. This means the wallet is the part of security model to gain tps or security. And this kind of change would be inevitable if the blockchain doesn’t compromise any trade-off. -
#1 #2 ·ͱΊ ShardingͰ҆Ձʹҡ࣋Ͱ͖ΔPlasmaGeneratorʹPlasma SolidityͰॻ͍ͨίϯτϥΫτΛσϓϩΠͯ͠ɺWalletଆ PlasmaCashϕʔεͷͷΛྲྀ༻͢Δ͜ͱͰϋΠεϧʔϓοτ dappΛ࣮ݱ͢ΔɻPlasmaαʔόʔࣗମͷҡ͕࣋dappsΤϯδ χΞͱͯ͠໘ʹͳΓɺPlasma as a
Service͕ग़͖ͯͨΓ ͢Δɻ Sharding makes the Plasma cheap, the programming language is to be Plasma Solidity like one. It’ll be deployed via Plasma Generator. The wallet devs use PlasmaCash based repos. Plasma server maintenance would be helped by Plasma as a Service. -
#3 EthereumͷScaling͕͏গ͔͔͠Γͦ ͏ͳͷͰɺEOSࣗલΦϑνΣʔϯʹಀ ͛ͪΌͬͯྑ͍ͷͩΖ͏͔ Ethereum’s scaling would take a bit
more so that can we flee to EOS or home-brewed off-chain server? -
EOS, ZIL, TEZ, NEM, NEO — ͳͲ தԝूݖ੍දݱྗίϯτϥΫτͷΠ σΟΦϜͷ͍ํ͕ͦΕͧΕେ͖͘ҟͳ Δ
Ethereum’s scaling would take a bit more so that can we flee to EOS or home-brewed off-chain server? -
ETH EOS ZIL TEZ NEM NEO ϊʔυ Nodes 12,881 [1]
21-100 3600 (testnet) 450 (37% foundation al) [2] 502 [3] 7-120 TPS 15 ~5000 2000 [4] 30 4142 [6] 2444 [5] NFT ͑Δʁ NFT available? YES YES NOT YET Maybe don’t like even ERC-20 Possible by Mosaic hack NOT YET ։ൃจԽ Culture of Dev Community αΠϑΝʔ ύΫɺτϥ ετϨεɺ Cypherpun k, Trustless ͳΔ͘ߴ Ͱɺதԝूݖ Ήͳ͠ Chase fastest, semi-public chain ίϯτϥΫτ Λ੍ݶͯ͠ઢ ܗSharding Linear sharding and limited contract ܗࣜॺ໊Մೳ ͳίϯτϥΫ τɺ༧ଌࢢ ʹΑΔΨόφ ϯε Formal Verification and Governance Leverage Trust by easy contract Foundation Driven [4] https://cryptobriefing.com/zilliqa-closes-in-on-visas-8000-tps/ If wrong tell me @_sgtn [1]ethernodes.org [2] tzscan.io [3]nemnodes.org [5] https://www.reddit.com/r/NEO/comments/8tym0c/tps_of_neo_blockchain/ [6] https://jp.techcrunch.com/2016/12/20/mijins-next-generation-core-catapult-records-4142-tps/ -
๏ਓҊ݅ͰɺࣗࣾͰ͓٬͞Μͷ͓ۚΛ ཧͨ͘͠ͳ͍ͱ͔ɺύϒϦοΫνΣʔϯ Λ͍͍ͨͱݴ͏͝ཁ͕͋ͬͨΒʁ If your customer said they don’t want
to maintain money safety but they want to use Public Chain. => EOS and/or home-brewed off-chain -
τϥετϨεͰ؆୯ͳήʔϜۚ༥ܥͷ ΈΛ࡞Γͨͯ͘ɺදݱͰ͖Δͷ গ͠গͳͯ͘Α͘ɺϝΠϯωοτϩʔ ϯν·ͰͯΔ߹ What you can build would be
a bit few, but you can launch trustless contract soon after mainnet comes. And you can go 700ktps theoretically. => ZIL -
νϡʔϦϯάશͳεϚίϯݴޠɺ͔ͭ ϋʔυϑΥʔΫ͕গͳ͘ථํࣜ͢Βม ͑ΒΕΔظࢹͳͷɻBig blockͰε έʔϦϯά͢Δɻ Turing complete smart contract, and
Hardfork-less voting method is important when you think. => TEZ -
#3 ·ͱΊ ظతʹαΠϑΝʔύϯΫ͡Όͳ͍͍ํΛ͍ͨ͠νʔϜETHҎ ֎Ͱ͍͍͠ΦϑνΣʔϯͰશવ͍͍͠ɺͦ͏͠ͳ͍ͱ͖͍ͭɻETH αΠϑΝʔύϯΫͳεέʔϦϯάʹಛԽ͍ͯ͠ΔɻΦʔϓϯͰ௵ ͤͳͯ҆͘ՁʹӡӦͰ͖Δdappsʹࢿ͕͋ͭ·Γɺ͞ΒʹΦʔϓ ϯιʔεʹࢿ࢈͕ੵ͢Δͷ͕decentralizedͳ··ͷύϒϦοΫ νΣʔϯಛԽͷྑ͞ɻ͋ͱ௵͞Εʹ͘͞ͱ͔εέʔϦϯάख๏ͷ downsideͱ͔දݱྗͰબͿɻ If
you’re cypherpunk, Plasma scaling maybe currently earliest decentralized way. For non Etherean, please choose Public Chain anyway. Because the investment you got would be redistributed to Open Source community if you make you source code open :) -
શମ·ͱΊ աతʹ༷ʑͳνΣʔϯʹ։ൃऀ͕ࢄ͍ͯ͘͜͠ͱ ͕ߟ͑ΒΕΔɻຊʹࢄੑ͕ඞཁͳϓϩδΣΫτ Λ͍ͬͯΔͷ͔ScalingʹΑ͔ͬͯΕΔʹ ͳΔɻEthereumͷະདྷ͚ͩͰͳ͘ɺϒϩοΫνΣʔ ϯʹΑΔεϚʔτίϯτϥΫτ։ൃࣗମ͕Solidityͩ ͚Ͱ݁͢ΔͷͰͳ͘ͳ͖͍ͬͯͯΔɻ Marginally, developers would
move to various chains. This year everyone would ask myself “Do you really need decentralization for my project?”.