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

ILPv4

どら
April 13, 2018

 ILPv4

Interledger Protocol の次期バージョンである ILPv4 について、これまでとの違いやメリットについて解説しました。

どら

April 13, 2018
Tweet

More Decks by どら

Other Decks in Technology

Transcript

  1. *OUFSMFEHFS1SPUPDPMͷࠓ*-1W֓؍ ࣗݾ঺հ! w χοΫωʔϜͲΒɹEPSB!EPSBHUKQ w ιϑτ΢ΣΞΤϯδχΞ w খ͞ͳϕϯνϟʔˠौ୩ͷ*5ܥاۀ w ҰݴͰݴ͏ͱԿͰ΋԰͞Μɻاըɺઃܭɺ࣮૷ɺςετɺϦϦʔεɺӡ༻

    w αʔόʔαΠυɺΫϥΠΞϯταΠυͳͲͷܦݧ͋Γ w ۀ຿ܥ΍εϚϗήʔϜͷαʔόʔαΠυʢ+BWB1FSM.Z42-౳ʣ w εϚϗήʔϜͷΫϥΠΞϯταΠυʢ6OJUZ$ʣ w *-1͸ڈ೥͔Βڵຯ͕͋ͬͯௐ΂ͨΓ͍ͯ͠Δ w 8$ͷ*OUFSMFEHFS$PNNVOJUZ(SPVQʹࢀՃ w ࠓճ͸͋͘·Ͱݸਓͱ͓ͯ͠࿩͠·͢ w ಛఆͷاۀ΍ίϛϡχςΟͱ͸ؔ܎͋Γ·ͤΜ  
  2. *OUFSMFEHFS1SPUPDPMͷࠓ*-1W֓؍ "͞Μ͕ίωΫλʹࢧ෷͏ɺίωΫλ͸#͞Μʹࢧ෷͏ ࣮ࡍ͸"͞Μ͸໘౗ͳࣄΛߟ͑ͳͯ͘΋#͞ΜʹՁ஋Λಧ͚ΒΕΔ ۩ମతʹ͸ʜ ྆ํʹޱ࠲ͷ͋ΔʮίωΫλʯ͕खॿ͚   *-1ͱ͸ҰମԿͳͷ͔ʁ Ledger 1

    Account A Ledger 2 Account B Connector BTC/ԁ Bitcoin Ϩδϟʔ<#5$> ۜߦϨδϟʔ<ԁ> Account C1 Account C1 1BTC ૬౰ 0.9BTC ૬౰ A ͞ΜˠίωΫλ ίωΫλˠ#͞Μ ͜͜Ͱ͸ख਺ྉ͕ͱͳ͍ͬͯ·͕͢ɺ ͋͘·ͰྫͰ͋Γ΋ͬͱখ͘͞ͳΔ૝ఆͰ͢
  3. *OUFSMFEHFS1SPUPDPMͷࠓ*-1W֓؍ ίωΫλ͸૬ޓʹ઀ଓ͞Ε͓ͯΓɺ΢Σϒͷ༷ʹͳ͍ͬͯΔ ௚઀઀ଓ͞Ε͍ͯͳ͍ਓʹ΋Ձ஋Λಧ͚Δࣄ͕Ͱ͖Δ ͞Βʹʜ ඞཁʹԠͯ͡ෳ਺ͷίωΫλͰ࿈ଓతʹߦ͍ Ձ஋Λϗοϓ͍ͤͯ͘͞   *-1ͱ͸ҰମԿͳͷ͔ʁ Ledger

    1 Account A Ledger 3 Account B Ledger 2 Account C2 Connector 1 BTC/XRP Connector 2 XRP/A-Bank A͞Μ g.crypto.btc.abc B ͞Μ g.jp.banks.a-bank.efg Bitcoin Ϩδϟʔ<#5$> ۜߦ̖Ϩδϟʔ<=> 931Ϩδϟʔ<931> Connector 3 Connector 4 Account C1 Account C1 Account C2
  4. *OUFSMFEHFS1SPUPDPMͷࠓ*-1W֓؍ *-1ͱ͸ҰମԿͳͷ͔ʁ   ୆ாʹΑΒͣՁ஋ΛΠϯλʔωοτ্Ͱ ૬खʹಧ͚Δࣄ͕Ͱ͖Δɻ ͜ΕΛՁ஋ͷΠϯλʔωοτɺ *OUFSOFUPG7BMVFͱݺΜͰ͍Δɻ VALUE VALUE

    VALUE ࠃࡍతͳਤΛग़͢ͱ਎ۙʹײ͡ΒΕͳ͍͔΋͠Εͳ͍͕ɺࠃ಺Ͱ͋ͬͯ΋૬ख ͷ࢖͍ͬͯΔ୆ா͕ҧ͏ͱ͍͏͜ͱ͸Α͋͘Δ͠ɺΠϯλʔωοτ্Ͱࠃ֎ͷ αʔϏεΛڗड͢Δͱ͍͏ࣄ͸ී௨ʹ͋Δɻ
  5. *OUFSMFEHFS1SPUPDPMͷࠓ*-1W֓؍ &TDSPXΛར༻͠ɺ1SFQBSFˠ&YFDVUFͷ ϑΣʔζίϛοτҰճͰશମͷՁ஋Λૹ৴ ͜Ε·Ͱͷ*-1Ͱ͸ɺ͜͏͍͏ϑϩʔͰͨ͠   *-1Wͱ͸ҰମԿͳͷ͔ʁ Connector (1) Prepare

    with condition (2) Execute with fulfillment Ledger 1 [Sender] [Escrow] [Connector] Ledger 2 [Connector] [Escrow] [Receiver] GVMpMMNFOU҉߸Խ͞Εͨࢧ෷͍಺༰ʢ΍΍؆ུԽ͍ͯ͠Δʣ DPOEJUJPOTIB GVMpMMNFOU  4FOEFS͸༧Ί3FDFJWFSͱͷؒͰऔΓܾΊͨDPOEJUJPOΛࢦఆͯ͠&TDSPXʹ༬͚Δɻ &TDSPX͸GVMpMMNFOU͕ͳ͍ͱࢿ࢈ͷҠಈ͕ى͜Βͳ͍ɻ ཁ͸GVMpMMNFOU͸ʮडऔਓ͕ड͚औΔͱ͍͏ҙࢥΛࣔͨ͠ʯͱ͍͏ূɻ GVMpMMNFOUΛୈࡾऀ͕ਪଌ͢Δͷ͸ࠔ೉ɺ$POOFDUPS͸ӕΛ෇͍ͯ4FOEFS͔Β౪Ήࣄ͸Ͱ͖ͳ͍ɻ
  6. *OUFSMFEHFS1SPUPDPMͷࠓ*-1W֓؍ ϑΣʔζίϛοτͰ͸͋Δ͕ɺ&TDSPX͸࢖Θͣɺࡉ੾Εʹߦ͏ جຊతʹ͸1BZNFOU$IBOOFMΛ࢖͏૝ఆͳͷͰ܁Γฦͯ͠΋଎౓తʹ͸໰୊ͳ͍ *-1WͰ͸ɺ͜͏͍͏ϑϩʔʹͳΓ·͢   *-1Wͱ͸ҰମԿͳͷ͔ʁ (1) - (2)

    ΛɺগֹͰɺඞཁͳճ਺͚ͩ܁Γฦ͢ 4FOEFS͸$POOFDUPSͱͷؒʹ1BZNFOU$IBOOFMΛ։͍͓ͯ͘ɻ 4FOEFS͸༧Ί3FDFJWFSͱͷؒͰऔΓܾΊͨ$POEJUJPOΛࢦఆͯ͠$POOFDUPSʹૹ͍ۚͨ͠ࢫΛ఻͑Δɻ $POOFDUPS͸ૹ͍ۚͨ͠Ձ஋Λ"ͷͨΊͷ#BOEXJEUI͔ΒҾ͍͓ͯ͘ɻ #BOEXJEUIͱ͸૬खʹڐͨ͠Ұఆͷ৴༻Ͱɺ͜ΕҎ্͸Ұ౓ʹૹ৴ͤ͞ͳ͍ɻ 3FDFJWFS͸'VMpMMNFOUΛൃߦ͠ɺ$POOFDUPS͸-FEHFSͷ1BZNFOU$IBOOFMΛΞοϓσʔτ͢Δɻ 4FOEFS͸'VMpMMNFOU͕֬ೝͰ͖ͨΒ-FEHFSͷ1BZNFOU$IBOOFMΛΞοϓσʔτ͢Δɻ 1BZNFOU$IBOOFMͷΞοϓσʔτ͕֬ೝͰ͖ͨΒ$POOFDUPS͸#BOEXJEUIΛݩʹ໭͢ɻ 1BZNFOU$IBOOFM͕ద੾ʹΞοϓσʔτ͞Εͳ͔ͬͨ৔߹ɺ$POOFDUPS͸Ҏ߱ͷૹۚΛڋ൱͢Δɻ Connector [Bandwidth for A] [Bandwidth for B] (1) Prepare with condition (2) Execute with fulfillment Ledger 1 [Sender] [Payment Channel] [Connector] Ledger 2 [Connector] [Payment Channel] [Receiver] A B