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
Search
erukiti
March 16, 2018
2
2.2k
ライトニングネットワーク完全に理解した (わかってない) / lightning-network
erukiti
March 16, 2018
Tweet
Share
More Decks by erukiti
See All by erukiti
LLMをねじ伏せる/Conquer the LLM
erukiti
0
79
鮮度が高すぎて世界で誰も正解を見つけてない課題に取り組んでいる/ Freshness issues
erukiti
1
680
実演TypeScript + GitHub Copilot
erukiti
9
4.1k
Function Calling対応Playgroundを作って検証してみた/LLMMeetup#3
erukiti
0
420
プロンプトを管理しやすくするツールを作ってみた / I created a tool to make the prompts easier to manage.
erukiti
3
1.8k
実践モブプログラミング/ mob programming practice
erukiti
3
1.5k
今日からアウトプットを始めよう / let's start the output from today
erukiti
1
700
Markdownをスクリプト言語として走らせてみた / actual-code
erukiti
0
4.2k
もくもく執筆会 for 技術書典5 / techbook_meepup
erukiti
0
170
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Docker and Python
trallard
40
3.1k
Designing the Hi-DPI Web
ddemaree
280
34k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Visualization
eitanlees
145
15k
Scaling GitHub
holman
458
140k
Rails Girls Zürich Keynote
gr2m
94
13k
For a Future-Friendly Web
brad_frost
175
9.4k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Fireside Chat
paigeccino
34
3k
Unsuck your backbone
ammeep
668
57k
Transcript
-JHIUOJOH/FUXPSL શʹཧղͨ͠ Θ͔ͬͯͳ͍ !FSVLJUJ
None
ࣗݾհ!FSVLJUJ w 5XJUUFS HJUIVC 2JJUB .FEJVNͳͲ w Ҿ͖͜ΓؾຯϑϦʔϥϯεΤϯδχϟʔ w ϥΠςΟϯάͱ͔ଟগ
w ٕज़ॻయͰɺ߹ಉࢽ ࿉ۚज़ ͱ߹ಉࢽͷۀԽ ϫϯ ετοϓຊ ͱಉਓࢽ ϒϩοΫνΣʔϯຊ ग़͠·͢ w ໊࡞ͬͨΒ3(#ͱ$.:,ͷ᠘ʹҾ͔͔ͬͬͨ
ؒҧͬͯͨΒ ποίϛ͓ئ͍͠·͢ʂ
ϥΠτχϯάωοτϫʔΫ w #JUDPJOͰߴɾେྔͷऔҾΛࡹ͚ͩ͘ͷεέʔϥϏϦςΟ ͕ແ͍ͷͰΦϑνΣʔϯ #JUDPJOͷ#MPDLDIBJOͱҟͳΔ ͷ ΛͬͯεέʔϥϏϦςΟΛಘΔํ๏ w ࠓઆ໌͢ΔͷϥΠτχϯάωοτϫʔΫͷͰ#JUDPJO ͷ#MPDLDIBJOଆ͚ͩ
w ཧղ͢ΔʹτϥϯβΫγϣϯͱεΫϦϓτΛΔඞཁ͕͋ Δ w ํϖΠϝϯτνϟϯωϧͱ)5-$Λ͏
τϥϯβΫγϣϯͱʁ w τϥϯβΫγϣϯϒϩοΫΑΓখ͍͞୯Ґ w ൿີ伴Λ࣋ͬͯΔຊਓ͚͕ͩτϥϯβΫγϣϯΛ࡞Ͱ͖ Δ ൿີ伴Ͱॺ໊͢Δ w ͭҎ্ͷWJO
༻͢Δࣗͷࢿ࢈Ͱ͍ΘΏΔ6590 ͱͭ Ҏ্ͷWPVU ૹۚ ΛؚΉ w WJOʹϩοΫղআͷεΫϦϓτ͕ඞཁ w WPVUʹϩοΫͷεΫϦϓτ͕ඞཁ
WPVU value ૹ৴ֹۚ 1.14514 n ΠϯσοΫε 0 scriptP ubKey ड͚औͬͨຊਓ͔͠
͑ͳ͍Α͏ʹ͢Δ ϩοΫ͢ΔεΫϦϓτ { hex: "a9146cf527aa9b6103f…", reqSigs: 1, type: "scripthash", addresses: ["2N3BLefabX……"] }
WJO txid ड͚औͬͨ·ͩͬͯͳ͍ τϥϯβΫγϣϯ*% 582d82e81124a334918c462fafdea be5eac0891bf202f90aa3baad6597 a9c6f8 vout τϥϯβΫγϣϯͷWPVU ෳ͋ΔͷͰɺΠϯσοΫε
0 scriptS ig WPVUͰ͔͚ΒΕͨϩοΫΛ ղআ͢ΔεΫϦϓτ 1600144049bcb93f5808c4dd2b6f9 648c06397ea6e6e55
εΫϦϓτͱʁ w GPSUIͷΑ͏ͳελοΫϚγϯ w ϧʔϓແ͍ͷͰඇνϡʔϦϯάશɻ؆୯ͳJGจ͕ هड़Ͱ͖Δ w ࣗ༝ʹ৭ʑͳϩοΫΞϯϩοΫͷΈΛ࡞ΔͨΊ ͷͷ w
ΞϯϩοΫͰ͖ͳ͚ΕࣗѼͷίΠϯͰ͏ࣄ Ͱ͖ͳ͍ ٯͲ͏ͳΜͩΖʁ
ํϖΠϝϯτνϟϯωϧ
ࡶʹݴ͏ͱ w εΫϦϓτʹΑͬͯಛघͳϩοΫঢ়ଶͰϏο τίΠϯΛ͋ΔΞυϨεʹσϙδοτ͢Δ w #JUDPJOͷ֎ଆͰऔҾΛͯ͠ ҰඵؒʹԿઍສճ औҾͯ͠େৎ ɺঢ়گ͕֬ఆͨ͠Β#JUDPJO ʹөͤ͞Δ
w ཪΓ͕Ͱ͖ͳ͍Α͏ʹͳ͍ͬͯΔ
"MJDFͱ#PC͕ ํϖΠϝϯτνϟϯωϧ Λ։͘
0QFOJOH5YΛ࡞ w "MJDFͱ#PCʹΑΔϚϧνγάΞυϨεʹૹۚ σϙ δοτ ͢Δ0QFOJOH5YΛ࡞Δ ϒϩʔυΩϟετ͠ ͳ͍ͷͰɺ·ͩϒϩοΫʹࡌͤͳ͍ w
"MJDFͱ#PCํͷॺ໊͕͋Ε͜ͷτϥϯβΫγϣ ϯΞϯϩοΫ͞ΕͯɺσϙδοτΞυϨεʹૹۚ ͞ΕΔ ·ͩ͜ͷ࣌Ͱॺ໊͠ͳ͍ɻ࡞͚ͩ w ྫϚϧνγάʹ߹ܭ#5$Λσϙδοτ͢Δ
γʔΫϨοτͷ࡞ͱ ϋογϡͷަ w ԿΒ͔ͷϥϯμϜͳγʔΫϨοτΛ࡞ͯ͠ɺ ͦͷϋογϡΛ૬खʹ͢ w ϥΠτχϯάωοτϫʔΫͷ࣮ʹΑͬͯҧ ͏Β͍͠ʁ ࠷ۙͷͭͩͱପԁۂઢ҉߸Λ͋ Ε͜Ε׆༻ͨͭ͠ʹվྑ͞ΕͯΔΒ͍͠ʁ
$PNNJUNFOU5Y w ઌ΄Ͳͷ0QFOJOH5YΛWJOʹ࣋ͭ$PNNJUNFOU5YΛ࡞Δɻ#5$Λσϙδο τ͍ͯͨ͠߹ɺ"MJDFͱ#PC͕ͦΕͧΕԿ#5$ड͚औΔ͔Λઃఆ͢Δ ྫ "MJDF #PC w $PNNJUNFOU5YΛ࡞ͬͨਓͱड͚औΔਓͰΞϯϩοΫ͕݅ҟͳΔεΫϦ
ϓτΛॻ͘ w ྫ"MJDFͷ࡞Δ$PNNJUNFOU5Yͷ߹ɺ#PCͷTFDSFUͰΞϯϩοΫ͢Δ ͱଈ࠲ʹ"MJDF5#$Λड͚औΔ w Ұఆظ͕ؒܦա͢Δͱ#PCʹ͍ͭͯΞϯϩοΫ͞Ε#5$Λड͚औΕΔ w $PNNJUNFOU5Y"MJDF͚ͩ͡Όͳͯ͘#PCಉ͡Α͏ʹ࡞ͯ͠ૹΓ߹͏
ํࢧ͍νϟωϧ։࢝ w $PNNJUNFOU5Yʹ߹ҙ͢Εɺ0QFOJOH5Yʹํॺ໊͠ ͔ͯΒϒϩʔυΩϟετ͢ΔͱํϖΠϝϯτνϟϯ ωϧͱݺΕΔͷ͕։࢝͞ΕΔ w $PNNJUNFOU5YΛϒϩʔυΩϟετ͢Δͱɺ૬खࢦఆ ֹۚΛड͚औΕΔ "MJDF͕γʔΫϨοτΛॻ͍ͯϒϩʔ υΩϟετ͢Δͱ#PC͕#5$ड͚औΓɺ#PC͕ϒϩʔυ
Ωϟετ͢Δͱ"MJDF͕#5$ड͚औΔ w ॏཁͳͷ$PNNJUNFOU5Y·ͩ֬ఆͯ͠ͳ͍͜ͱ
$PNNJUNFOU5Yͷߋ৽ w ৽ͨͳγʔΫϨοτΛ࡞͠ϋογϡΛަ͢Δ w ࠷ॳͷ0QFOJOH5YΛʹ࣋ͭ৽ͨͳ$PNNJUNFOU5YΛ࡞ ͠ͳ͓͢͜ͱͰऔҾ݁ՌΛߋ৽͢Δɻ "MJDF #PC w
͜ͷ͋ͱɺ࠷ॳͷγʔΫϨοτΛ໌͔͢͜ͱͰɺͦͷ $PNNJUNFOU5YΛࣄ্࣮ແޮʹ͢Δ Ҏલͷ$PNNJUNFOU ΛϒϩʔυΩϟετ͠Α͏ͱ͢Δͱɺશֹ૬खʹ࣋ͬͯ ߦ͔ΕΔ ͷͰ࠷৽ͷ$PNNJUNFOU5Y͚ͩ༗ޮʹͳΔ
ํࢧ͍νϟωϧ·ͱΊ w ࣮ࡍʹ#JUDPJOωοτϫʔΫʹϒϩʔυΩϟε τ͞ΕΔͷɺ0QFOJOHͱ$PNNJUNFOU5Yͷ Ͱ߹ܭͭͷτϥϯβΫγϣϯ͚ͩͰࡁΉ ίετ w ֎ͷੈքͰऔҾͨ݁͠ՌΛ$PNNJUNFOU5Yͷ
ߋ৽Ͱදݱ͠ͳ͕Β࠷ऴ݁ՌΛ࣮ࡍʹϒϩʔ υΩϟετ͢Δ
)5-$
)5-$ தܧ͢ΔίϯτϥΫτ w "MJDFͱ#PC #PCͱ$BSPMͰͦΕͧΕνϟωϧ͕ ͋Δ߹ w "MJDF͕$BSPMʹ#PCܦ༝Ͱ#5$Λૹ৴͍ͨ͠ w Ͱɺ్தͰཪΒͳ͍ͨΊʹͲ͏͢Δ͔ʁ
w ·ͣड͚औΔ$BSPM͕)5-$༻ͷTFDSFUΛ࡞͠ ͯɺ"MJDFͱ#PCʹͦͷIBTIΛૹΔ
"MJDF#PCૹۚ5Y w ·ͣ"MJDF͕ಛघͳϩοΫΛ͔͚ͨ5YΛॺ໊͠ ͯ#PCʹૹΓ͚ͭΔ w $BSPMͷTFDSFUΛೖखग़དྷΕ#PC͕Ξϯϩο Ϋͯ͠#5$Λड͚औΔ͜ͱ͕Ͱ͖Δ w ͨͩ͠Ұఆظ͕ؒܦա͢Δͱ"MJDF͕औΓ͢
#PC$BSPMૹۚ5Y w #PCಉ͡Α͏ͳಛघ5YΛॺ໊ͯ͠$BSPMʹૹ Δ w $BSPMγʔΫϨοτΛ͞Β͢͜ͱͰΞϯϩο ΫͰ͖ΔͷͰɺΞϯϩοΫ͞ΕΕ"MJDF #PCͷ5YΛΞϯϩοΫͰ͖Δ͜ͱʹͳΔ w Ұఆظ͕ؒܦͭͱ#PC͕#5$ΛऔΓ͢
Έ߹ΘͤΔͱ ૹ͕ۚͰ͖͕͋Δ
$PNNJUNFOU5Y )5-$ w ྫ"MJDF #PC )5-$ʹׂ͢Δ w "MJDF͕γʔΫϨοτΛಘͯϒϩʔυΩϟετ͢Δͱɺ#PC #5$Λड͚औΔ ࣗͷͷ#5$ҰఆظؒޙͳͷͰ#PCʹ
ϒϩʔυΩϟετͯ͠Β͍͍ͨ w #PC͕γʔΫϨοτΛಘͯϒϩʔυΩϟετΛͨ͠߹ɺ"MJDF ͕#5$Λड͚औΓɺ)5-$ "MJDF͕ϒϩʔυΩϟετΛ͠ ͯͳ͚ΕҰఆ࣌ؒͷϩοΫ͕͋Δ͕ #PC͕ड͚औΔ͜ͱ͕ ֬ఆ͢Δ #PCͷ#5$͋ΔͷͰ"MJDFʹϒϩʔυΩϟετ͠ ͯΒ͍͍ͨ
͋ͱϧʔςΟϯάͱ͔ ΦϑνΣʔϯऔҾؤுΕ ϥΠτχϯάωοτϫʔΫʂ
ϥΠτχϯάωοτϫʔΫ w τϥϯβΫγϣϯΛ࡞ͯ͠ަͨ͠Γ͢Δ͚ͲϒϩʔυΩϟ ετΛ͠ͳ͍͜ͱͰࢫ͘ϘτϧωοΫΛճආͭͭ͠औҾঢ়ଶͷ Ξοϓσʔτ͕Ͱ͖ͯɺཪΓ͕ෆՄೳͳΈͱ͍͏ͷ͕໘ ന͍ w ͜ΕΒΛΈ߹ΘͤͯϧʔςΟϯά͢ΔͱɺͦΕͬΆ͍ωοτ ϫʔΫ͕Ͱ͖Δ w
࣮ࡍͷϥΠτχϯάωοτϫʔΫͷ࣮ΛಡΜͩΘ͚͡Όͳ͍ ͷͰɺৄࡉؒҧͬͯͨΓ͢Δ͔͠Εͳ͍ͷͰɺಥͬࠐΈͱ͔ ͓ئ͍͠·͢ʂ
None
ٕज़ಉਓࢽͷ ৽ץએձΓ·͢ w IUUQTUFDIEPVKJODPOOQBTTDPNFWFOU w ٕज़ॻయ ʹ͚ͯɺ৽ץΛએͰ͖Δձ Ͱɺ1FSJTDPQFʹΑΔ৴͢ΔͷͰΦϯϥΠϯͰ
ΧδϡΞϧʹࢹௌͰ͖·͢ 5XJUUFSͱ͔Ͱͦͷ· ·ݟΒΕΔ w ઈࢍืूதʂ