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

0から始めるAtomic Swap

305ddd690e5df5adf6c6bc0675ff2962?s=47 Ryo Fukuda
November 14, 2017

0から始めるAtomic Swap

305ddd690e5df5adf6c6bc0675ff2962?s=128

Ryo Fukuda

November 14, 2017
Tweet

Transcript

  1. ͔Β࢝ΊΔ"UPNJD4XBQ !ZV[VTIJPI

  2. None
  3. A t o m i c S w a p

    ͬ ͯ ͦ ΋ ͦ ΋ ͳ Μ ͳ ͷ ʁ A t o m i c S w a p ͬ ͯ ͳ ʹ Λ ࣮ ݱ Ͱ ͖ Δ ͷ ʁ A t o m i c S w a p ͬ ͯ Ͳ ͏ ͍ ͏ ࢓ ૊ Έ ͳ ͷ ʁ "UPNJD4XBQͷ֓ཁʹ͍ͭͯઆ໌͠·͢ "UPNJD4XBQʹΑͬͯͳʹ͕࣮ݱ͞ΕΔͷ͔Λઆ໌͠·͢ "UPNJD4XBQ͕ͲͷΑ͏ͳ࢓૊Έʹͳ͍ͬͯΔͷ͔Λઆ໌͠·͢
  4. ݸਓؒͰ௨՟Λަ׵͢Δ࣌ͷ໰୊Λղܾ͢Δ

  5. ! $ "MJDFͱ#PC͕ˇͱΛަ׵͍ͨ࣌͠ ۜߦ͕஥հͯ͠ΤεΫϩʔΛߦ͏

  6. ͳͥ஥հ͕ඞཁͳͷ͔ʁ ݸਓؒͰߦ͏ͱͲ͔͕ͬͪૹΒͳ͍Մೳੑ͕͋Δɻ ! → ← ❌ ྆ऀͱ΋ͣΔ͕Ͱ͖ͳ͍Α͏ʹ؂ࢹ͢Δඞཁ͕͋Δ

  7. ! $ ❌ Atomic Swap͸ୈࡾऀͷ஥հͳ͠ʹɺݸਓؒͰ τϥετϨεʹ௨՟Λަ׵͢Δࣄ͕Ͱ͖Δ࢓૊Έ

  8. ಉ͡νΣʔϯ্Ͱ΋ผνΣʔϯ্Ͱ΋ߦ͏͜ͱ͕Ͱ͖Δʂ

  9. A t o m i c S w a p

    ͬ ͯ ͦ ΋ ͦ ΋ ͳ Μ ͳ ͷ ʁ A t o m i c S w a p ͬ ͯ ͳ ʹ Λ ࣮ ݱ Ͱ ͖ Δ ͷ ʁ A t o m i c S w a p ͬ ͯ Ͳ ͏ ͍ ͏ ࢓ ૊ Έ ͳ ͷ ʁ "UPNJD4XBQͷ֓ཁʹ͍ͭͯઆ໌͠·͢ "UPNJD4XBQʹΑͬͯͳʹ͕࣮ݱ͞ΕΔͷ͔Λઆ໌͠·͢ "UPNJD4XBQ͕ͲͷΑ͏ͳ࢓૊Έʹͳ͍ͬͯΔͷ͔Λઆ໌͠·͢
  10. औҾॴ͕தԝूݖ؅ཧͰͳ͘ͳΔ͔΋ʂ

  11. தԝूݖ؅ཧͷऔҾॴͷϦεΫɾ໰୊ औҾॴͷ(PYϦεΫ ϓϥΠόγʔ໰୊ τϨʔυΛ͢Δʹ͸औҾॴʹҰ࣌తʹࣗ෼ͷࢿ࢈Λ༬͚Δඞཁ͕͋Γ औҾॴ͕(PY͠ɺࢿ࢈Λࣦ͏ϦεΫΛৗʹ͓͍ͬͯΔɻதࠃΈ͍ͨʹ ٸʹऔҾॴ͕ఀࢭ͞ΕΔՄೳੑ΋͋Δɻ औҾॴΛར༻͢Δ͜ͱͰɺͲΕ͘Β͍ͷֹΛτϨʔυ͍ͯ͠Δͷ͔͕ શͯه࿥ʹ࢒ͬͯ͠·͏ɻ

  12. ෼ࢄܕऔҾॴͷൃల ☝ࠓճ͸৮Ε·ͤΜ

  13. A t o m i c S w a p

    ͬ ͯ ͦ ΋ ͦ ΋ ͳ Μ ͳ ͷ ʁ A t o m i c S w a p ͬ ͯ ͳ ʹ Λ ࣮ ݱ Ͱ ͖ Δ ͷ ʁ A t o m i c S w a p ͬ ͯ Ͳ ͏ ͍ ͏ ࢓ ૊ Έ ͳ ͷ ʁ "UPNJD4XBQͷ֓ཁʹ͍ͭͯઆ໌͠·͢ "UPNJD4XBQʹΑͬͯͳʹ͕࣮ݱ͞ΕΔͷ͔Λઆ໌͠·͢ "UPNJD4XBQ͕ͲͷΑ͏ͳ࢓૊Έʹͳ͍ͬͯΔͷ͔Λઆ໌͠·͢
  14. )BTI-PDL:) 9

  15. )BTI-PDL:) 9 !Alice $Bob ϥϯμϜͳ஋9Λબ୒͠ɺ:Λऔಘ͢ΔͨΊʹ9Λ)BTIԽ͢Δɻ ͦͷ:Λ࢖ͬͯ:) Y ͷ৚݅Λ0VUQVUͷ-PDLJOH4DSJQUʹՃ͑Δɻ #PC͸"MJDF͕࡞੒ͨ͠5Yͷ0VUQVUΛ*OQVUͱͯ͠ར༻͢Δʹ͸ #PCͷॺ໊ͷଞʹ9ͷ஋Λ6OMPDLJOH4DSJQUʹؚΊΔඞཁ͕͋Δɻ

  16. "UPNJD4XBQͷखॱ ؆ུԽ7FS !Alice $Bob "MJDFͷ#5$ͱ#PCͷ-5$Λަ׵͢Δ ࡉ͔͍εςοϓ͸ল͍͍ͯ·͢ ᶃ)BTI-PDLʹར༻͢Δ9ΛબͿ ᶄ9Λ)BTIͯ͠:ΛಘΔ #JUDPJO#MPDLDIBJO -JUFDPJO#MPDLDIBJO

  17. !Alice $Bob ᶅ#PCͷॺ໊ͱ9͕ඞཁͳ5YΛ࡞Δ #PCͷॺ໊:)BTI Y !#5$ 5SBOTBDUJPO ᶆ5YΛϒϩʔυΩϟετ͢Δ "MJDFͷॺ໊:)BTI Y

    !-5$ 5SBOTBDUJPO ᶇ"MJDFͷॺ໊ͱ9͕ඞཁͳ5YΛ࡞Δ
  18. !Alice $Bob ᶈ5YΛϒϩʔυΩϟετ͢Δ ᶉ"MJDF͸9Λ஌͍ͬͯΔͷͰ5YΛ *OQVUͱͯࣗ͠෼ʹ#PCͷ-5$ΛૹΔ 5YΛ࢖͏ͨΊʹ͸9Λެ։͠ͳ͚Ε͹ͳΒͳ͍ ᶉͷ࣌ʹ9͕ެ։͞ΕΔ ᶊ9Λ஌Δ͜ͱ͕Ͱ͖ͨͷͰ5YΛ *OQVUͱͯࣗ͠෼ʹ"MJDFͷ#5$ΛૹΔ

  19. !Alice $Bob #PC΋#5$Λखʹ͍ΕΔ "MJDF͸-5$Λखʹ͍ΕΔ ަ׵੒ཱʂʂ

  20. ΋͠"MJDF͕9Λެ։͠ͳ͔ͬͨΒͲ͏ͳΔͷ? ͪΌΜͱ5YΛ࡞͔ͬͨͲ͏΍ͬͯ൑அ͢Δͷ?

  21. 5IF5JFS/PMBO"UPNJD$SPTTDIBJO5SBOTGFS1SPUPDPM ☝ผ్ϒϩάͰղઆ͠·͢ IUUQTHJUIVCDPN5JFS/PMBOCJQTCMPCCJQYCJQBUPNNFEJBXJLJ

  22. "UPNJD4XBQͱ͸ʜ Atomic Swap͸ୈࡾऀͷ஥հͳ͠ʹɺݸਓؒͰ τϥετϨεʹ௨՟Λަ׵͢Δࣄ͕Ͱ͖Δ ࢓૊ΈͰ औҾॴͳͲΛ෼ࢄܕʹ͢Δ͜ͱ͕ Ͱ͖Δ͔΋͠Εͳ͍ٕज़Ͱ͢

  23. ͋Γ͕ͱ͏͍͟͝·ͨ͠,