$30 off During Our Annual Pro Sale. View Details »

LINE Blockchain Developers テクノロジー紹介

LINE Blockchain Developers テクノロジー紹介

Digital Hack Day 2022でのテクノロジー提供説明資料です
https://hackday.yahoo.co.jp/

LINE Developers
PRO

August 20, 2022
Tweet

More Decks by LINE Developers

Other Decks in Technology

Transcript

  1. LINE Blockchain Developers Toshimasa Nasu 2022.08

  2. LINE Blockchain Developers Use Case Getting Started - LINE Login

    - Configure Your Service - Develop Your Service 01 02 03 04 05 06 Contents 2
  3. LINE Blockchain Developers 3

  4. Provide RESTFul API and Web UI for You LINE Blockchain

    Developers 4 ※https://blockchain.line.biz/#/
  5. 5 ※https://docs-blockchain.line.biz/ja/

  6. 6 ※https://docs-blockchain.line.biz/ja/api-guide/API-Reference

  7. 7 ※https://docs-blockchain.line.biz/ja/sdk/

  8. Designed for Everyone 8 LINE LINE Blockchain Mainnet (Cashew) Developer

    User
  9. Connect with LINE Developers LINE Developers 9 ※https://developers.line.biz/ja/ ※https://lineapiusecase.com/

  10. Use Case 10

  11. 11 ※https://lineapiusecase.com/ja/technicalcase/dena.html

  12. NFT ϜʔϏʔίϨΫγϣϯαʔϏε 12 ※https://playback9.jp/ ࢼ߹ͷ໊γʔϯΛNFTϜʔϏʔʹʂ • γϦΞϧφϯόʔ෇͖ • ͍࣋ͬͯΔNFTϜʔϏʔΛݟΔ •

    ऩӹͷҰ෦͕બखʹؐݩ • ചങ͕Մೳ
  13. ࢼ߹࿈ಈܕϒϩοΫνΣʔϯήʔϜ 13 ※https://pickfive.jp/ બखͷNFTΧʔυΛGET͠Α͏ʂ • ࢼ߹Ͱ׆༂͢ΔબखΛ༧ଌ • બखͷϦΞϧλΠϜ׆༂౓Ͱεί Ξ֫ಘ •

    είΞͷϥϯΩϯάʹԠͯ͡ϙΠ ϯτ֫ಘ • ϙΠϯτ͸ܠ඼ͱަ׵
  14. 14 ※https://lineapiusecase.com/ja/technicalcase/doublejumptokyo.html

  15. NFTσδλϧγʔϧ 15 ※https://shisansei.million-arthurs.com/ ੈքʹҰ͚ͭͩͷNFTσδλϧγʔϧ • ϛϦΦϯΞʔαʔγϦʔζͷΩϟϥ ΛGET • ޷͖ͳΩϟϥΫλʔΛίϨΫγϣϯ •

    Ωϟϥഎܠ͸͋ͳͨ࣍ୈ • ਺೔ޙΩϟϥͷҰ෦ͷ৭ΛมߋՄೳ • ചങ͕Մೳ
  16. 16 ※https://youtu.be/lXl-brlEuRw?t=34m39s ※https://hackday.yahoo.co.jp/history/digital2021/ ※https://hackday.yahoo.co.jp/history/2021/ ※https://youtu.be/w_Fb7wVX0bA?t=2068

  17. LINKγωϚʢνϡʔτϦΞϧαʔϏεʣ 17 ※https://docs-blockchain.line.biz/ja/service-tutorial/

  18. Getting Started 18

  19. Overview: LINE Blockchain Developers and Others 19 Your Services LINE

    LINE Blockchain Mainnet (Cashew) Developer User Web UI RESTFul API Callback LINE Login Web UI
  20. LINE Developers ʹొ࿥͕ඞཁͰ͢ Before Getting Started ࢝ΊΔલʹେࣄͳ͓஌Βͤ • LINEΞΧ΢ϯτ΋͘͠͸ϏδωεΞΧ΢ϯτ͕ඞཁͰ͢ •

    ϩάΠϯͯ͠։ൃऀొ࿥Λ͍ͯͩ͘͠͞ • https://developers.line.biz/ja/docs/line-developers-console/login-account/ 20 LINE Blockchain Developersͷར༻ਃ੥͕ඞཁͰ͢ • ਃ੥͔Β͓͓Αͦ24HҎ಺ʹঝೝ͠·͢ • ਃ੥ཧ༝ʢReason for applicationʣʹʮDigitalHackDayʯͱೖྗ͍ͯͩ͘͠͞ • ࢀߟɿhttps://note.com/line_blockchain/n/nfeb22967c6c2
  21. THANK YOU

  22. APPENDIX

  23. - LINE Login 23

  24. - LINE Login 24 Your Services LINE LINE Blockchain Mainnet

    (Cashew) Developer User Web UI RESTFul API Callback LINE Login Web UI
  25. - LINE Login 1. LINE DevelopersʹϩάΠϯ 2. ϓϩόΠμʔ࡞੒ • ձࣾొ࿥Έ͍ͨͳ΋ͷʢࠓճͰ͍͏ͱνʔϜొ࿥ʣ

    3. ϒϩοΫνΣʔϯαʔϏενϟωϧ࡞੒ • ͜ͷޙɺଓ͚ͯLINE Blockchain DevelopersͷWeb UIͰϒϩοΫνΣʔϯαʔϏεͷొ࿥ը໘͕Ͱ Δ͕Ұ୴தஅͯ͠΋໰୊ͳ͠ 4. ϒϩοΫνΣʔϯαʔϏεͷνϟωϧͷ಺༰Λ֬ೝ͢Δ 1. LINE LoginޙͷίʔϧόοΫURLͳͲΛઃఆ͢ΔʢϗϫΠτϦετొ࿥ʣ 2. LINE Loginʹඞཁͳ৘ใΛ֬ೝ͢Δ • νϟωϧID • νϟωϧγʔΫϨοτ * ৄ͍͠LINEϩάΠϯʹؔͯ͠͸ͪ͜Βɿ https://developers.line.biz/ja/docs/line-login/ 25
  26. 4. ϒϩοΫνΣʔϯαʔϏεͷνϟωϧͷ಺༰Λ֬ೝ͢Δ 26 νϟωϧجຊઃఆͰνϟωϧIDɾγʔΫϨοτɺLINEϩάΠϯઃఆͰίʔϧόοΫURLͳͲΛઃఆ͢Δ

  27. - Configure Your Services 27

  28. - Configure your services 28 Your Services LINE LINE Blockchain

    Mainnet (Cashew) Developer User Web UI RESTFul API Callback LINE Login Web UI
  29. - Configure your services 1. LINE Blockchain DevelopersʹϩάΠϯ͢Δ 2. αʔϏεొ࿥Λߦ͏

    • API Secret͸ඞͣϝϞΛͱΔ 3. αʔϏεͷͨΊͷ΢ΥϨοτΛ࡞੒͢Δ • اۀͷۜߦޱ࠲Έ͍ͨͳ΋ͷ • Wallet Secret͸ඞͣϝϞΛͱΔ 4. ࢿ࢈Λ؅ཧɺӡ༻͢Δ • Web UIͰ͸ͳ͘ɺAPIͰ؅ཧ΋ՄೳͰ͢ 5. ςετϢʔβʔΛ؅ཧɺӡ༻͢Δ 29
  30. 3. αʔϏεͷͨΊͷ΢ΥϨοτΛ࡞੒͢Δ 30 ΢ΥϨοτͱ͸ɺاۀͷۜߦޱ࠲Έ͍ͨͳ΋ͷͰ͢ɻ͜ͷαʔϏε΢ΥϨοτ͔ΒϢʔβʔͷ΢ΥϨο τʹαʔϏε͕ൃߦͨ͠ࢿ࢈ͷૹ෇΍डऔΛՄೳͱͳ͍ͬͯ·͢ɻ Your Services Developer User RESTFul

    API Callback Web UI
  31. 4. ࢿ࢈Λ؅ཧɺӡ༻͢Δ 31 ࢿ࢈ͱ͸αʔϏε͕ൃߦ͢Δɺج࣠௨՟ɺαʔϏετʔΫϯɺΞΠςϜτʔΫϯͰ͢ɻ • ج࣠௨՟ (Base Coin) • CashewνΣʔϯͰڞ௨Ͱ࢖͑Δ௨՟ʢԁͱ͔υϧͱ͔ͱಉ͡ʣ

    • TC: Test CoinͱݺͿ • ඞཁʹԠͯ͡Web UIͰൃߦͰ͖Δ • αʔϏετʔΫϯ (Service Token) • ϙΠϯτɺήʔϜίΠϯͳͲಠࣗͷσδλϧίΠϯΛൃߦͰ͖·͢ • ΞΠςϜτʔΫϯ (Item Token) • ׂҾνέοτɺΫʔϙϯɺؑ৆݊ɺήʔϜΞΠςϜɺ౔஍ͷݖརॻͳͲΛൃߦͰ͖·͢
  32. 5-1. ςετϢʔβʔΛ؅ཧɺӡ༻͢Δ 32 ࠓճɺఏڙ͍ͯ͠ΔCashewͱݺ͹ΕΔνΣʔϯ͸1νϟωϧʹ͖ͭ100໊·Ͱ͔͠࢖͑ͣɺςετϢʔ βʔొ࿥͕ඞཁͰ͢ɻࣗ෼ͷϢʔβʔID͸LINE DevelopersͷνϟωϧجຊઃఆͰ֬ೝͰ͖·͢ɻϢʔ βʔID͸νϟωϧID͝ͱʹҟͳΔͷͰɺҟͳΔνϟωϧIDͰऔಘͨ͠ϢʔβʔID͸࢖͑·ͤΜɻ

  33. 5-2. ςετϢʔβʔΛ؅ཧɺӡ༻͢Δ 33 αʔϏεར༻ऀͷϢʔβʔID͸ɺIDτʔΫϯΛݕূͨ͠ϨεϙϯεͰ֬ೝͰ͖·͢ɻ https://developers.line.biz/ja/reference/line-login/#verify-id-token

  34. - Configure your services 34 ͦͷଞ஫ҙࣄ߲ • APIΛ࢖ͬͨΞΫηεʹඞཁͳAPI Secret͸ඞͣอଘ͢Δ •

    API KeyͱAPI Secret͸ઈରʹެ։ͤͣɺ҆શʹ؅ཧ͍ͯͩ͘͠͞ • Keyͷ৘ใ͕ສ͕Ұɺ֎෦ʹ࿙Εͨ৔߹͸ɺ྆ํͷKeyΛ͙͢ʹϦηοτ͍ͯͩ͘͠͞ • LBD ConsoleΛ࢖ͬͨࢿ࢈ͷ؅ཧɺӡ༻ʹඞཁͳWallet Secret͸ඞͣอଘ͢Δ • Wallet Secret͸ϦηοτͰ͖·͢ • API/Wallet Secret͸Google AuthenticatorΛ࢖ͬͨOTPʢϫϯλΠϜύεϫʔυʣΛ࢖ͬͨϦηοτΛߦ͍·͢ɻ ສ͕Ұͷ৔߹͸ɺGoogle AuthenticatorΛεϚϗͳͲʹμ΢ϯϩʔυͯ͠४උͯ͠Ϧηοτ͍ͯͩ͘͠͞
  35. - Develop Your Services 35

  36. - Develop your services 36 Your Services LINE LINE Blockchain

    Mainnet (Cashew) Developer User Web UI RESTFul API Callback LINE Login Web UI
  37. - Develop your services 1. LINEϩάΠϯͷOAuthΛ࣮૷͢Δ • https://developers.line.biz/ja/reference/line-login/#oauth 2. RESTful

    APIsͷೝূΛ࣮૷͢Δ • https://docs-blockchain.line.biz/ja/api-guide/Authentication • ˎॺ໊(signature)Λ࡞Δͱ͖ʹඞཁͳϦΫΤετύϥϝʔλ͸keyͷঢॱͰιʔτ͢Δ 3. ࢿ࢈Λൃߦɺૹ෇ɺडऔͳͲͷػೳΛRESTful APIsΛݺͼग़࣮͠૷͢Δ • https://docs-blockchain.line.biz/ja/api-guide/ 4. ඞཁʹԠͯ͡ɺRESTful APIsͷίʔϧόοΫΛ࣮૷͢Δ • https://docs-blockchain.line.biz/ja/api-guide/Callback-Response 5. ςετϢʔβʔొ࿥ϑϩʔΛ༻ҙ͢Δ • https://docs-blockchain.line.biz/ja/how-to/add-test-users 37
  38. - Develop your services 38 ͦͷଞ஫ҙࣄ߲ • BITMAX WalletͷઃఆΛมߋ͢Δ •

    https://docs-blockchain.line.biz/ja/service-tutorial/Step4?id=step4-4 • αʔϏετʔΫϯ͸ΞΠίϯΛઃఆͰ͖Δ͕ɺΞΠςϜτʔΫϯͷΞΠίϯ͸αʔϏεϓϩόΠμʔ͕௚઀؅ཧ ͢Δඞཁ͕͋Δ • https://docs-blockchain.line.biz/ja/how-to/provide-item-token-images • ಉ͡Provider͚ͩͲɺChannel͕ҟͳΔMessage APIΛBlockchain ServiceͰ࢖͏৔߹ • Channel࿈ಈΛ͢Δ • ࢀߟɿ • https://developers.line.biz/ja/docs/line-login/link-a-bot/#displaying-the-option-to-add-your-line-official- account-as-a-friend
  39. END