iOSアプリからBlockchainを触るには

1a1d418bdf51cbf8fce1317f6c80a907?s=47 satoshi0212
November 22, 2016

 iOSアプリからBlockchainを触るには

1a1d418bdf51cbf8fce1317f6c80a907?s=128

satoshi0212

November 22, 2016
Tweet

Transcript

  1. iOSΞϓϦ͔Β BlockchainΛ৮Δʹ͸ ෰෦ ஐ SHMDevelopment ࠷ۙɺԾ૝௨՟؅ཧiOSΞϓϦΛ SwiftͰॻ͍ͨͷͰͦͷମݧΛڞ༗͠·͢

  2. αʔϏε͔Β BlockchainΛ৮Δʹ͸ ෰෦ ஐ SHMDevelopment ࠷ۙɺԾ૝௨՟؅ཧiOSΞϓϦΛ SwiftͰॻ͍ͨͷͰͦͷମݧΛڞ༗͠·͢

  3. ࣗݾ঺հ iOSΞϓϦΤϯδχΞ ΧϦϑΥϧχΞभཱେֶίϯϐϡʔλαΠΤϯεֶ෦ଔ

  4. ࣗݾ঺հ ϋοΧιϯड৆΍ొஃ: ɹiOSDC ొஃ ɹTechCrunch Tokyo 2015 Hackathon ༏ल৆ ɹMizuho.Hack

    ༏ल৆ ɹMicrosoft MPC Hackathon TMCN৆ ɹHack Cars Days 2015 χϑςΟ৆ ɹMUSICIANS HACKATHON 2015 ༏ल৆ ɹɹͳͲ
  5. ࣗݾ঺հ ன͸ձࣾһͱͯ͠ҩྍܥαʔϏεͷiPadΞϓϦΛॻ͖ ໷ͱि຤͸FintechܥελʔτΞοϓʹٕज़ڠྗ 365೔ϓϩάϥϛϯά͍ͯ͠·͢

  6. ࠓ೔࿩͢಺༰ ͸͡Ίʹ ɹ1. ج൫ٕज़ͷબ୒ ɹ2. EthereumػೳΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮૷ ࠷ޙʹ

  7. ࠓ೔࿩͢಺༰ ͸͡Ίʹ ɹ1. ج൫ٕज़ͷબ୒ ɹ2. EthereumػೳΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮૷ ࠷ޙʹ

  8. ͸͡Ίʹ BlockchainΛͳʹ΍Β͢ΔiOSΞϓϦΛ࡞Γ͍ͨ

  9. ͸͡Ίʹ BlockchainΛͳʹ΍Β͢ΔiOSΞϓϦΛ࡞Γ͍ͨ ͚ΕͲ Ͳ͏͢Δͷʁ

  10. ͸͡Ίʹ BlockchainΛͳʹ΍Β͢ΔiOSΞϓϦΛ࡞Γ͍ͨ ͚ΕͲ Ͳ͏͢Δͷʁ → ͬ͘͟ΓɺྲྀΕΛઆ໌͠·͢ʂ

  11. ࠓ೔࿩͢಺༰ ͸͡Ίʹ ɹ1. ج൫ٕज़ͷબ୒ ɹ2. Ethereum ΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮૷ ࠷ޙʹ

  12. ج൫ٕज़ͷબ୒

  13. 1 Bitcoin Core 2 Ethereum 3 Hyperledger Fabric 4 Corda

    5 Chain Open Standard 1 6 mijin 7 Orb 1 8 Eris ج൫ٕज़ͷબ୒
  14. 1 Bitcoin Core 2 Ethereum SmartContractɺ৘ใ๛෋ 3 Hyperledger Fabric 4

    Corda 5 Chain Open Standard 1 6 mijin 7 Orb 1 8 Eris ج൫ٕज़ͷબ୒
  15. ࠓ೔࿩͢಺༰ ͸͡Ίʹ ɹ1. ج൫ٕज़ͷબ୒ ɹ2. EthereumػೳΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮૷ ࠷ޙʹ

  16. EthereumͰͷ࣮૷બ୒ࢶ

  17. 1 (OSS)ϥΠϒϥϦ࢖༻ 2 ௚઀ݺͼग़͠
 (JSON RPC) 3 APIԽ EthereumͰͷ࣮૷બ୒ࢶ

  18. 1 (OSS)ϥΠϒϥϦ࢖༻ 2 ௚઀ݺͼग़͠
 (JSON RPC) 3 APIԽ ɾαʔϏε༻DBͱͷ࿈ܞ͕Մೳ ɾ୯ൃͰୟ͍ͯ֬ೝͰ͖Δ


    ɾΞϓϦ͔Βͷݟ͑ํ͕໌֬ EthereumͰͷ࣮૷બ୒ࢶ
  19. EthereumػೳΛAPIԽ UbuntuͰEthereumΫϥΠΞϯτΛಈ࡞ JSON-RPCͰݺͼग़ͤΔͷͰ Node.jsͰϥοϓ͠·ͨ͠ → ࠓճ͸ྲྀΕͷղઆͳͷͰৄࡉ͸ผͷػձʹɻ

  20. ࠓ೔࿩͢಺༰ ͸͡Ίʹ ɹ1. ج൫ٕज़ͷબ୒ ɹ2. EthereumػೳΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮૷ ࠷ޙʹ

  21. SwiftͰΞϓϦ࣮૷

  22. SwiftͰΞϓϦ࣮૷ APIԽͨ͠Βɺ͋ͱ͸ී௨ʹݺͼग़͢ʂ ɹɾSwift 2.2 ɹɾAFNetworking(← Alamofireਪ঑) ɹɾαʔϏε༻σʔλετΞ: ParseDB

  23. SwiftͰΞϓϦ࣮૷ APIԽͨ͠Βɺ͋ͱ͸ී௨ʹݺͼग़͢ʂ͚͕ͩͩ… ɹɾSwift 2.2 ɹɾAFNetworking(← Alamofireਪ঑) ɹɾαʔϏε༻σʔλετΞ: ParseDB

  24. ࣮૷͢ΔࡍʹؾΛ෇͚͍ͨ͜ͱ

  25. ࣮૷͢ΔࡍʹؾΛ෇͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔

  26. ࣮૷͢ΔࡍʹؾΛ෇͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ࣋ͭ΂͖

  27. ࣮૷͢ΔࡍʹؾΛ෇͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ࣋ͭ΂͖ 2. Blockchain্ͷ಺༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ

  28. ࣮૷͢ΔࡍʹؾΛ෇͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ࣋ͭ΂͖ 2. Blockchain্ͷ಺༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ: Ծૹۚ

  29. ࣮૷͢ΔࡍʹؾΛ෇͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ࣋ͭ΂͖ 2. Blockchain্ͷ಺༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ: Ծૹۚ 3. τϥϯβΫγϣϯ೉͍͠:

  30. ࣮૷͢ΔࡍʹؾΛ෇͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ࣋ͭ΂͖ 2. Blockchain্ͷ಺༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ: Ծૹۚ 3. τϥϯβΫγϣϯ೉͍͠: 2૬ίϛοτ

  31. ࣮૷͢ΔࡍʹؾΛ෇͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ࣋ͭ΂͖ 2. Blockchain্ͷ಺༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ: Ծૹۚ 3. τϥϯβΫγϣϯ೉͍͠: 2૬ίϛοτ

    4. Blockchainݻ༗ͷ৘ใͷѻ͍Ͳ͏͠Α͏:
  32. ࣮૷͢ΔࡍʹؾΛ෇͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ࣋ͭ΂͖ 2. Blockchain্ͷ಺༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ: Ծૹۚ 3. τϥϯβΫγϣϯ೉͍͠: 2૬ίϛοτ

    4. Blockchainݻ༗ͷ৘ใͷѻ͍Ͳ͏͠Α͏: ɹɹABIɺEthereum Addressɺύεϫʔυͷอଘํ๏
  33. ࠓ೔࿩͢಺༰ ͸͡Ίʹ ɹ1. ج൫ٕज़ͷબ୒ ɹ2. EthereumػೳΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮૷ ࠷ޙʹ

  34. ࠷ޙʹ ɾ·ͩ·ͩBlockchainΛ࢖ͬͯಈ͘ΞϓϦ͸গͳ͍ ɾ2017೥͸BlockchainΛར༻࣮ͨ͠Ϗδωε͕ ɹଟ਺ग़ͯ͘Δ͸ͣʂ ɾΩϨοΩϨͷαʔϏε&ϏδωεΛ ɹ࡞͍͖ͬͯ·͠ΐ͏ʂ