Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
イーサリアムスケーリングの背景と概要
Search
Osuke
April 26, 2018
Technology
2
2.3k
イーサリアムスケーリングの背景と概要
Osuke
April 26, 2018
Tweet
Share
More Decks by Osuke
See All by Osuke
特許データを使ったマルチモーダルAIの検証事例@LLMProd#4
osuke
0
140
dbtを中心に据えた データ分析とプロダクト開発
osuke
1
920
LayerX Privacy Tech事業部紹介 Tech編
osuke
0
140
(SCIS2021) Anonify: プライバシーを保護した 検証可能な状態遷移モジュール
osuke
1
340
Rustで実装された AWS Nitro Enclaves CLIを読む
osuke
0
310
Rustのパフォーマンスに関するTips
osuke
3
2.7k
ARM TrustZone入門 / ARM TrustZone intro
osuke
3
8k
Anonify
osuke
3
960
Rustのasync/awaitとスケジューラの話 / rust-async-await
osuke
9
3.7k
Other Decks in Technology
See All in Technology
開発生産性を上げながらビジネスも30倍成長させてきたチームの姿
kamina_zzz
2
1.7k
Shopifyアプリ開発における Shopifyの機能活用
sonatard
4
260
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.8k
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
210
アジャイルでの品質の進化 Agile in Motion vol.1/20241118 Hiroyuki Sato
shift_evolve
0
180
Terraform Stacks入門 #HashiTalks
msato
0
360
Flutterによる 効率的なAndroid・iOS・Webアプリケーション開発の事例
recruitengineers
PRO
0
120
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
10
1.2k
Application Development WG Intro at AppDeveloperCon
salaboy
0
200
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
440
あなたの知らない Function.prototype.toString() の世界
mizdra
PRO
0
120
Lambda10周年!Lambdaは何をもたらしたか
smt7174
2
110
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Visualization
eitanlees
145
15k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
KATA
mclloyd
29
14k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
It's Worth the Effort
3n
183
27k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
How GitHub (no longer) Works
holman
310
140k
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.2k
Transcript
ΠʔαϦΞϜεέʔϦϯάͷ എܠͱ֓ཁ 2018/4/26 Osuke
Osuke @zoom_zoomzo - blog - dApp - twitter - ϑϦʔϥϯε
- 2017ळࠒ͔ΒϒϩοΫνΣʔϯΛษڧ - ౦େੜ໋ཧֶ෦ଔ
1ɽεέʔϥϏϦςΟɾτϦϨϯϚ 2ɽεέʔϦϯάιϦϡʔγϣϯ ɹ2.1ɹSidechains ɹ2.2ɹState Channels ɹ2.3ɹSharding
1. Scalablity Trilemma
Scalablity Trilemma 2ͭͷཁૉΛຬͨ͢ͷՄೳ͚ͩͲɺ 3ͭಉ࣌ʹຬͨ͢ͷ͕͍͠ʂ ίετͰωοτϫʔΫʹࢀՃՄೳ ेʹ߈ܸίετ͕ߴ͍ ωοτϫʔΫશମͰߴ͍ॲཧೳྗ ࢄੑɿ ҆શੑɿ εέʔϥϏϦςΟɿ
ݱঢ়ɾɾɾ εέʔϥϏϦςΟ ࢄੑ ҆શੑ ࢄੑͱ҆શੑΛߴਫ४ʹอͬͨ·· εέʔϥϏϦςΟΛ৳͍͖͍ͯͨ͠ʂ ݕূϊʔυͷܭࢉϦιʔε͕ ϘτϧωοΫʹɻ
1ɽࢄੑɿϊʔυʹඞཁͳܭࢉϦιʔεΛ͘อͭͨΊʹɺ ʢBlock Gas LimitΛ্͛ͯμϝʣ 2ɽ҆શੑɿίϯηϯαεͷηΩϡϦςΟΛอͪɺ ʢϋογϡύϫʔΛԼͤͯ͞μϝʣ 3ɽεέʔϥϏϦςΟɿωοτϫʔΫશମͰΑΓߴ͍ॲཧೳྗΛ࣋ͭ εέʔϥϏϦςΟ ࢄੑ ҆શੑ
→ϝΠϯνΣʔϯͰͷݕূ࡞ۀΛ࠷খԽ͢Δඞཁੑ →શͯͷTxΛશͯͷϊʔυ͕ݕূ͠ͳͯ͘ࡁΉΑ͏ͳํ๏
S S* Tx ঢ়ଶͱɺ - ΞΧϯτߴ - φϯε - EVMίʔυϋογϡ
- ετϨʔδϧʔτ →ϒϩοΫνΣʔϯͷঢ়ଶΛม͑Δ͜ͱʹ ܭࢉϦιʔε͕ඞཁʹͳΔ ͦͦͳͥϊʔυܭࢉϦιʔε͕ඞཁͳͷ͔ →τϥϯβΫγϣϯɾϒϩοΫΛݕূ͢Δ͜ͱʹ ܭࢉϦιʔε͕ඞཁʹͳΔ →ΠʔαϦΞϜεςʔτϚγϯ
ϒϩοΫνΣʔϯͷঢ়ଶભҠΛ࠷খݶʹ͢Δ ΠʔαϦΞϜʹ͓͚ΔεέʔϦϯάɺ ͱ͍͏Ξϓϩʔν
2ɽΠʔαϦΞϜͷεέʔϦϯάιϦϡʔγϣϯ ɾ1st layer → Sharding ɾ2nd layer → Sidechains, State
Channels
2.1ɹSidechains
Global State ʢ҆શʣ Local State ʢ҆શ͡Όͳ͍ʣ S0 → S1 →ɾɾɾ
Sn தؒঢ়ଶભҠ Flaud Proofsɿ ෆਖ਼ߦҝʹର͢Δਖ਼ੑͷূ໌ Sidechains (Plasma) αΠυνΣʔϯ →ϒϩοΫνΣʔϯͷঢ়ଶભҠΛ࠷খݶʹ
2.2 State Channels
Global State ʢ҆શʣ தؒঢ়ଶભҠ State Channels (Raiden Network) S0 →
S1 →ɾɾɾ→ Sn-1 → Sn OPEN CLOSE →ϒϩοΫνΣʔϯͷঢ়ଶભҠΛ࠷খݶʹ
Global State ʢ҆શʣ தؒঢ়ଶભҠ State Channels (Raiden Network) ࠷৽Ͱͳ͍StateΛ ίϛοτ͠Α͏ͱ͢ΔͱϖφϧςΟʂ
S0 → S1 →ɾɾɾ→ Sn-1 → Sn →ϒϩοΫνΣʔϯͷঢ়ଶભҠΛ࠷খݶʹ
2.3 Sharding
Sharding shard_id: 0 shard_id: 1 shard_id: 99 όϦσʔλʔ ɾɾɾ state:
S0 state: S1 state: S99 →ݕূΛฒྻԽͯ͠ܭࢉ →ϒϩοΫνΣʔϯͷঢ়ଶભҠΛ࠷খݶʹ Global State
Sharding shard_id: 0 shard_id: 1 shard_id: 99 ɾɾɾ T =
1
Sharding shard_id: 0 shard_id: 1 shard_id: 99 ɾɾɾ T =
2
Sharding shard_id: 0 shard_id: 1 shard_id: 99 ɾɾɾ T =
3
Ethereum 2.0 • Sharding • Casper • Stateless Clients Sidechains
• Plasma • Cosmos • Parity Bridge Truebit State Channels • Raiden Network • Counterfactual • FunFair …etc off-chain interactive verification εέʔϦϯάϓϩδΣΫτ
ΠʔαϦΞϜεέʔϦϯάͷϞνϕʔγϣϯ ࢄੑͱ҆શੑΛ٘ਜ਼ʹ͢ΔͷNG ϝΠϯνΣʔϯͰͷόϦσʔγϣϯ࡞ۀʢঢ়ଶભҠʣΛ࠷খԽ ϝΠϯνΣʔϯͱͷ҆શͳStateͷಉظ͕՝