Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Blockchain技術勉強会 #Lightning Networkの技術と最前線

Blockchain技術勉強会 #Lightning Networkの技術と最前線

東大ブロックチェーン開発団体BitPenguin主催
Blockchain技術勉強会@EastVenturesオフィス
2018/05/26

Takaya Imai

May 26, 2018
Tweet

More Decks by Takaya Imai

Other Decks in Technology

Transcript

  1. Lightning Networkͷٕज़ͱ࠷લઢ
    5BLBZB*NBJ
    $&0!'SPOUJFS1BSUOFST--$
    $PGPVOEFSBOE$50!6OJUFE#JUDPJOFST*OD
    ౦େϒϩοΫνΣʔϯ։ൃஂମ#JU1FOHVJO
    #MPDLDIBJOٕज़ษڧձ!&BTU7FOUVSFTΦϑΟε

    View full-size slide

  2. ࣗݾ঺հ
    ϑϩϯςΟΞύʔτφʔζ߹ಉձࣾ ୅දCEO
    United Bitcoiners Inc. ڞಉ૑ۀऀˍऔక໾CTO
    ϚελϦϯάϏοτίΠϯɺ຋༁ऀ୅ද
    ੈքͰॳΊͯͷɺ೔ຊޠʹΑΔϏοτίΠϯɾϒϩοΫνΣʔϯͷৄࡉ
    ٕज़ॻ
    શମͷׂ̕Λ຋༁
    2016/7/14ग़൛
    ిࢠॻ੶൛(kindle)΋
    ΦʔϓϯΤσΟγϣϯ൛
    https://www.bitcoinbook.info
    ౦ژେֶ٬һݚڀһ

    View full-size slide

  3. ࣗݾ঺հ
    όοΫάϥ΢ϯυ
    ৽ׁେֶେֶӃɹૉཻࢠཧ࿦෺ཧɹത࢜(ཧ)
    ΧΧΫίϜ
    ݕࡧΤϯδϯ։ൃɹݕࡧαʔόΫϥελߏஙӡ༻ɹେن໛σʔλॲཧɹػցֶशɹ
    ը૾ೝࣝ
    σʔλλϫʔגࣜձࣾɹ୅දऔక໾

    View full-size slide

  4. ϥΠτχϯάωοτϫʔΫʁ

    View full-size slide

  5. ϥΠτχϯάωοτϫʔΫʁ
    2015೥2݄ʹJoseph PoonͱThaddeus DryjaʹΑͬͯఏҊ͞
    ΕͨϏοτίΠϯ্ͷηΧϯυϨΠϠʔٕज़
    औҾख਺ྉΛ҆͘͢Δ͜ͱͱૹۚ଎౓Λ଎͘͢Δ͜ͱΛ໨
    తͱ͍ͯ͠Δ
    “νϟωϧ”ͱ͍͏̎ऀؒૹۚܦ࿏ʹΑΔP̎PωοτϫʔΫ
    Ͱ͋Γɺෳ਺ͷνϟωϧΛܦ༝ͯ͠ૹۚ͢Δ
    νϟωϧऔҾ૬खɺૹۚ஥հऀΛ৴༻͢Δඞཁ͕ͳ͍

    View full-size slide

  6. ϏοτίΠϯͷ
    εέʔϦϯά໰୊
    εέʔϦϯά໰୊
    ඵؒऔҾ਺͕̓݅ఔ౓
    1MB / 256byte /10෼/60ඵ = 6.8औҾຖඵ
    Segwit (Segregated Witness)༗ޮԽޙɺ̍ϒϩοΫʹ̍MBΑΓೖΔΑ͏ʹͳͬͨͨΊɺඵؒऔҾ਺
    ͸લΑΓվળ
    ϒϩοΫνΣʔϯαΠζͷ૿େ
    ̍̒̔GB (2018/5/26ݱࡏ)
    τϥϯβΫγϣϯख਺ྉͷߴಅ
    ૹ෇͞ΕΔτϥϯβΫγϣϯͷ਺͕૿͑ΔͱɺϚΠφʔ͸ΑΓख਺ྉͷߴ͍τϥϯβΫγϣϯ͔Β
    ϒϩοΫʹऔΓࠐ΋͏ͱ͢Δ
    ࠷ۙ͸̍ճͷૹۚ͋ͨΓ20ԁఔ౓(5satoshi/byte)
    2017೥12݄͸ϐʔΫͰ̍ճͷૹۚ͋ͨΓ4000ԁఔ౓ͷͱ͖΋͋ͬͨ

    View full-size slide

  7. 4000ԁ͘Β͍/tx

    View full-size slide

  8. ͍Ζ͍Ζͳղܾࡦ
    ΦϯνΣʔϯεέʔϦϯά
    औҾຖʹϒϩοΫνΣʔϯʹॻ͖ࠐΉ͜ͱΛલఏͱͯ͠ɺॲཧೳ
    ྗͷ૿ڧΛ͢ΔεέʔϦϯάํ๏
    ΦϑνΣʔϯεέʔϦϯά
    ϒϩοΫνΣʔϯʹॻ͖ࠐΉճ਺ΛݮΒ͢͜ͱͰɺॲཧೳྗͷ૿
    ڧΛ͢ΔεέʔϦϯάํ๏
    ϒϩοΫνΣʔϯͷར఺Λ׆༻ͭͭ͠ɺϒϩοΫνΣʔϯͱ͸૬
    ޓ࡞༻Λසൟʹ͠ͳ͍ॲཧ૚Λઃ͚ͯૹۚॲཧΛ࣮ߦ͢Δ

    View full-size slide

  9. ͍Ζ͍Ζͳղܾࡦ
    ΦϯνΣʔϯଆ
    ผͷϒϩοΫνΣʔϯʹॲཧΛԡ͠΍Δ
    αΠυνΣʔϯ/υϥΠϒνΣʔϯ
    τϥϯβΫγϣϯͷσʔλͷҰ෦Λผ࿮ʹԡ͠΍Δ
    SegWit (Segregated Witness)
    ϒϩοΫαΠζΛେ͖͘͢Δ
    ϏοάϒϩοΫ
    ϒϩοΫͷ఻ୡํ๏ͷվળɺGraphen
    τϥϯβΫγϣϯͷαΠζΛখ͘͢͞Δ
    γϡϊΞॺ໊(Schnorr Signature)
    ࢖Θͳ͍τϥϯβΫγϣϯεΫϦϓτΛল͘ɺ
    Graftroot

    ΦϑνΣʔϯଆ
    ϥΠτχϯάωοτϫʔΫ
    Ethereum(ϥΠσϯωοτϫʔΫɺϚΠΫϩϥΠσ
    ϯ)

    View full-size slide

  10. #MPDLDIBJO
    DPOOFDUFEUP
    #JUDPJO
    ;DBTI
    #MPDLDIBJO
    &UIFSFVN
    #MPDLDIBJO
    #JUDPJO
    #MPDLDIBJO
    ʜ
    -JHIUOJOH/FUXPSL
    "UPNJD
    4XBQ
    1BZQBM
    7JTB
    *OUFS#MPDLDIBJO
    #MPDLDIBJO
    DPOOFDUFEUP
    TPNF
    CMPDLDIBJOT
    3BJEFO/FUXPSL
    ΦϯνΣʔϯଆ
    ΦϑνΣʔϯଆ
    4JEFDIBJO
    ϒϩοΫνΣʔϯ֎
    ֤ٕज़ͷؔ࿈Πϝʔδ
    *OUFSMFEHFS

    View full-size slide

  11. Layer
    Blockchain
    Lightning Payment
    Channel
    Routing Algorithm
    Atomic Multi-Path
    Payments
    Lapps
    Physical Layer
    Link Layer
    Network Layer
    Transport Layer
    Application Layer
    Sphinx Presentation Layer
    Lightning Internet
    HTLC
    Session Layer

    View full-size slide

  12. ϥΠτχϯάωοτϫʔΫʁ
    ಛ௃Λ̍ͭ̍ͭઆ໌͠·͢ɻ

    View full-size slide

  13. ϥΠτχϯάωοτϫʔ
    Ϋʁ
    جຊతͳΞΠσΞ̍
    ຖճऔҾΛϒϩοΫνΣʔϯʹॻ͖ࠐΉͷͰ͸ͳ͘ɺ֤औҾͷ݁Ռͱͯ͠ਖ਼ຯͷ͓ۚΛ࠷ޙʹ
    ϒϩοΫνΣʔϯʹॻ͖ࠐΉ
    ֓೦ྫ(ݫີʹ͸ͪΐͬͱҧ͍·͕͢)
    1. A͞Μ͕B͞Μʹ1000ԁିͨ͠
    2. B͞Μ͕A͞Μʹ500ԁ෼͝൧୅Λग़ͨ͠
    3. ݁ہɺB͞Μ͸A͞Μʹ500ԁฦͨ͠
    ͜ΕΛͰ͖ΔΑ͏ʹ͢ΔೋऀʹΑΔ࠷খߏ੒୯ҐΛνϟωϧͱ͍͏ɻ
    νϟωϧ͸HTLC(Hashed Time Lock Contractɺϋογϡ෇੍͖࣌ؒݶίϯτϥΫτ)Λ࢖ͬͯ࡞
    Δ
    ࠷ऴঢ়ଶΛϒϩοΫνΣʔϯʹॻ͖ࠐΉ·Ͱ͸ɺ྆ऀͷ߹ҙͷ্Ͱঢ়ଶͷߋ৽Λ͢Δ

    View full-size slide

  14. 10000ԁ
    2000ԁ
    3500ԁ
    4000ԁ
    500ԁ

    View full-size slide

  15. ϥΠτχϯάωοτϫʔ
    Ϋʁ
    جຊతͳΞΠσΞ̍
    νϟωϧΛ࡞ͬͨยํͷਓ͕ѱਓͰɺࣗ෼ͷૹۚΛͳ͔ͬͨ͜ͱʹ͍͕ͨͨ͠Ίʹɺ࠷ऴ
    ঢ়ଶͰ͸ͳ͍΋ͷΛҰํతʹϒϩοΫνΣʔϯʹॻ͖ࠐΜͩΒͲ͏͢Δͷʁ
    ࠷ऴঢ়ଶͰ͸ͳ͍τϥϯβΫγϣϯʹ͸ɺѱਓଆʹର͢Δࢿۚ࢖༻੍࣌ؒݶ͕͔͔ͬ
    ͍ͯ·͢ɻ
    ରͯ͠ɺળਓଆ͸ѱਓଆ͔Β΋ΒͬͨγʔΫϨοτΩʔΛ࠷ऴঢ়ଶͰ͸ͳ͍τϥϯβ
    Ϋγϣϯʹରͯ͠࢖͏ͱɺνϟωϧ্ʹ͋ͬͨѱਓͷࢿۚΛ௚ͪʹશͯୣ͑ΔΑ͏ʹ
    ͳ͍ͬͯ·͢ɻ
    γʔΫϨοτΩʔ͸࠷ऴঢ়ଶʹ྆ऀ͕߹ҙ͢Δࡍʹɺ྆ऀ͕औΓަΘ̍͢ݸલͷ
    ΋ͷΛແޮԽ͢ΔͨΊͷΩʔ
    ͜ͷΑ͏ͳϖφϧςΟʔ͕͋ΔͨΊɺѱਓଆʹ͸૬खΛཪ੾ΔΠϯηϯςΟϒ͕ͳ͍
    ѱਓଆͷཪ੾Γʹର͙ͯ͢͠ʹϖφϧςΟʔΛߦ࢖Ͱ͖ΔΑ͏ʹɺτϥϯβΫγϣϯΛৗ
    ʹ؂ࢹ͓͔ͯ͠ͳ͚Ε͹͍͚ͳ͍

    View full-size slide

  16. ϥΠτχϯάωοτϫʔ
    Ϋʁ
    جຊతͳΞΠσΞ̎
    ϒϩοΫνΣʔϯ΁ͷෛՙΛԼ͛ɺख਺ྉΛ҆͘͢ΔͨΊɺνϟωϧΛෳ਺
    ͭͳ͍Ͱૹۚ͢Δ

    View full-size slide

  17. ϥΠτχϯάωοτϫʔ
    Ϋʁ
    ஥հऀ͕͓ۚΛ౪ΊΔͷͰ͸ʁ
    ஥հऀBob͕͓ۚΛಘΔͨΊʹ͸ϓϨΠϝʔδͱݺ͹ΕΔจࣈྻ͕ͳ͍ͱ͍͚
    ͳ͍
    Bob͸͓ۚΛ஥հ͢Δͱ͍͏໿ଋ͸͢Δ͕ɺ໿ଋͨ࣌͠఺Ͱ͸ϓϨΠϝʔδΛ
    ϋογϡԽͨ͠ϓϨΠϝʔδϋογϡ͔࣋ͬͯ͠ͳ͍ͨΊɺ͓ۚΛ౪Ίͳ͍
    ͜ΕΛ࣮ߦ͢ΔͨΊʹHTLCΛ࢖͏
    ૹۚऀ डۚऀ
    "MJDF #PC $BSPM

    View full-size slide

  18. ؆қతͳઆ໌
    ૹۚऀ डۚऀ
    "MJDF #PC $BSPM
    ᶃ৚݅෇͖ૹۚ໿ଋ ᶄ৚݅෇͖ૹۚ໿ଋ
    ᶅૹۚ
    ᶆૹۚ

    View full-size slide

  19. ϥΠτχϯάωοτϫʔ
    Ϋʁ
    ૹۚऀ डۚऀ
    "MJDF #PC $BSPM
    $BSPMϓϨΠϝʔδ 3
    $BSPMϓϨΠϝʔδϋογϡ )

    View full-size slide

  20. ϥΠτχϯάωοτϫʔ
    Ϋʁ
    ૹۚऀ डۚऀ
    "MJDF #PC $BSPM
    $BSPM
    ϓϨΠϝʔδϋογϡ )
    ᶃϓϨΠϝʔδϋογϡ)ૹ෇
    UYXJUI)
    OFFE3
    UPVTF UYXJUI)
    OFFE3
    UPVTF
    ᶄ59XJUI)ૹ෇
    UYXJUI)
    OFFE3
    UPVTF
    ᶅ59XJUI)ૹ෇
    ᶆϓϨΠϝʔδ3ૹ෇
    3
    ᶇϓϨΠϝʔδ3ૹ෇
    3
    $BSPM
    ϓϨΠϝʔδ 3
    ໿ଋ͸͢Δ͚Ͳ౪Ίͳ͍
    Carol͸
    R͕͋Δ͔Β
    ड͚औΕΔ

    View full-size slide

  21. ϥΠτχϯάωοτϫʔ
    Ϋʁ
    Carol͕ҙ஍ѱͰɺϓϨΠϝʔδRΛ͘Εͳ͔ͬͨΒBob͸Carolʹ͓ۚΛୣΘΕͯऴΘ
    Γʁ
    ڠྗతνϟωϧΫϩʔζʹ͢Δ৔߹ɺ૬ख͔Βࢧ෷͍தͷ΋ͷ(in-flight HTLC)ͷϓ
    ϨΠϝʔδRΛ΋ΒΘͳ͍ͱԠ͡ͳ͍Α͏ʹ͢Δ
    Carol͕ͣͬͱRΛ౉ͣ͞ҰํతʹνϟωϧΫϩʔζ͓ۚ͠Λ࢖ͬͨ৔߹ɺϓϨΠ
    ϝʔδR͸ύϒϦοΫϒϩοΫνΣʔϯ্Ͱެ։͞ΕΔͨΊɺͦΕΛ࢖ͬͯBob
    ͸Alice͔Β͓ۚΛಘΔɻͨͩ͠ɺ͕͔͔࣌ؒΔɻ
    Carol͕ͣͬͱRΛ౉ͣ͞ɺ͔͠΋͓ۚΛ࢖Θͳ͔ͬͨ৔߹ɺBob͸͋Β͔͡Ίઃ
    ఆ͓͍ͯͨ࣌ؒ͠Ҏ߱ʹͳΕ͹͓ۚΛऔΓ໭ͤΔ༏ઌݖ͕͋Δɻͨͩ͠ɺ͕࣌ؒ
    ͔͔Δɻ
    ૹۚऀ डۚऀ
    "MJDF #PC $BSPM

    View full-size slide

  22. ϥΠτχϯάωοτϫʔ
    Ϋʁ
    ϊʔυ
    ϊʔυ
    ϊʔυ*%
    ϊʔυ
    νϟωϧ
    ϊʔυ
    νϟωϧ
    νϟωϧ
    νϟωϧ
    ϊʔυ
    ϊʔυ*%
    ϊʔυ*%
    ϊʔυ*%
    ϊʔυ
    νϟωϧ
    ϊʔυ*%
    νϟωϧ
    ϊʔυ
    ϊʔυ*%
    ͷେ͖͞͸νϟωϧʹ৐͍ͬͯΔϏοτίΠϯͷྔ

    View full-size slide

  23. ϥΠτχϯάωοτϫʔΫ
    ϊʔυϓϩδΣΫτҰཡ
    $PNQBOZ
    0SHBOJ[BUJPO
    -JHIUOJOH
    -BCT
    .*5%$* #MPDLTUSFBN "$*/2 CDPJOPSH /BZVUB
    1SPEVDU
    /BNF
    MOE MJU MJHIUOJOHE FDMBJS QMBTNB QUBSNJHBO MOXBMMFU
    $PNNJUPST
    5IBEEFVT
    %SZKB
    +PTFQI
    1PPO
    0MBPMVXB
    0TVOUPLVO
    5IBEEFVT
    %SZKB
    3VTUZ3VTTFM
    $ISJTUJBO
    %FDLFS
    1JFSSF.BSJF
    1BEJPV
    'BCSJDF
    %SPVJO
    EQBE
    $ISJTUPQIFS
    +F⒎SFZ
    OBZVUBVFOP
    "OUPO
    ,VNBJHPSPET
    LJ
    -BOHVBHF (P (P $ 4DBMB /PEFKT $ 4DBMB
    pSTUDPNNJU
    +45


    NBTUFS
    MBTUFTU
    DPNNJU
    +45


    HJUIVC
    IUUQT
    HJUIVCDPN
    MJHIUOJOHOFU
    XPSLMOE
    IUUQT
    HJUIVCDPN
    NJUEDJMJU
    IUUQT
    HJUIVCDPN
    &MFNFOUT1SPK
    FDUMJHIUOJOH
    IUUQT
    HJUIVCDPN
    "$*/2FDMBJS
    IUUQT
    HJUIVCDPN
    CDPJOPSH
    QMBTNB
    IUUQT
    HJUIVCDPN
    OBZVUBDP
    QUBSNJHBO
    IUUQT
    HJUIVCDPN
    CUDPOUSBDU
    MOXBMMFU
    PUIFST BOESPJEBQQ

    View full-size slide

  24. ςετωοτ
    ࢲͷϊʔυ: btctest.lnetwork.tokyo (160.16.233.215)

    View full-size slide

  25. ϝΠϯωοτ
    ϦΞϧͳ͓͕ۚྲྀΕΔϥΠτχϯάωοτϫʔΫ
    2018೥3݄22೔

    View full-size slide

  26. ϝΠϯωοτ
    2018೥4݄24೔

    View full-size slide

  27. ࢲͷϊʔυ: btc.lnetwork.tokyo (153.126.136.98)
    pubkey: 028dcc199be86786818c8c32bffe9db8855c5fca98951eec99d1fa335d841605c2

    View full-size slide

  28. ٕज़ৄࡉ
    ٕज़ৄࡉʹ͍ͭͯ͸ͪ͜ΒΛࢀর͍ͩ͘͞(ӳޠ)
    2017೥6݄ʹΠεϥΤϧͷςϧΞϏϒͰࢲ͕࿩ͨ࣌͠
    ͷࢿྉ
    https://www.slideshare.net/takayaimai/lightning-
    network-in-tel-aviv-israel
    ࠷৽࣮૷͔Β͸গ͠ဃ཭͕͋Γ·͕͢ɺجຊతͳಈ࡞
    ݪཧ͸ಉ͡Ͱ͢ɻ

    View full-size slide

  29. Layer
    Blockchain
    Lightning Payment
    Channel
    Routing Algorithm
    Atomic Multi-Path
    Payments
    Lapps
    Physical Layer
    Link Layer
    Network Layer
    Transport Layer
    Application Layer
    Sphinx Presentation Layer
    Lightning Internet
    HTLC
    Session Layer

    View full-size slide

  30. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़΍ϓϩδΣΫτ
    Atomic Multi-Path Payments(ෆՄ෼ͳෳ਺ܦ࿏ࢧ෷͍ɺϥΠτχϯάωοτϫʔΫඇதԝूݖԽ/ଟֹૹۚ)
    b+l wallet (ड͕ۚͰ͖Δݱࡏ།ҰͷϥΠτχϯά΢ΥϨοτ)
    eltoo(νϟωϧߋ৽ͷγϯϓϧԽ)
    Splicing(νϟωϧσϙδοτͷಈతมߋ)
    Data Loss Protection(νϟωϧঢ়ଶͷอଘ)
    Olympus Server(νϟωϧঢ়ଶͷόοΫΞοϓ෼ࢄҕୗͱҕ೚ΠϯηϯςΟϒઃܭ)
    Outsourcing WatchTower (τϥϯβΫγϣϯ؂ࢹͷ֎෦Խ/ҕୗ)
    Atomic Swap(ϥΠτχϯάΛ࢖ͬͨϒϩοΫνΣʔϯؒෆՄ෼ίΠϯަ׵)
    Streaming Payments (ϥΠτχϯάૹۚͷ͞ΒͳΔޮ཰ԽɺૹۚϧʔτҰճҰճดͣ͡ʹϧʔτΛ࢖͍ճ͢)

    View full-size slide

  31. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̍

    View full-size slide

  32. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̍
    AMP: Atomic Multi-Path Payments(ෆՄ෼ͳෳ਺ܦ࿏ࢧ෷͍)
    ݱঢ়
    ૹۚऀ͔Βडۚऀ΁ͷૹۚܦ࿏͸̍ͭ
    ྫ͑͹ɺ100ԁΛૹΓ͍ͨ৔߹ɺૹۚऀ͔Βडۚऀ΁ͷܦ࿏ͷશͯͷνϟωϧ͕100ԁૹۚՄೳͰͳ͍ͱ
    ͍͚ͳ͍
    ໰୊఺
    ·ͱ·͓ͬͨۚΛૹΕͳ͍
    ̍ສԁͳͲ͋Δఔ౓·ͱ·͓ͬͨۚ͸ɺϥΠτχϯάωοτϫʔΫΛ࢖Θͳ͍΄͏͕͍͍ͱ͸ࢥ͍
    ·͢
    νϟωϧʹଟ͘ͷ͓ۚΛஔ͍͓ͯ͘ͷ͸ࢿ͕ۚ๛͔ͳਓ -> தԝूݖԽ
    1ͭͷૹۚܦ࿏ʹґଘͯ͠͠·͏
    ૹۚܦ࿏্ͷϊʔυ͕ૹۚதʹ൓Ԡ͠ͳ͘ͳΔͳͲ໰୊͕ى͖ͨ৔߹ɺૹ్͕ۚதͰࢭ·ͬͯ͠
    ·ͬͯಈ͔ͳ͘ͳΔͱ͍͏͜ͱ͸ͳ͍͕ɺૹۚ׬ྃ·Ͱ͕͔͔࣌ؒͬͯ͠·͏

    View full-size slide

  33. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̍
    AMP: Atomic Multi-Path Payments(ෆՄ෼ͳෳ਺ܦ࿏ࢧ෷͍)
    ղܾํ๏
    ̍ճͷૹۚΛɺෳ਺ͷૹۚܦ࿏ʹ෼ׂͯ͠ૹΔ
    ྑ͍఺
    ૹۚܦ࿏ͷબ୒ࢶ͕΋ͬͱ૿͑ɺϥΠχϯάωοτϫʔΫશମͷϦιʔεΛ͏·͘࢖͑Δ
    νϟωϧʹେ͖ͳ͓ۚΛஔ͍͓͔ͯͳͯ͘΋ɺϥΠτχϯάωοτϫʔΫʹߩݙͰ͖Δ
    ѱ͍఺
    ϥΠτχϯάωοτϫʔΫશମͰͷૹۚॲཧ਺͸૿͑ΔͨΊɺ෼ׂ਺Λେ͖͗͘͢͠ΔͱϥΠτ
    χϯάωοτϫʔΫ͕๞࿨ͯ͠͠·͏

    View full-size slide

  34. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̍
    AMP: Atomic Multi-Path Payments(ෆՄ෼ͳෳ਺ܦ࿏ࢧ෷͍)
    ਐల۩߹
    ΞτϛοΫੑͷఆٛ΍࠷దͳ࣮૷ํ๏ʹ͍ͭͯɺlightning-devϝʔϦϯάϦετͰٞ࿦த
    ·ͩϥΠτχϯάωοτϫʔΫRFCʹ͸ͳ͍ͬͯͳ͍
    ͜Ε͸ɺݸਓతʹScaling Bitcoin Workshop 2017 @ Stanford Univ. ʹఏҊ͍ͯͨ͠΋ͷ(࢒೦ͳ͕ΒτʔΫ
    ʹ͸࠾༻͞Ε·ͤΜͰ͕ͨ͠ɻɻ)
    https://github.com/takaya-imai/packetization_for_paymentchannel

    View full-size slide

  35. ஫໨͍ͯ͠Δ
    ϥΠτχϯάϓϩδΣΫτ̎
    εϚϗΞϓϦΛϥΠτχϯάωοτϫʔΫʹ
    डۚ΋Ͱ͖Δ lnwallet
    http://lightning-wallet.com

    View full-size slide

  36. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̎
    ໘ന͍఺
    τϥϯβΫγϣϯ؂ࢹͷ؆қԽ͕࣮૷ͯ͋͠Γɺ؂ࢹͷ֎෦ҕ೚Λ؇࿨Ͱ͖Δ
    ୯७ʹ͸ɺεϚϗΞϓϦ͸ϥΠτχϯάωοτϫʔΫʹࢀՃͰ͖·ͤΜ
    εϚϗͷి஑͕੾ΕΔɺΠϯλʔωοτʹ઀ଓͰ͖ͳ͘ͳΔͳͲͯ͠ɺτϥϯβΫγϣϯͷ؂ࢹ͕
    Ͱ͖ͳ͘ͳΔͨΊɻ
    ૹ͚ۚͩͰ͋Ε͹Ͱ͖·͕͢ɺϥΠτχϯάωοτϫʔΫͷҰ෦ͱͯ͠ૹۚܦ࿏ʹߩݙ͢Δʹ͸ૹ
    ۚͱडۚͷ྆ํ͕ඞཁ
    τϥϯβΫγϣϯ؂ࢹ͕ෆཁͱ͍͏Θ͚Ͱ͸ͳ͍Ͱ͢
    εϚϗ্ͷτϥϯβΫγϣϯσʔλ͕յΕͯ͠·ͬͨ౳ͳ͘ͳͬͯ͠·ͬͨͱ͖ͷͨΊʹɺόοΫΞοϓΛ
    औ͓ͬͯ͘͜ͱ͕Ͱ͖Δ
    όοΫΞοϓอଘͷ෼ࢄҕ೚Λड͚ΔଆʹͱͬͯͷΠϯηϯςΟϒ͕͢Ͱʹ࣮૷ͯ͋͠Δ
    ͜ΕΒΛߦ͏ͷ͕ɺOlympusαʔόͰ͢ɻ
    εϚϗΞϓϦϋϯζΦϯΛ΍͍ͬͯΔͷͰɺͦ͜Ͱਐల۩߹͸ެ։͍͖ͯ͠·͢ɻ

    View full-size slide

  37. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̏
    eltoo: ߋ৽ํ๏ͷ͞ΒͳΔγϯϓϧԽ

    View full-size slide

  38. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̐
    Splicing (Splice-in, Splice-out)
    νϟωϧσϙδοτͷಈతมߋ
    Splice-in: σϙδοτΛ૿΍͢
    Splice-out: σϙδοτΛݮΒ͢
    Funding
    TX
    Commitment
    TX
    ௨ৗ
    Funding
    TX
    Commitment
    TX2
    Splicing Funding
    TX2

    View full-size slide

  39. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̐
    Data Loss Protection
    νϟωϧঢ়ଶͷอଘ
    ҉߸௨՟ʹ͸෮ݩϑϨʔζ(mnemonic code)͕͋Γɺ΢ΥϨοτ͕յΕ
    ͯ͠·͏ɾεϚϗ͕յΕͯ͠·͏ͱ͍ͬͨ࣌ʹ΋෮ݩϑϨʔζΛ࢖͑͹
    ΢ΥϨοτΛݩʹ໭ͤΔ
    ͔͠͠ɺΦϑνΣʔϯٕज़Ͱ͋ΔϥΠτχϯάͰ͸औҾσʔλ͸ϒϩο
    ΫνΣʔϯʹ͸ͳ͍ͨΊ෮ݩϑϨʔζͰνϟωϧঢ়ଶͷ෮ݩ͸Ͱ͖ͳ͍
    ͜ͷͨΊɺ΢ΥϨοτͷ෮ݩϑϨʔζͰνϟωϧঢ়ଶ΋෮ݩͰ͖ΔΑ͏
    ͳ࢓૊Έ͕ඞཁ

    View full-size slide

  40. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̑
    Olympus Server
    νϟωϧঢ়ଶόοΫΞοϓͷ෼ࢄҕ೚ͱҕ೚ΠϯηϯςΟϒઃܭ
    http://lightning-wallet.com/what-does-olympus-server-do#what-does-olympus-server-do
    b+l walletͱ࿈ܞͯ͠Քಇ͢Δ࢓૊Έ
    νϟωϧΛ։͘ͱOlympus Serverʹνϟωϧঢ়ଶΛ҉߸Խͨ͠ঢ়ଶͰૹ෇͠ɺb+l wallet͸ϥΠτχϯάܦ༝Ͱ
    όοΫΞοϓख਺ྉΛ෷͏
    Olympus Server͕ཪ੾ΔՄೳੑ(νϟωϧঢ়ଶΛ໭ͯ͘͠Εͳ͍)͕͋ΔͨΊɺෳ਺ͷOlympus Serverʹνϟωϧঢ়
    ଶΛૹΔ෼ࢄҕୗͷํ͕ྑ͍Α͏ʹࢥ͏

    View full-size slide

  41. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̒
    Outsourcing WatchTower
    τϥϯβΫγϣϯ؂ࢹͷ֎෦Խ/ҕୗ
    νϟωϧΛҡ࣋͢Δʹ͋ͨͬͯɺνϟωϧ૬ख͕ෆਖ਼Λ͠ͳ͍Α͏ʹνϟωϧ͕উखʹด͡ΒΕͳ
    ͍͔Λ؂ࢹ͠ͳ͍ͱ͍͚ͳ͍
    εϚϗ্ͷϥΠτχϯάΞϓϦͷ৔߹ɺεϚϗ͕յΕΔ·ͨ͸ి஑͕੾ΕΔͱ͍ͬͨ৔߹ʹ͜ͷ
    τϥϯβΫγϣϯ؂ࢹ͕Ͱ͖ͳ͘ͳΔͨΊɺ؂ࢹͷ֎෦Խ/ҕୗ͕ඞཁʹͳΔ
    ಛʹɺडۚͷࡍʹ͜ͷτϥϯβΫγϣϯ؂ࢹ͕ॏཁɻݱࡏ΄ͱΜͲͷϥΠτχϯάΞϓϦͰૹۚͷ
    Έ͔͠Ͱ͖ͳ͍ͷ͸ɺૹۚʹτϥϯβΫγϣϯ؂ࢹ͕ෆཁͳͨΊɻ
    b+l walletͰ͸ݱࡏτϥϯβΫγϣϯ؂ࢹ͕ͳ͍ʹ΋ؔΘΒͣड͕ۚͰ͖Δ(·ͩςετωοτ)ɻෆ
    ਖ਼ଆʹର͢Δࢿۚ࢖༻੍࣌ؒݶΛࡾϲ݄ͱ͔ʹͯ͠ɺ௕͍ͱ͍͑Ͳ΋εϚϗ͕Ұϲ݄΋Πϯλʔ
    ωοτ͔Β੾Γ཭͞ΕΔ͜ͱ͸ͳ͍ΑͶʁͱ͍͏͍͏͜ͱΛར༻͠ɺͦΕͳΓʹ҆શʹड͕ۚͰ͖
    ΔΑ͏ʹ͍ͯ͠Δɻ

    View full-size slide

  42. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̓
    Atomic Swaps
    ϥΠτχϯάΛ࢖ͬͨϒϩοΫνΣʔϯؒෆՄ෼ίΠϯަ׵

    View full-size slide

  43. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̓
    Atomic Swaps
    ϥΠτχϯάΛ࢖ͬͨϒϩοΫνΣʔϯؒίΠϯަ׵
    ϊʔυA ϊʔυB ϊʔυA
    BTCνϟωϧ ETHνϟωϧ
    ϊʔυB͸ɺBTCͱETH྆ํΛ
    ࣋ͨͳ͍ͱ͍͚ͳ͍

    View full-size slide

  44. ஫໨͍ͯ͠Δ
    ϥΠτχϯάٕज़̔
    Streaming Payments
    ϥΠτχϯάૹۚͷ͞ΒͳΔޮ཰ԽɺૹۚϧʔτҰճҰճดͣ͡ʹ
    ϧʔτΛ࢖͍ճ͢
    ͜͜Λ஗Ԇͤ͞Δ͜ͱͰ
    ϓϨΠϝʔδϋογϡΛ࢖͍·Θ͠
    TX with HͷૹֹۚΛ
    Կ౓΋ॻ͖׵͑Δ

    View full-size slide

  45. Layer
    Blockchain
    Lightning Payment
    Channel
    Routing Algorithm
    Atomic Multi-Path
    Payments
    Lapps
    Physical Layer
    Link Layer
    Network Layer
    Transport Layer
    Application Layer
    Sphinx Presentation Layer
    Lightning Internet
    HTLC
    Session Layer

    View full-size slide

  46. ϥΠτχϯάʹڵຯ͕͋Δํ͸͝ࢀՃ͍ͩ͘͞ɻ

    View full-size slide

  47. ϏοτίΠϯɾϒϩοΫνΣʔϯεΫʔϧ΍ͬͯ·͢
    ͝ڵຯ͋Δํ͸ࢀՃ͍͚ͨͩΕ͹ͱࢥ͍·͢ɻ

    View full-size slide