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

KyberNetwork-DEX-research2-at-Neutrino-2018-11-12.pdf

 KyberNetwork-DEX-research2-at-Neutrino-2018-11-12.pdf

Tomokazu Kozuma

November 12, 2018
Tweet

More Decks by Tomokazu Kozuma

Other Decks in Technology

Transcript

  1. Kyber Networkͷ࢓૊Έͱ
    Ginco࿈ܞ
    D E X r e s e a r c h # 2
    @ N e u t r i n o
    T O M O K A Z U K O Z U M A
    2 0 1 8 / 1 1 / 1 2 / M O N

    View full-size slide

  2. ࣗݾ঺հ
    ౦ژ޻ۀେֶେֶӃଔۀޙɺαΠόʔΤʔδΣϯτͰεϚϗήʔϜͷ
    αʔόɺΠϯϑϥશൠΛ୲౰ɻ
    Ծ૝௨՟ʹ͍ٕͭͯज़ϒϩάΛॻ͍ͯΔ͏ͪʹ຅಄͠ɺຊ৬ͱͯ͠஫
    ྗ͢ΔͨΊʹ(JODPʹೖࣾɻ(JODPͰ͸όοΫΤϯυΛ୲౰ɻ
    Tomokazu Kozuma
    @Tomokazu106
    ©2018 Ginco, Inc.
    IUUQTUPNPLB[VLP[VNBDPN

    View full-size slide

  3. ©2018 Ginco, Inc.

    View full-size slide

  4. ֓ཁ
    ©2018 Ginco, Inc.
    ,ZCFS/FUXPSL֓ཁ
    ,ZCFS/FUXPSLͱ(JODPͷ࿈ܞ
    ,ZCFS/FUXPSLͷ3FTFSWFͷ࢓૊Έ
    3FTFSWFͷߏங

    View full-size slide

  5. 1. KyberNetworkͷ֓ཁ

    View full-size slide

  6. ©2018 Ginco, Inc.
    ,ZCFS/FUXPSLͱ͸
    &5) &3$
    ,/$ 0.(

    &3$ &3$
    εϚʔτίϯτϥΫτͰτϥετϨεʹऔҾ͕Ͱ͖Δ

    View full-size slide

  7. ©2018 Ginco, Inc.

    View full-size slide

  8. ©2018 Ginco, Inc.
    ,ZCFS/FUXPSLͷ֓ཁ
    ෼ࢄܕͷྲྀಈੑωοτϫʔΫ
    Ϣʔβ͸ަ׵ʹख਺ྉ͕͍Βͳ͍
    ,ZCFS/FUXPSL͸3FTFSWFӡӦऀ͔Β,/$ͱ͠
    ͯख਺ྉΛ΋Β͏
    ຊ࣭͸%&9Ͱ͸ͳ͘5PLFOͷྲྀಈੑΛ্͛ΔͨΊ
    ͷ࢓૊ΈΛఏڙ͍ͯ͠Δ
    #F5PLFOɿϔοδϑΝϯυ
    &BTXBQɿ%&9ʢݸਓ։ൃऀʣ
    ,ZCFS/FUXPSLΛ࢖ͬͨαʔϏε

    View full-size slide

  9. ©2018 Ginco, Inc.

    View full-size slide

  10. ©2018 Ginco, Inc.
    ୅දతͳίϯτϥΫͷछྨ
    ɾ,ZCFS/FUXPSL
    ɹ,ZCFSͷೖΓޱɺϢʔβͷUY͸͜͜ʹૹ৴
    ɾ&YQFDUFE3BUF
    ɹ,ZCFS3FTFSWFͷத͔ΒҰ൪͍͍SBUFΛऔಘ
    ɾ,ZCFS3FTFSWF
    ɹϢʔβͷࢿ࢈Λ༬͚͍ͯΔίϯτϥΫτ
    ɾ$POWFSTJPO3BUF
    ɹަ׵ϨʔτΛઃఆ͢ΔίϯτϥΫτ

    View full-size slide

  11. 2. KyberNetworkͱGincoͷ࿈ܞ

    View full-size slide

  12. ΢ΥϨοτͷछྨ
    ©2018 Ginco, Inc.
    ɾαʔόܕ
    ࣗ෼Ͱൿີ伴Λ؅ཧͰ͖ͳ͍
    औҾॴɺ#MPDLDIBJOJOGPɺ.POBQQZ
    ɾΫϥΠΞϯτܕ
    ࣗ෼Ͱൿີ伴Λ؅ཧͰ͖Δ
    (JODPɺ#SFBEɺ&MFDUSVN

    View full-size slide

  13. Ϣʔβ໨ઢ
    ©2018 Ginco, Inc.
    ϝϦοτ σϝϦοτ
    αʔόܕ ؅ཧͷख͕ؒল͚Δ ϋοΧʔ͔ΒૂΘΕ΍͍͢
    ΫϥΠΞϯτܕ ࢿ࢈Λࣗ෼Ͱ؅ཧͰ͖Δ
    ։ൃݩʹѱҙ͕
    ͋Δͱ౪·ΕΔ

    View full-size slide

  14. ©2018 Ginco, Inc.
    IUUQTDSZQUPTMBUFDPNGBLFFPTXBMMFUGPVOETUFBMJOHVTFSGVOET

    View full-size slide

  15. ©2018 Ginco, Inc.
    ΢ΥϨοτʹඞཁͳػೳ
    ɾૹۚɺड͚औΓ
    ॺ໊ɺΞυϨεੜ੒
    ɾ࢒ߴ
    ΞυϨεผͷ࢒ߴ؅ཧ #BMBODF
    ɾऔҾཤྺ
    ཤྺͷऔಘͱ؅ཧ 5SBOTBDUJPOɺ"EESFTT

    View full-size slide

  16. ©2018 Ginco, Inc.
    औಘ͢Δσʔλ
    ɾ#BMBODF
    ΞυϨεʹඥ͍ͮͨ࢒ߴ
    ɾ5SBOTBDUJPO
    "MJDFˠ#PCʹ&5)ૹͬͨͱ͍͏σʔλ
    ɾ"EESFTT
    ΞυϨε͸ۜߦͷޱ࠲൪߸ͱಉ͡Α͏ͳσʔλ
    1FOEJOH5YɿϒϩοΫʹऔΓࠐ·ΕΔલ
    4VDDFTT5YɿϒϩοΫʹऔΓࠐ·Εͨ΋ͷ

    View full-size slide

  17. ©2018 Ginco, Inc.

    View full-size slide

  18. ©2018 Ginco, Inc.
    1FOEJOH5Yͷऔಘํ๏
    ,VCFSOFUFT
    $MPVE
    1VC4VC
    dXPSLFS
    8FCTPDLFU
    1FOEJOH5Y
    Ϣʔβ৘ใΛ෇Ճ

    View full-size slide

  19. ©2018 Ginco, Inc.
    4VDDFTT5Yͷऔಘํ๏
    ,VCFSOFUFT
    $MPVE
    1VC4VC
    dXPSLFS
    8FCTPDLFU
    #MPDL
    Ϣʔβ৘ใΛ෇Ճ
    5Y

    View full-size slide

  20. ©2018 Ginco, Inc.
    ,VCFSOFUFT
    $MPVE
    1VC4VC
    όοΫΤϯυશମߏ੒
    ॺ໊ࡁΈ5Y
    ཤྺऔಘ
    dXPSLFS

    View full-size slide

  21. ©2018 Ginco, Inc.
    ݄͔Β(JODPͰ%&9͕࢖͑ΔΑ͏ʹͳΓ·ͨ͠
    ೔ຊ͔Β͸࢖͑·ͤΜ͕ʂʂ

    View full-size slide

  22. ©2018 Ginco, Inc.
    ,ZCFS/FUXPSLͱ͸
    &5) &3$
    ,/$ 0.(

    &3$ &3$
    εϚʔτίϯτϥΫτͰτϥετϨεʹऔҾ͕Ͱ͖Δ

    View full-size slide

  23. ©2018 Ginco, Inc.
    ,ZCFS/FUXPSLͷॲཧॱ
    3BUFΛऔಘ
    &5),/$ɺ,/$0.(
    &YQFDUFE3BUFTPMͷHFU&YQFDUFE3BUF
    ͔Βऔಘ
    ަ׵Λ࣮ߦ
    ,ZCFS/FUXPSLTPMͷUSBEF
    Ͱަ׵

    View full-size slide

  24. ©2018 Ginco, Inc.
    3BUFͷऔಘ
    ,ZCFS/FUXPSL &YQFDUFE3BUF
    HFU&YQFDUFE3BUF


    3BUF,/$&5)


    HFU&YQFDUFE3BUF


    3BUF,/$&5)

    View full-size slide

  25. ©2018 Ginco, Inc.
    ަ׵&5)UP&3$
    &5)

    USBEF



    ,/$
    ,ZCFS/FUXPSL ,ZCFS3FTFSWF

    View full-size slide

  26. ©2018 Ginco, Inc.
    ަ׵&3$UP&3$
    ,/$$POUSBDU
    BQQSPWF

    ࢿۚͷૹۚݖݶΛ,ZCFS/FUXPSLʹҕৡ
    ,ZCFS/FUXPSL ,ZCFS3FTFSWF
    ,/$
    USBEF

    0.(
    ᶃ ᶄ

    View full-size slide

  27. ©2018 Ginco, Inc.
    *OUFSOBM5Yʹ͍ͭͯ
    $POUSBDU" $POUSBDU# $POUSBDU$
    ᶃ ᶄ ᶅ
    ɾᶄɺᶅ͕*OUFSOBM5Y

    View full-size slide

  28. 5SBOTBDUJPOͷσʔλߏ଄
    ©2018 Ginco, Inc.
    {
    "from": "0x10d0c14d27b05a791a9f582eb8e744d9f35bf78f",
    "gas": "0x397fc",
    "gasUsed": "0x30c71",
    "input": "",
    "output": "0x00000000000000000000000000000000000000000000000007fa76a26ecab6ed",
    "time": "484.180989ms",
    "to": "0x818e6fecd516ecc3849daf6845e3ec868087b755",
    "type": "CALL",
    "value": "0x38d7ea4c68000"
    "calls": [
    {
    "from": "0x818e6fecd516ecc3849daf6845e3ec868087b755",
    "gas": "0x37b29",
    "gasUsed": "0x309",
    "input":
    "0x70a0823100000000000000000000000010d0c14d27b05a791a9f582eb8e744d9f35bf78f",
    "output": "0x00000000000000000000000000000000000000000000000007ed93c4222e61c9",
    "to": "0xdd974d5c2e2928dea5f71b9825b8b646686bd200",
    "type": "CALL",
    "value": "0x0"
    },
    {
    "calls": [{...}, {…}, {...}, {...}, {...}, {...}, {...}],
    "from": "0x818e6fecd516ecc3849daf6845e3ec868087b755",
    "gas": "0x354af",
    "gasUsed": "0x2b6e3",
    "input": "",
    "output": "0x00000000000000000000000000000000000000000000000007fa76a26ecab6ed",
    "to": "0x91a502c678605fbce581eae053319747482276b9",
    "type": "CALL",
    "value": "0x38d7ea4c68000"
    }
    ]
    }

    View full-size slide

  29. ©2018 Ginco, Inc.
    *OUFSOBM5YΛऔಘ͢Δઃఆ
    ɾᶃͷτϥϯβΫγϣϯͷதʹ
    ɹᶄʙᶅ͕*OUFSOBM5Yͱͯ͠ه࿥͞ΕΔ
    ɾHFUIͷઃఆΛTZODGVMMʹ͢Δ
    ɾϒϩοΫҎ্લͷ*OUFSOBM5YΛऔಘ͢Δʹ͸
    ɹHFUIͷઃఆΛHDNPEFBSDIJWFʹ͢Δ
    ɾ*OUFSOBM5YΛऔಘ͢Δʹ͸5SBDFϝιουΛ࢖͏
    ɹUSBDF$IBJO
    ɺUSBDF5SBOTBDUJPO

    View full-size slide

  30. ©2018 Ginco, Inc.
    ,ZCFS/FUXPSL࿈ܞͰେมͩͬͨ͜ͱ
    ɾUSBDF$IBJO͔Βऔಘͨ͠*OUFSOBM5YͷऔΓࠐΈ
    ɾHFUIͷӡ༻

    View full-size slide

  31. 3. KyberNetworkͷReserveͷ࢓૊Έ

    View full-size slide

  32. ©2018 Ginco, Inc.
    3FTFSWFͱ͸
    3FTFSWFʹ&5) &3$Λ༬͚Δ͜ͱͰ

    ަ׵࣌ͷεϓϨουͰརӹΛಘΒΕΔ
    .BJOOFUͰ͸,ZCFSͷঝೝ͕ඞཁ
    ༬͚͍ͯΔࢿ࢈ͷަ׵Ϩʔτͱೖग़ۚ͸ࣗ༝ʹ
    ؅ཧͰ͖Δ
    ઃఆͷมߋ͸τϥϯβΫγϣϯΛൃߦͯ͠มߋ

    View full-size slide

  33. ©2018 Ginco, Inc.
    3BUFͷऔಘ
    ,ZCFS/FUXPSL &YQFDUFE3BUF
    HFU&YQFDUFE3BUF


    3BUF,/$&5)


    HFU&YQFDUFE3BUF


    3BUF,/$&5)

    HFU&YQFDUFE3BUF

    શ3FTFSWFʹ
    ໰͍߹Θ͍ͤͯΔ

    View full-size slide

  34. ©2018 Ginco, Inc.
    ίʔυͷҰ෦঺հ

    View full-size slide

  35. ©2018 Ginco, Inc.
    ަ׵Ϩʔτͷมߋ
    $POWFSTJPO3BUFTPMίϯτϥΫτʹରͯ͠
    τϥϯβΫγϣϯΛൃߦ͢Δ͜ͱͰมߋ
    ɾTFU#BTF3BUF

    ɹ5PLFOมߋ༻
    ɾTFU$PNQBDU%BUB

    ɹෳ਺5PLFOҰׅมߋ༻
    ɾTFU2UZ4UFQ'VODUJPO

    ɹަ׵ྔʹ߹Θͤͯ3BUFΛઃఆͰ͖Δ

    View full-size slide

  36. 4. Reserveͷߏங

    View full-size slide

  37. ©2018 Ginco, Inc.
    3FTFSWFʹඞཁͳ΋ͷ
    4PMJEJUZWʢ5SVGGMFWʣ
    /PEFKTW
    ɾඞਢίϯτϥΫτ
    ɾ४උ
    ,ZCFS3FTFSWF
    $POWFSTJPO3BUF

    View full-size slide

  38. ©2018 Ginco, Inc.
    ϦϙδτϦ
    IUUQTHJUIVCDPN,ZCFS/FUXPSLTNBSUDPOUSBDUT

    View full-size slide

  39. ©2018 Ginco, Inc.
    ࣮ࡍʹίϯτϥΫτΛσϓϩΠ͠·͢
    IUUQTEFWFMPQFSLZCFSOFUXPSLEPDT3FTFSWFT(VJEF
    ˞ৄࡉ͸Լه

    View full-size slide