$30 off During Our Annual Pro Sale. View Details »

Mastering the Lightning Network 第1章を読む補足資料

Shu Kobuchi
February 25, 2022

Mastering the Lightning Network 第1章を読む補足資料

https://cryptocurrency.connpass.com/event/239005/
Mastering the Lightning Network 第1章の補足資料です

Shu Kobuchi

February 25, 2022
Tweet

More Decks by Shu Kobuchi

Other Decks in Technology

Transcript

  1. .BTUFSJOHUIF-JHIUOJOH/FUXPSL ΛಡΉୈষ ೥݄೔ ۚ !ϏοτίΠϯͱ͔ษڧձ ೔ຊ҉߸௨՟Ϣʔβձɹখᔹप 4IV,PCVDIJ

  2. ࣗݾ঺հ খᔹपɹ4IV,PCVDIJɹ!TIV@LPCTIVLPCVDIJ γεςϜ։ൃΛ͖ͯͨ͠தͰɺ 
 ೥࢓ࣄʹͯ#JUDPJO8FC8BMMFUϓϩτλΠϓͷ։ൃʹैࣄ Ծ૝௨՟औҾॴ޲͚΢ΥϨοτϕϯμʔϑϨηοπͰ։ൃɾӡ༻ ʙϏοτόϯΫͷΤϯδχΞ ೔ຊ҉߸௨՟Ϣʔβձ͸೥͔ΒࢀՃ͠ɺӡӦΛ຿ΊΔ झຯɿమಓɺञɺΧϥΦέ 


    ϏοτίΠϯܾࡁͰञΛҿΉ͜ͱ ࣸਅ͸-JHIUOJOH/FUXPSL࢈Έͷ਌ 
 5IBEEFVT%SZKB 5BEHF ͱ 
 ೥݄4DBMJOH#JUDPJO!౦ژʹͯ 2
  3. ॻ੶ ݱࡏɺӳޠݪஶͷΈ IUUQTHJUIVCDPNMOCPPLMOCPPLʹͯແྉͰಡΊΔ "NB[POʹͯ,JOEMF൛ ϖʔύʔόοΫ൛ߪೖՄೳ 3

  4. ϥΠηϯεʹ͍ͭͯ஫ҙʢ຋༁ͳͲʣ IUUQTHJUIVCDPNMOCPPLMOCPPLTPVSDFBOEMJDFOTF ΫϦΤΠςΟϒɾίϞϯζ$$#:/$/%ϥΠηϯε ݸਓར༻ʹݶΓιʔείʔυͷڞ༗Մೳ ঎ۀతʹ഑෍ෆՄೳ ݱࡏ͸ೋ࣍తஶ࡞෺΍Ӧར໨తͷஶ࡞෺͸ڐՄ͞Ε͍ͯͳ͍ ग़൛ࣾ0`3FJMMZ.FEJBͷڐՄͳ͠ʹ຋༁Λͯ͠͸͍͚ͳ͍ ຋༁ɺೋ࣍తஶ࡞෺΍Ӧར໨తͷ1%'΍)5.-ͳͲ഑෍ېࢭ ग़൛ޙͷ೥ޙ ೥݄

    ʹ$$#:4"ϥΠηϯεͰެ։ ϘϥϯςΟΞ຋༁ऀͷͨΊʹ5SBOTJGFYϓϩδΣΫτΛఏڙ 1%'΍ͦͷଞͷిࢠॻ੶൛ͷ࡞੒ͱڞ༗ΛڐՄ 4
  5. *OUSPEVDUJPOิ଍ࢿྉ

  6. جૅ஌ࣝ ෇࿥ IUUQTHJUIVCDPNMOCPPLMOCPPLCMPCEFWFMPQ BQQFOEJY@CJUDPJO@GVOEBNFOUBMT@SFWJFXBTDJJEPD .BTUFSJOH#JUDPJOOE&EJUJPO IUUQTHJUIVCDPNCJUDPJOCPPLCJUDPJOCPPL OE&EJUJPO͸4FHXJU΍1BZNFOU$IBOOFMͳͲ͕Ճච͞Ε͍ͯΔ ϚελϦϯάɾϏοτίΠϯʢTU&EJUJPOͷ࿨༁ʣ IUUQTCJUDPJOCPPLJOGPXQDPOUFOUUSBOTMBUJPOTKBCPPLQEG 6

  7. ϏοτίΠϯͷ11ωοτϫʔΫͰͷసૹ ࡞੒ͨ͠τϥϯβΫγϣϯΛϏοτίΠϯ11ωοτϫʔΫʹϒϩʔυΩϟε τ ఻೻ ͢Δ ϊʔυ͸59ͷܗࣜΛνΣοΫ͠ɺϏοτίΠϯͷܗࣜͱͯ͠ਖ਼͚͠Ε͹ɺ ྡͷϊʔυʹసૹ͍ͯ͘͠ શͯͷϊʔυ͕ಉ͡59Λ࣋ͭ 
 ʢશੈքͷϊʔυʹߦ͖౉Δʣ

    7 ΞϦε Ϙϒ 59 ఻೻ 59 59 59 సૹ సૹ 59 59 59 సૹ సૹ సૹ సૹ స ૹ
  8. ϥΠτχϯάωοτϫʔΫͰͷϧʔςΟϯά શϊʔυͰࢧ෷͍σʔλΛڞ༗ͤͣɺ్தܦ࿏ͷΈอ༗ 8 ΞϦε Ϙϒ

  9. ΞϦε͕Ϙϒʹ#5$ΛૹΔ Ҏલड͚औֹ͍ͬͯͨΛ߹ࢉͯ͠ɺ૬खʹૹΓɺ͓௼Γ͸ࣗ෼΁ 59தʹهࡌͷͳֹ͍ ͜͜Ͱ͸#5$ ͸ޙʹϚΠφʔ΁ τϥϯβΫγϣϯ5SBOTBDUJPO59 9 ΞϦε Ϙϒ 5SBOTBDUJPO

    59 */165 065165 ΞϦε νϟϯ ΞϦεˠϘϒ #5$ νϟϯˠΞϦε #5$ ΞϦεˠΞϦε ͓௼Γ  #5$ #5$ σΟφˠΞϦε #5$ #5$ σΟφ ܭ#5$ ܭ#5$ ϚΠφʔ ωοτϫʔΫख਺ྉ #5$ ˞59ʹهࡌ͸ͳ͍ ൿີ伴Λࠩ͠ࠐΜͰ ϩοΫղআɿిࢠॺ໊ ΞϦεͷ ൿີ伴 ΞϦεͷ ൿີ伴 ΞϦεͷ ެ։伴 Ϙϒͷ ެ։伴 ΞϦεͷ ެ։伴 ΞϦεͷ ެ։伴
  10. ΦϯνΣʔϯεέʔϦϯά ೥݄೔ʹ#JUDPJO͔Β#JUDPJO$BTI͕ϋʔυϑΥʔΫ #JUDPJO$BTI͸ϒϩοΫαΠζΛ.#͔Β.#ʹҾ্͖͛ ݱࡏ͸.# ϏοάϒϩοΫͱ͍͏ߟ͑ 10 #JUDPJO #JUDPJO $BTI

  11. ΦϑνΣʔϯεέʔϦϯά ϒϩοΫνΣʔϯ֎Ͱෳ਺ճͷऔҾͷ݁ՌͷΈΛॻ͘ τϥϯβΫγϣϯͷૹ෇ΛݮΒ͢ ෳ਺ͷΞϓϩʔν αΠυνΣʔϯ w %#Ͱ΋ࢴͰ΋Α͍ OE-BZFSʢ#JUDPJOͷ৔߹͸-JHIUOJOH/FUXPSLʣ 11 ΞϦε

    Ϙϒ #5$Λ σϙδοτ ΞϦε Ϙϒ #5$ ˠ#5$ ࠷ऴ݁ՌͰ ਫ਼ࢉ #5$
  12. ϋογϡؔ਺ Մม௕ͷೖྗ஋ʹର͠ɺݻఆ௕ͷग़ྗ஋Λฦ͢ ཚ਺Ͱ͸ͳ͍ͷͰɺಉ͡ೖྗ஋͔Β͸ৗʹಉ͡ग़ྗ஋ΛಘΔ ग़ྗ஋͔Βೖྗ஋Λਪଌ͢Δͷ͸΄΅ෆՄೳ IUUQTXXXNPWBCMFUZQFDPVLTDSJQUTTIBIUNM 
 IUUQTHPPHM1PHF# 12 ೖྗ͸Մม௕ PQFOTPVSDF

    ग़ྗ͸ݻఆ௕ PQFOTPVSDJ CFBCCGCEBDFF DDCFBCBCCDDFCGDG CBEBEFBGCEC DBFDBEGDGFFB 4)" ϋογϡؔ਺ 4)" ϋογϡؔ਺ Ұจࣈ ม͑Δ શ͘ҟͳΔ ஋ʹ
  13. -JHIUOJOHͷνϟϯωϧ γϯϓϧʹऀؒ γϯάϧϗοϓ ͚ͩͷϚΠΫϩϖΠϝϯτΛߟ͑Δ 13 ΞϦε Ϙϒ ΞϦεͷެ։伴 Ϙϒͷެ։伴 PGެ։伴

    ΦϯνΣʔϯ ᶃ'VOE5Y ࢿۚΛϩοΫ ΦϑνΣʔϯ ᶄ*OWPJDFൃߦ ᶅ1BZ ᶆ*OWPJDFൃߦ ࠷ॳͷϩοΫ࣌఺Ͱ͸ ΞϦε͕શֹ࢖͑Δ ᶇ1BZ ΦϑνΣʔϯ
  14. -JHIUOJOHͷνϟϯωϧ ΞϦεɾϘϒؒͷνϟϯωϧͷΩϟύγςΟ͸#5$ 14 ΞϦε Ϙϒ ΦϯνΣʔϯ ᶃ'VOE$IBOOFM ΦϑνΣʔϯ ᶄ*OWPJDFൃߦ ᶅ1BZ

    ᶆ*OWPJDFൃߦ ᶇ1BZ ΦϑνΣʔϯ #5$ ΞϦε Ϙϒ ᶃޙ   ᶅޙ   ᶇޙ   ᶈ࠷ऴ࢒ߴ #5$ #5$ ΦϯνΣʔϯ #5$ #5$ ᶈ$MPTF PGެ։伴