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
Plasmaのexitの高速化についてともに考える
Search
sgtn
May 25, 2018
Research
4
1.3k
Plasmaのexitの高速化についてともに考える
Plasma#2登壇資料。Plasmaのexitを高速化したらどんな使い方ができて、高速化を実現するためには何ができそうか考えてみました
sgtn
May 25, 2018
Tweet
Share
More Decks by sgtn
See All by sgtn
war model
shogochiai
0
73
Meta Contract on Steroids
shogochiai
0
76
Workshop: Solidity with LLM
shogochiai
2
150
Why ERC-7546 and where it is going.
shogochiai
0
200
UUPS2.pdf
shogochiai
0
41
風の時代とメタ国家
shogochiai
0
250
様相μ計算による計算論的な民主主義の健全性の評価 ~自律分散組織(DAO)による政体の超越性に向けて~ The theory of democraticity evaluation via modal mu-calculus for suggesting the supremacy of DAO for Nations.
shogochiai
0
31
Web3時代のDAOによるソシエタルデザイン
shogochiai
0
140
ptaa.app 解説資料
shogochiai
0
88
Other Decks in Research
See All in Research
CoRL2024サーベイ
rpc
1
1.1k
情報処理学会関西支部2024年度定期講演会「自然言語処理と大規模言語モデルの基礎」
ksudoh
10
2.1k
snlp2024_multiheadMoE
takase
0
460
marukotenant01/tenant-20240916
marketing2024
0
620
ベイズ的方法に基づく統計的因果推論の基礎
holyshun
0
620
論文読み会 KDD2024 | Relevance meets Diversity: A User-Centric Framework for Knowledge Exploration through Recommendations
cocomoff
0
110
日本語医療LLM評価ベンチマークの構築と性能分析
fta98
3
790
Composed image retrieval for remote sensing
satai
2
130
アプリケーションから知るモデルマージ
maguro27
0
180
Practical The One Person Framework
asonas
1
1.8k
論文紹介: COSMO: A Large-Scale E-commerce Common Sense Knowledge Generation and Serving System at Amazon (SIGMOD 2024)
ynakano
1
210
VisFocus: Prompt-Guided Vision Encoders for OCR-Free Dense Document Understanding
sansan_randd
1
350
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
Unsuck your backbone
ammeep
669
57k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Being A Developer After 40
akosma
87
590k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
What's in a price? How to price your products and services
michaelherold
243
12k
We Have a Design System, Now What?
morganepeng
51
7.3k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
Testing 201, or: Great Expectations
jmmastey
40
7.1k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.6k
Transcript
Plasmaͷ exitͷ ߴԽʹ͍ͭͯ ͱʹߟ͑Δ
Sg/shogochiai/@_sgtn
matic.network exa.earth
ԬͰCryptoeconomics Lab ͱ͍͏ձࣾΛ͡Ί·ͨ͠
research.cryptoeconomicslab.com
VR-MMORPG Protocol
ؓٳ
̎िؒ
Plasma Exit
Ϣʔβʔ͕ࢠνΣʔϯ ͱͲ·Δ࡞ΓํʹͳΔ 1 conf 2 weeks
DEXήʔϜͰ͓ͬͨۚΛ΄͔Ͱ͏ͷʹ ̎िؒͨͳ͍ͱ͍͚ͳ͍ͷ 1 conf 2 weeks
ଞͷίϯτϥΫτΛݺ ͳ͍
ͳΜͰࢠνΣʔϯʹډ͢Δ ϞσϧʹࢥߟΛ੍ݶ͍ͯ͠Δ ͷ͔ʁ
͍ ϋΠεϧʔϓοτ͕ཉ͍͠ͱ͖͚ͩࢠ νΣʔϯʹग़ೖΓ͢Δͷଥ͔ʁ
exitChallengeडೖظؒ ̎िؒɹʹʼɹ10ඵ
1 conf 10sec
Կ͕Ͱ͖ΔΑ͏ʹͳΔʁ
(c) Loom Network
͍ηογϣϯͷ͚ؒͩ Plasma
1st Plasma Root 2nd Plasma 3rd Plasma
ਂ͍Plasmaʹεοͱೖͬͯ ϩά·Ͱه͢ΔΑ͏ͳ༻్ͷαʔ Ϗεʹͬͯ ࣌εοͱൈ͚Δ
Ͳ͏ͬͨΒ10ඵexit Λݱ࣮ͷͷʹͰ͖Δʁ
A.ΊͪΌΊͪΌ৴པͰ͖Δύϫϑϧͳ challenger͕͍Δ B. ΊͪΌͪ͘Όͨ͘͞Μͷchallenger͕ ͍Δ C. Ϣʔβʔͷ৴༻ʹج͍ͮͯexitதͷTxΛ ୲อʹϧʔτνΣʔϯͰ͓ۚΛି͢
A.ΊͪΌΊͪΌ৴པͰ͖Δύϫϑϧͳ challenger͕͍Δ B. ΊͪΌͪ͘Όͨ͘͞Μͷchallenger͕ ͍Δ C. Ϣʔβʔͷ৴༻ʹج͍ͮͯexitதͷTxΛ ୲อʹϧʔτνΣʔϯͰ͓ۚΛି͢
A. ΊͪΌΊͪΌ৴པͰ͖Δύϫϑϧͳchallenger͕͍Δ 1. ϑΣσϨʔγϣϯʢෳͷexitڐՄऀʣΛ༻ҙͯ͠ exitڐՄͷͨΊʹॺ໊͢Δ 2. ۭചΓͷͨΊͰ݁ୗ͞ΕΔͱڊֹͷෆਖ਼Ҿ͖ग़͕͠ ՄೳͱࢥΘΕΔ 3. ૬Ԡͷֹͷڙୗۚͱɺఆظతͳબڍ͕ඞཁͱࢥΘΕΔ
4. ݁ୗΛΑΓ؇͠ͳ͚ΕͳΒͳ͍ 5. ࠷ѱͷέʔεɺࢠνΣʔϯͷblockੜ͕ෆਖ਼Ͱ mass exit͍ͨ͠ͷʹɺfederation݁ୗͯ͠Δঢ়گ
A. ΊͪΌΊͪΌ৴པͰ͖Δύϫϑϧͳchallenger͕͍Δ 1. ϑΣσϨʔγϣϯʢෳͷexitڐՄऀʣΛ༻ҙͯ͠exit ڐՄͷͨΊʹॺ໊͢Δ 2. ۭചΓͷͨΊͰ݁ୗ͞ΕΔͱڊֹͷෆਖ਼Ҿ͖ग़͕͠ ՄೳͱࢥΘΕΔ 3. ૬Ԡͷֹͷڙୗۚͱɺఆظతͳબڍ͕ඞཁͱࢥΘΕΔ
4. ݁ୗΛΑΓ؇͠ͳ͚ΕͳΒͳ͍ 5. ࠷ѱͷέʔεɺࢠνΣʔϯͷblockੜ͕ෆਖ਼Ͱ mass exit͍ͨ͠ͷʹɺfederation݁ୗͯ͠Δঢ়گ
A. ΊͪΌΊͪΌ৴པͰ͖Δύϫϑϧͳchallenger͕͍Δ 1. ϑΣσϨʔγϣϯʢෳͷexitڐՄऀʣΛ༻ҙͯ͠exit ڐՄͷͨΊʹॺ໊͢Δ 2. ۭചΓͷͨΊͰ݁ୗ͞ΕΔͱڊֹͷෆਖ਼Ҿ͖ग़͕͠ ՄೳͱࢥΘΕΔ 3. ૬Ԡͷֹͷڙୗۚͱɺఆظతͳબڍ͕ඞཁͱࢥΘΕΔ
4. ݁ୗΛΑΓ؇͠ͳ͚ΕͳΒͳ͍ 5. ࠷ѱͷέʔεɺࢠνΣʔϯͷblockੜ͕ෆਖ਼Ͱ mass exit͍ͨ͠ͷʹɺfederation݁ୗͯ͠Δঢ়گ
A. ΊͪΌΊͪΌ৴པͰ͖Δύϫϑϧͳchallenger͕͍Δ 1. ϑΣσϨʔγϣϯʢෳͷexitڐՄऀʣΛ༻ҙͯ͠exit ڐՄͷͨΊʹॺ໊͢Δ 2. ۭചΓͷͨΊͰ݁ୗ͞ΕΔͱڊֹͷෆਖ਼Ҿ͖ग़͕͠ ՄೳͱࢥΘΕΔ 3. ૬Ԡͷֹͷڙୗۚͱɺఆظతͳબڍ͕ඞཁͱࢥΘΕΔ
4. ݁ୗΛΑΓ؇͠ͳ͚ΕͳΒͳ͍ 5. ࠷ѱͷέʔεɺࢠνΣʔϯͷblockੜ͕ෆਖ਼Ͱ mass exit͍ͨ͠ͷʹɺfederation݁ୗͯ͠Δঢ়گ
A. ΊͪΌΊͪΌ৴པͰ͖Δύϫϑϧͳchallenger͕͍Δ 1. ϑΣσϨʔγϣϯʢෳͷexitڐՄऀʣΛ༻ҙͯ͠exit ڐՄͷͨΊʹॺ໊͢Δ 2. ۭചΓͷͨΊͰ݁ୗ͞ΕΔͱڊֹͷෆਖ਼Ҿ͖ग़͕͠ ՄೳͱࢥΘΕΔ 3. ૬Ԡͷֹͷڙୗۚͱɺఆظతͳબڍ͕ඞཁͱࢥΘΕΔ
4. ݁ୗΛΑΓ؇͠ͳ͚ΕͳΒͳ͍ 5. ࠷ѱͷέʔεɺࢠνΣʔϯͷblockੜ͕ෆਖ਼Ͱ mass exit͍ͨ͠ͷʹɺfederation݁ୗͯ͠Δঢ়گ
None
EC2 t2.medium $0.0464 per 3600sec ETH $13.4 per 0.2sec ϏλϦΫࢼࢉͰ
Φʔόʔϔου͕100ສഒҧ͏
ݖੑΛ٘ਜ਼ʹ͢Εૣ͘ͳΔ Ͱʮෆಛఆଟ͕ࣗ༝ʹࢀՃ Ͱ͖ΔγεςϜʯ͘ͳ͍ɻ ԟʑʹͯ͠ʮۦ͚Ҿ͖༨ʯ͕ ηΩϡϦςΟ্ͷΛى͜͢
In other words ʮۦ͚Ҿ͖ۭؒগͳ͚Εগͳ͍΄͏͕͍͍ʯ e.g. dPoSͱ͔federationͱ͔
A.ΊͪΌΊͪΌ৴པͰ͖Δύϫϑϧͳ challenger͕͍Δ B. ΊͪΌͪ͘Όͨ͘͞Μͷchallenger͕ ͍Δ C. Ϣʔβʔͷ৴༻ʹج͍ͮͯexitதͷTxΛ ୲อʹϧʔτνΣʔϯͰ͓ۚΛି͢
1. challengerີΛߴΊΔΪϛοΫ͕ඞཁ 2. શαΠυνΣʔϯΛԣஅͯ͠validationλεΫΛϫϯε τοϓͰߦ͑ΔΞϓϦέʔγϣϯΛ४උ͢Δʢvalidation poolʣ 3. validation poolશPlasmaͷσʔλΛಉظ͠ͳ͚Εͳ Βͳ͍ͷ͔ɺRPC͔ΒదٓσʔλΛऔΔ͚ͩͰࣄΓΔͷ
͔ 4. શPlasmaΛԣஅͨ͠validationޮԽπʔϧ͕ετϨʔδ ͷؔͰෆՄೳͳΒɺchallengerΛ૿͢ํੑո͍͠ 5. ༨ஊ͕ͩɺ͜ͷετϨʔδͷ੍௨৴ͷෆ҆ఆ͕͋͞ ΓεϚϗΛvalidator/challengerʹ͢Δͷͱ͖ʹ·͍͠
1. challengerີΛߴΊΔΪϛοΫ͕ඞཁ 2. શαΠυνΣʔϯΛԣஅͯ͠validationλεΫΛϫϯε τοϓͰߦ͑ΔΞϓϦέʔγϣϯΛ४උ͢Δʢvalidation poolʣ 3. validation poolશPlasmaͷσʔλΛಉظ͠ͳ͚Εͳ Βͳ͍ͷ͔ɺRPC͔ΒదٓσʔλΛऔΔ͚ͩͰࣄΓΔͷ
͔ 4. શPlasmaΛԣஅͨ͠validationޮԽπʔϧ͕ετϨʔδ ͷؔͰෆՄೳͳΒɺchallengerΛ૿͢ํੑո͍͠ 5. ༨ஊ͕ͩɺ͜ͷετϨʔδͷ੍௨৴ͷෆ҆ఆ͕͋͞ ΓεϚϗΛvalidator/challengerʹ͢Δͷͱ͖ʹ·͍͠
1. challengerີΛߴΊΔΪϛοΫ͕ඞཁ 2. શαΠυνΣʔϯΛԣஅͯ͠validationλεΫΛϫϯε τοϓͰߦ͑ΔΞϓϦέʔγϣϯΛ४උ͢Δʢvalidation poolʣ 3. validation poolશPlasmaͷσʔλΛಉظ͠ͳ͚Εͳ Βͳ͍ͷ͔ɺRPC͔ΒదٓσʔλΛऔΔ͚ͩͰࣄΓΔͷ
͔ 4. શPlasmaΛԣஅͨ͠validationޮԽπʔϧ͕ετϨʔδ ͷؔͰෆՄೳͳΒɺchallengerΛ૿͢ํੑո͍͠ 5. ༨ஊ͕ͩɺ͜ͷετϨʔδͷ੍௨৴ͷෆ҆ఆ͕͋͞ ΓεϚϗΛvalidator/challengerʹ͢Δͷͱ͖ʹ·͍͠
1. challengerີΛߴΊΔΪϛοΫ͕ඞཁ 2. શαΠυνΣʔϯΛԣஅͯ͠validationλεΫΛϫϯε τοϓͰߦ͑ΔΞϓϦέʔγϣϯΛ४උ͢Δʢvalidation poolʣ 3. validation poolશPlasmaͷσʔλΛಉظ͠ͳ͚Εͳ Βͳ͍ͷ͔ɺRPC͔ΒదٓσʔλΛऔΔ͚ͩͰࣄΓΔͷ
͔ 4. શPlasmaΛԣஅͨ͠validationޮԽπʔϧ͕ετϨʔδ ͷؔͰෆՄೳͳΒɺchallengerΛ૿͢ํੑո͍͠ 5. ༨ஊ͕ͩɺ͜ͷετϨʔδͷ੍௨৴ͷෆ҆ఆ͕͋͞ ΓεϚϗΛvalidator/challengerʹ͢Δͷͱ͖ʹ·͍͠
1. challengerີΛߴΊΔΪϛοΫ͕ඞཁ 2. શαΠυνΣʔϯΛԣஅͯ͠validationλεΫΛϫϯε τοϓͰߦ͑ΔΞϓϦέʔγϣϯΛ४උ͢Δʢvalidation poolʣ 3. validation poolશPlasmaͷσʔλΛಉظ͠ͳ͚Εͳ Βͳ͍ͷ͔ɺRPC͔ΒదٓσʔλΛऔΔ͚ͩͰࣄΓΔͷ
͔ 4. શPlasmaΛԣஅͨ͠validationޮԽπʔϧ͕ετϨʔδ ͷؔͰෆՄೳͳΒɺchallengerΛ૿͢ํੑո͍͠ 5. ༨ஊ͕ͩɺ͜ͷετϨʔδͷ੍௨৴ͷෆ҆ఆ͕͋͞ ΓεϚϗΛvalidator/challengerʹ͢Δͷͱ͖ʹ·͍͠
A.ΊͪΌΊͪΌ৴པͰ͖Δύϫϑϧͳ challenger͕͍Δ B. ΊͪΌͪ͘Όͨ͘͞Μͷchallenger͕ ͍Δ C. Ϣʔβʔͷ৴༻ʹج͍ͮͯexitதͷTxΛ ୲อʹϧʔτνΣʔϯͰ͓ۚΛି͢
1. ϢʔβʔͷσϑΥϧτΛదʹܭࢉ͢Δ 2. Exit࣌ʹͦͷexitֹΛσΟεΧϯτͨۚ͠ ֹΛି͚͠Δʢଈग़ۚͰ͖Δʣ 3. Exit͕ྃͨ͠Βͦͷ··ିਓ͕ड͚औ Δ
1. ϢʔβʔͷσϑΥϧτΛదʹܭࢉ͢Δ 2. Exit࣌ʹͦͷexitֹΛσΟεΧϯτͨۚ͠ ֹΛି͚͠Δʢଈग़ۚͰ͖Δʣ 3. Exit͕ྃͨ͠Βͦͷ··ିਓ͕ड͚औ Δ
1. ϢʔβʔͷσϑΥϧτΛదʹܭࢉ͢Δ 2. Exit࣌ʹͦͷexitֹΛσΟεΧϯτͨۚ͠ ֹΛି͚͠Δʢଈग़ۚͰ͖Δʣ 3. Exit͕ྃͨ͠Βͦͷ··ିਓ͕ड͚औ Δ
՝
ෆਖ਼exitʹ͓ۚΛି͍ͯͨ͠ΒʁΉ͠Ζ͓ۚΛ౿ Έͨ͢Ίʹෆਖ਼exitΛࢼΈΔ͕ͭ૿͑ͨΒʁ ͦ͏͍͏ਓ৴༻είΞ͕ͳ͍ͷͰିͤͳ͍ exit͕ૣ͘ͳΔਓݶఆత B: ϧʔτνΣʔϯͰۚΛି͢
ϑΣσϨʔγϣϯʹͤΑߴີʹͤΑɺ ̍݅Ͱݟಀ͕͋͠Δͱ௧͍ ͦͷࢠνΣʔϯͷͨΊʹrootchainͰlock͠ ͍ͯΔࢿ࢈͕ଟΊʹҾ͖ग़͞Ε͍ͯ͘ ࠷ޙʹexitͨ͠ਓͷͨΊͷࢿ࢈͕Βͳ͍ ͷͰɺօͧͬͯͦ͜ͷνΣʔϯ͔Βಀ͛ͨ ͘ͳΔ A or C:
ChallengerͷॲཧೳྗڧԽ
Cryptoeconmics
pBFT HTLC Griefing Factors Nakamoto Consensus
snario/awesome-cryptoeconomics
10ඵexitཧ͚ͩͲɺ ݱঢ়10exit·ͰͳΒཧతʹՄೳɺ ̎िؒexitΓ͗͢ ળྑͳϢʔβʔۚརͰିexit͕Ͱ͖Δ ͘Β͍ͷݴٴ͕Ͱ͖Δঢ়ଶΛ࡞Γ͍ͨ
ηΩϡϦςΟϞσϧΛཧత ͳಈతฏߧͰఆٛ/ఏҊ͍ͯ͠ ࣌͘
ֶڧ͍Ϛϯ Έͳ͞ΜͷίϯτϦϏϡʔγϣϯΛ͓ͪͯ͠·͢ʂ