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

MCH+ Hackathon #1

MCH+ Hackathon #1

Ryo Manzoku

August 09, 2019
Tweet

More Decks by Ryo Manzoku

Other Decks in Programming

Transcript

  1. Hackathon #1 ٕज़৘ใ
    2019-08-10 MCH+ Hackathon #1
    double jump.tokyoגࣜձࣾ
    ϦʔυΤϯδχΞ ຬ଍ ྄

    View full-size slide

  2. • My Crypto HeroesΛ஌͍ͬͯΔਓʁ
    • ERC-721Λࣗ෼Ͱൃߦͨ͜͠ͱͷ͋Δਓʁ
    • ϚΠΫϦͷAPIΛ৮ͬͨ͜ͱͷ͋Δਓʁ
    • MCH+ͷAPIΛ৮ͬͨ͜ͱͷ͋Δਓʁ
    ࣭໰

    View full-size slide

  3. • ʮήʔϜʹ͔͚ͨ࣌ؒ΋͓ۚ΋৘೤΋ɺ͋ͳͨͷࢿ࢈ͱͳΔੈ
    քʯͷ֦େΛ໨ࢦͯ͠
    • NFT͕ήʔϜͱήʔϜΛඈͼӽ͑Δੈք؍ͷ࣮ݱʹΉ͚ͯ
    • MyCryptoHeroesͷϊ΢ϋ΢ΛϑϨʔϜϫʔΫͱͯ͠ఏڙ͢Δϒ
    ϩοΫνΣʔϯήʔϜ։ൃࢧԉϓϩάϥϜ
    MCH+ͱ͸

    View full-size slide

  4. • ϒϩοΫνΣʔϯήʔϜͷಛ௃ͱͯ͠ʮೋ࣍ྲྀ௨ࢢ৔ʯͱʮෳ
    ਺αʔϏεؒͰͷ൚༻ੑʯ͕ॏཁͰ͋Δ
    • ෳ਺༻్͕͋Δ͜ͱͰͦͷσδλϧΞηοτͷՁ஋͸͕͋Δ
    • ݱࡏ͸ʮೋ࣍ྲྀ௨ࢢ৔ʯͱͯ͠ͷ໘͕େ͖͍
    • ʮෳ਺αʔϏεؒͰͷ൚༻ੑʯ͕͋Δ͜ͱͰɺσδλϧΞηο
    τͷՁ஋΋૬৐ޮՌͰ্͕͍ͬͯ͘
    ͳͥMCH+ΛਐΊΔͷ͔

    View full-size slide

  5. ʮMCH+ʯ͕ఏڙ͢ΔࢧԉϓϩάϥϜ
    ։ൃࢧԉ
    ΤίγεςϜ
    ߏஙࢧԉ
    ϑΝΠφϯε
    ࢧԉ
    ਓࡐҭ੒ࢧԉ
    ϒϩοΫνΣʔϯήʔϜͷ։ൃϊ΢ϋ΢͕ͳͯ͘΋ɺ
    ୹ظؒͰຊ֨తͳϒϩοΫνΣʔϯήʔϜΛ
    ։ൃ͢Δ͜ͱ͕Ͱ͖ΔΑ͏ʹ

    View full-size slide

  6. • ϒϩοΫνΣʔϯʹΑΓσδλϧΞηοτͷʮॴ༗৘ใʯͱ
    ʮৡ౉ʯΛѻ͏͜ͱ͕Ͱ͖Δ
    • σδλϧΞηοτΛݸਓ͕ʮॴ༗ʯՄೳ
    • σδλϧΞηοτΛॴ༗ऀ͕ʮৡ౉ʯՄೳ
    • ʮॴ༗ʯͰ͖Δ͜ͱͰαʔϏεʹͱΒΘΕͣʮෳ਺αʔϏεؒ
    Ͱͷ൚༻ੑʯΛ࣋ͯΔ
    • ʮৡ౉ʯͰ͖Δ͜ͱͰʮೋ࣍ྲྀ௨ࢢ৔ʯ͕ੜ·ΕΔ
    ϒϩοΫνΣʔϯʹΑΔΤίϊϛʔ

    View full-size slide

  7. • ϒϩοΫνΣʔϯͰ͸աڈͷ৘ใͷվ͟Μ͸ࠔ೉ͰෆՄٯ
    • ݱ࣮ੈքʹ͓͚Δ࣌ؒͷྲྀΕͱಉ͡
    • ϒϩοΫνΣʔϯͰॴ༗৘ใ͕͋Δ͜ͱͰݸਓͷࣗ༝ʹѻ͑Δ
    • ݱ࣮ੈքʹ͓͚ΔϞϊͷॴ༗ͱಉ͡
    • αʔϏεఏڙऀʹΑΔ؅ཧ͕ࠔ೉ʹͳΔ
    • ϒϩοΫνΣʔϯʹΑͬͯΠϯλʔωοτ͸ݱ࣮ੈքʹ͍ۙͮͨ
    ϒϩοΫνΣʔϯ͸ ʰϦΞϧʱ

    View full-size slide

  8. • ήʔϜΞΠςϜΛϒϩοΫνΣʔϯʹΑͬͯʮॴ༗ʯ
    • ࣗ෼ͷ΋ͷͰ͋Δͱ͍͏طଘήʔϜʹͳ͍ମݧ
    • σδλϧΞηοτͷϢʔβʔؒৡ౉
    • Ϣʔβʔओ࠵ͷاըϓϨθϯτɺॳ৺ऀ΍༑ਓ΁ͷϓϨθϯτ
    • σδλϧΞηοτͷՁ஋
    • σδλϧΞηοτऔҾॴʹΑΔࣗ༝ͳऔҾ
    σδλϧΞηοτΤίϊϛʔ

    View full-size slide

  9. Non-Fungile Token

    View full-size slide

  10. • CryptoKittiesͷϦϦʔεΛൽ੾ΓʹσδλϧΞηοτʹ͍ͭͯ੝Γ
    ্͕ΓΛݟ͍ͤͯΔ
    • CryptoKittiesνʔϜʹΑͬͯNon-Fungible TokenʢNFTʣඇ୅ସੑ
    τʔΫϯͱ͍͏֓೦͕ੜΈग़͞Εͨ
    • NFTͷ࢓༷ͱͯ͠ERC-721͕ࡦఆ͞Εɺ࣮༻Խ͞Εͨ
    • NFTΞΠίϯ࡞ͬͨͷͰΈΜͳ࢖ͬͯͶʂ
    NFTͷొ৔

    View full-size slide

  11. ඇ୅ସੑͱ͸ʁ
    • ྔΛѻ͏τʔΫϯ → ୅ସτʔΫϯ
    • ௨՟ͳͲ1ͭ1ͭͷՁ஋ͷಉ͡΋ͷΛѻ͏
    • ʮ1ສԁࡳ͸Կຕ͋ͬͯ΋1ຕ1ຕಉ͡Ձ஋Λ࣋ͭʯ
    • ERC-20 / ERC-777 / ERC-1155
    ૉࡐ: https://www.photock.jp
    • ࣭Λѻ͏τʔΫϯ → ඇ୅ସτʔΫϯ (NFT)
    • 1ͭ1ͭͷՁ஋͕ҧ͏ϞϊΛڞ௨ʹѻ͏
    • ʮೣ͸ೣͰ΋ɺ͏ͪͷϛέͱ͓ྡͷλϚ͸ҧ͏ʯ
    • ERC-721 / ERC-1155

    View full-size slide

  12. • EthereumͰNFTΛ࣮ݱ͢Δݱ࣮తͳඪ४࢓༷
    • ʮॴ༗৘ใʯʮৡ౉ʯʮৡ౉ݖͷҠৡʯΛنఆ͍ͯ͠Δ
    • ඪ४࢓༷Ͱ͋ΔͨΊɺERC-721Λ࠾༻ͨ͠ήʔϜɺαʔϏεɺ
    औҾॴͰ௥Ճ։ൃແ͠Ͱར༻Ͱ͖ΔΑ͏ʹͳΔ
    • ERC-721Λ࣮૷ͨ͠ = NFT ͱͳΔΘ͚Ͱ͸ͳ͍͜ͱΛ஫ҙ
    • ͦͷՁ஋͸MetadataʹΑΓࢀরͰ͖Δ
    ERC-721ͱ͸

    View full-size slide

  13. ERC-721ʹΑΔΤίγεςϜ
    NFTΛදࣔ NFTऔҾॴ
    ERC-721Λ࣮૷
    NFTήʔϜ

    View full-size slide

  14. • BlockpunkࣾʹΑΔݶఆ൛ϏσΦτʔΫϯ
    • ΠϕϯτࢀՃऀͷͨΊͷه೦τʔΫϯ
    ଟ༷ͳ֦͕ΓΛ࣋ͭNFT/ERC-721

    View full-size slide

  15. • σδλϧΞηοτͷՁ஋Λࢀর͢Δػೳͱͯ͠ɺERC-721
    Metadata͕نఆ͞Ε͍ͯΔʢEIP-1047ʹͯఏҊʣ
    • Ethereum্ʹσδλϧΞηοτʹؔ͢Δϝλ৘ใΛࢀরͰ͖Δ
    URLΛॻ͖ࠐΈ͜ͱ͕Ͱ͖Δ
    • NFTऔҾॴ΍Wallet͸MetadataΛ௨ͯ͠σδλϧΞηοτͷ৘ใ
    Λࢀর͍ͯ͠Δ
    • σδλϧΞηοτͷՁ஋͸MetadataΛ௨ͯ͠ࢀর͞Ε͍ͯΔ
    ERC-721 Metadataͱ͸

    View full-size slide

  16. • Hero: ӡӦ΋͘͠͸ࢢ৔͔Βߪೖ͢ΔɻΫΤετ΍PvPʹར༻
    ͢Δ
    • Extension: ΫΤετΫϦΞ࣌΋͘͠͸ࢢ৔͔Βߪೖ͢ΔɻHero
    ʹ૷උͤ͞ΫΤετ΍PvPʹར༻͢Δ
    • LandSector: ӡӦ΋͘͠͸ࢢ৔͔Βߪೖ͢ΔήʔϜ಺ࠃՈͷ
    Φʔφʔɻ্Ґऀ͸KingͱͳΓϢʔβʔΛಋ͘
    MyCryptoHeroesͷNFT

    View full-size slide

  17. ERC721Λ࢖ͬͨHero / Extension / LandSectorͷEthereum্ͷ
    Asset
    Ethereum্Ͱͷॴ༗৘ใΛӡӦॴ༗ͷGatewayίϯτϥΫτʹ
    ༬͚Δ͜ͱͰɺCryptoWorldʢήʔϜ಺ʣͰར༻ՄೳʹͳΔ
    ʢLandSector͸ྫ֎ʣ
    MetadataΛؚΉήʔϜ಺ͷ৘ใ͸Ұ෦ެ։APIΛ௨ͯ͠ࢀরͰ͖
    Δ
    MyCryptoHeroesͰͷERC-721

    View full-size slide

  18. MyCryptoHeroesͷߏ੒ཁૉ
    &UIFSFVN
    6TFS
    Ϣʔβʔ͸ECDSAॺ໊༻ͷൿີ伴ͱ
    ରʹͳΔΞυϨεΛॴ༗
    ήʔϜࢿ࢈͸ɺEthereum্Λਖ਼ͱͯ͠؅ཧ
    ॴ༗৘ใ͸ɺϢʔβʔͷΞυϨεʹ͋Δ
    ॴ༗৘ใΛ֬ೝ
    ήʔϜࢿ࢈Λ༻͍ͯήʔϜͰ༡Ϳ
    ࢿ࢈ΛҭͯΔ
    MyCryotoHeroesͰ͸
    ɾήʔϜࢿ࢈Λ࢖ͬͨ༡ͼͷఏڙ
    ɾETHʹΑΓήʔϜ಺௨՟Λൢച
    ɾ৽͍͠ήʔϜࢿ࢈ͷ෇༩ɺൢച
    ɾήʔϜࢿ࢈΁ΞʔτΛ෇༩

    View full-size slide

  19. Ϣʔβʔ͸ήʔϜ಺ʹUserIDΛ͍࣋ͬͯΔ
    UserIDͱEthereumΞυϨεΛඥ͚ͮͯ؅ཧ͍ͯ͠Δ
    EthereumΞυϨεΛެ։͢ΔػೳʹΑΓɺ༗ޮͳϢʔβʔ͸
    EthereumΞυϨε͔ΒϢʔβʔ৘ใΛऔಘͰ͖Δ
    MyCryptoHeroes͓͞Β͍

    View full-size slide

  20. • Ethereum্ͰσδλϧΞηοτΛѻ͏৔߹ʹσϑΝΫτͱͳΓ
    ͭͭ͋ΔNFTͱ͍͏֓೦ͱ
    • ੈքʹ1ͭͰ͋ΔσδλϧΞηοτNFTͱϒϩοΫνΣʔϯʹΑ
    Δʮॴ༗ʯ͸૬ੑ͕Α͍
    • ମݧͨ͜͠ͱͷ͋Δਓʹ͔͠Θ͔Βͳ͍ʮॴ༗ײʯ
    • طଘͷήʔϜʹ͸໭Εͳ͍ڧ྽ͳମݧ
    • NFTͷՁ஋͸օͰߴΊ͍͖͍ͯͨ
    NFT͕࣠ͱͳΔੈք

    View full-size slide

  21. • ERC-721Ͱنఆ͞Ε͍ͯΔMetadataΛMCH+Ͱ֦ு͢Δ΋ͷ
    • MetadataΛ௨ͯ͠σδλϧΞηοτͷՁ஋Λ֬ೝ͍ͯ͠Δ
    • σδλϧΞηοτͷՁ஋͸ɺൃߦऀ͚ͩͰ͸ͳ͘୭Ͱ΋ొ࿥Ͱ
    ͖Δ΂͖
    • Ձ஋ɺϝλσʔλ͸ެ։伴҉߸ͷॺ໊ʹΑΓ୭͕ొ࿥͔ͨ͠Λ
    อূ
    • ΞηοτՁ஋ͷΦʔϓϯԽΛ࣮ݱ
    ֦ுϝλσʔλ

    View full-size slide

  22. • https://explorer.mch.plus
    • NFTΛ࢖ͬͨήʔϜ/αʔϏε։ൃऀͷͨΊͷNFT Explorer
    • Hackathonʹͯα൛ެ։ʂ
    • ֦ுϝλσʔλΛWebͰ؆୯ʹొ࿥ɺ֬ೝͰ͖Δ
    • ઈࢍ։ൃதɻػೳืूதʂ
    NFT Explorer

    View full-size slide

  23. • NFTʹ୭Ͱ΋Ձ஋Λొ࿥Ͱ͖Δ͜ͱʹΑΓ
    • ྫ͑͹ࣗ࡞ήʔϜͷύϥϝʔλΛMCHͷώʔϩʔʹ෇༩Ͱ͖Δ
    • NFTʹࢥ͍ग़ͷϝοηʔδΛॻ͖ࠐΊΔ
    • MCH+ͱͯ͠͸ɺϚΠΫϦΞηοτΛελʔλʔʹͯ͠ήʔϜ
    Λ࡞ͬͯ΋Β͍͍ͨ
    • কདྷతʹ͸ϚΠΫϦ΋MCH+ͷҰ෦ʹ
    ֦ுϝλσʔλʹΑΔૂ͍

    View full-size slide

  24. • MCH+API
    • https://docs.mch.plus/
    • MCH+Ͱఏڙ͢ΔAPIυΩϡϝϯτ
    • MCH API
    • https://my-crypto-heroes.gitbook.io/mch-api/
    • ϚΠΫϦ͸େ൒ͷσʔλΛΦϑνΣʔϯͰ؅ཧ͍ͯ͠ΔͨΊ
    ͦͷσʔλ΁ΞΫηε͢ΔͨΊͷAPIυΩϡϝϯτ
    ֤छAPIϦϯΫ

    View full-size slide

  25. • CryptoSpells Metadata
    • https://cryptospells.jp/metadata/card/9ܻID.json
    • CryptoSpellsͷMetadataͰ͢ʂ
    ֤छAPIϦϯΫ

    View full-size slide

  26. RE-BUILDING THE FUTURE OF GAMING
    WITH BLOCKCHAIN TECHNOLOGY !!

    View full-size slide