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
Lightning Network Watchtower
Search
yohei okada
May 20, 2018
1
1.4k
Lightning Network Watchtower
blockchain.tokyo #8のLT発表資料
yohei okada
May 20, 2018
Tweet
Share
More Decks by yohei okada
See All by yohei okada
メルカリアッテのRxSwift実装ガイド
parakeety
10
5.4k
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Embracing the Ebb and Flow
colly
84
4.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
Done Done
chrislema
181
16k
Automating Front-end Workflow
addyosmani
1366
200k
Visualization
eitanlees
145
15k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Transcript
Lightning Network Watchtower blockchain.tokyo #8 @parakeety
ࣗݾհ • Ԭా༸ฏ • github: parakeety • twitter: @parakeety_ •
ڵຯؔ৺: Lightning Network, DEX, mimblewimble
Lightning Network͓͞Β͍ • Bitcoin networkͱ࿈ܞ͢Δ͏Ұͭͷp2p network • opening txͱclosing txBitcoin
networkʹbroadcast͞ Εॻ͖ࠐ·ΕΔ͕ɺ్தͷcommitment txbroadcast ͤͣʹͻͨ͢Βߋ৽͢Δ • commitment txॺ໊ࡁΈͰ͍ͭͰBitcoin network ʹ͍ͭͰbroadcastͯ֬͠ఆͤ͞Δࣄ͕Ͱ͖Δ
0QFOJOH5SBOTBDUJPO $MPTJOH5SBOTBDUJPO $PNNJUNFOU5SBOTBDUJPO $PNNJUNFOU5SBOTBDUJPO ΞυϨεA: 5BTC ΞυϨεB: 5BTC
ΞυϨεA: 4BTC ΞυϨεB: 6BTC ΞυϨεA͔ΒΞυϨεBʹ1BTCૹۚ ΞυϨεAͷॴ༗ऀCommitment Transaction(1)Λbroadcast͢Δincentive͕͋Δ
ݹ͍ෆਖ਼ͳCommitment TxΛbroadcastͨ͠߹ • ҰఆظؒҎʹɺऔΓ͢tx(justice tx)Λ࡞ͯ͠ broadcast͢Εɺopening txͷdepositΛશͯճऩ͢ Δࣄ͕Ͱ͖Δ
ෆਖ਼ͳCommitment txճऩͷ՝ • ݹ͍ෆਖ਼ͳcommitment tx͕broadcast͞Ε͔ͯΒɺҰ ఆظؒҎʹjustice txΛ࡞ͯ͠ɺbroadcast͠ͳ͍ͱ ͍͚ͳ͍ • ͭ·ΓɺBitcoin
networkΛࢹ͢Δඞཁ͕͋Δ • ৗ࣌ىಈ͍ͯ͠Δfull nodeͰ͋ΕՄೳ͕ͩɺϞόΠϧ ͩͱݫ͍͠
Watchtower
Watchtower • ϞόΠϧͳͲͷৗ࣌ىಈ͕͍ܰ͠ྔΫϥΠΞϯτ ͷΘΓʹɺBitcoin NetworkΛࢹ • ݹ͍Commitment tx͕broadcast͞ΕͨͷΛݕ͠ɺ justice txΛbroadcastͯ͘͠ΕΔ
• LightningͷϑϧϊʔυͷҰػೳͱ࣮ͯ͠༧ఆ
WatchtowerͷΈ • ܰྔΫϥΠΞϯτɺCommitment txΛߋ৽͢Δ ʹɺjustice txΛ࡞͠ɺWatchtowerʹૹΔ • ͋ͱWatchtower͕ࣗಈͰճऩͯ͘͠ΕΔ • 1ͭͷWatchtowerͰͳͯ͘ɺෳͷWatchtowerʹ
outsource͢Δ
WatchtowerͷΠϯηϯςΟϒ • ܰྔΫϥΠΞϯτͷΘΓʹෆਖ਼ͳCommitment txΛ ৗ࣌ࢹͯ͠Β͏ࣄʹରͯ͠ରՁΛ͏ࣄ͕ఆ͞Ε ͯΔ • Retribution: ճऩֹͨۚ͠ͷҰ෦ΛWatchtowerʹࢧ ͏
• Pay-per-state: Commitment txΛߋ৽͠ɺjustice txΛૹ ΔʹใुΛࢧ͏
·ͱΊ • ϞόΠϧͷৗ࣌ىಈ͕͍͠ΫϥΠΞϯτͰ҆৺ ͯ͠Lightning NetworkΛ͑ΔΑ͏ʹͳΔʹɺ Watchtower͕ඞཁ