Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
iOSアプリからBlockchainを触るには
Search
satoshi0212
November 22, 2016
Programming
0
2.3k
iOSアプリからBlockchainを触るには
satoshi0212
November 22, 2016
Tweet
Share
More Decks by satoshi0212
See All by satoshi0212
macOSで自分のカメラを作ってみよう - Core Media IO Extensions
satoshi0212
3
1.1k
NDIとARKitを連動させた新しい映像表現
satoshi0212
3
1.1k
100日間AR表現を実装して見つけた面白い実装を全力解説
satoshi0212
5
1.9k
Working on mobile AR implementation, what I've implemented and beyond
satoshi0212
0
450
仮想カメラで切り開く拡張現実の世界
satoshi0212
0
540
macOS仮想カメラ「テロップカム」 実装方法とその先
satoshi0212
5
3.5k
ARで悪の組織の会議を実現する
satoshi0212
0
420
クロマキー合成を使い透過動画をAR空間に表示する
satoshi0212
3
9.2k
ARKit Maniacs
satoshi0212
1
3.5k
Other Decks in Programming
See All in Programming
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
610
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
120
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.2k
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
250
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
900
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
110
OnlineTestConf: Test Automation Friend or Foe
maaretp
0
110
CSC509 Lecture 13
javiergs
PRO
0
110
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
10
1.3k
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
A better future with KSS
kneath
238
17k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Being A Developer After 40
akosma
87
590k
YesSQL, Process and Tooling at Scale
rocio
169
14k
A Tale of Four Properties
chriscoyier
156
23k
Statistics for Hackers
jakevdp
796
220k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Gamification - CAS2011
davidbonilla
80
5k
Typedesign – Prime Four
hannesfritz
40
2.4k
Transcript
iOSΞϓϦ͔Β BlockchainΛ৮Δʹ ෦ ஐ SHMDevelopment ࠷ۙɺԾ௨՟ཧiOSΞϓϦΛ SwiftͰॻ͍ͨͷͰͦͷମݧΛڞ༗͠·͢
αʔϏε͔Β BlockchainΛ৮Δʹ ෦ ஐ SHMDevelopment ࠷ۙɺԾ௨՟ཧiOSΞϓϦΛ SwiftͰॻ͍ͨͷͰͦͷମݧΛڞ༗͠·͢
ࣗݾհ iOSΞϓϦΤϯδχΞ ΧϦϑΥϧχΞभཱେֶίϯϐϡʔλαΠΤϯεֶ෦ଔ
ࣗݾհ ϋοΧιϯडొஃ: ɹiOSDC ొஃ ɹTechCrunch Tokyo 2015 Hackathon ༏ल ɹMizuho.Hack
༏ल ɹMicrosoft MPC Hackathon TMCN ɹHack Cars Days 2015 χϑςΟ ɹMUSICIANS HACKATHON 2015 ༏ल ɹɹͳͲ
ࣗݾհ னձࣾһͱͯ͠ҩྍܥαʔϏεͷiPadΞϓϦΛॻ͖ ͱिFintechܥελʔτΞοϓʹٕज़ڠྗ 365ϓϩάϥϛϯά͍ͯ͠·͢
ࠓ͢༰ ͡Ίʹ ɹ1. ج൫ٕज़ͷબ ɹ2. EthereumػೳΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮ ࠷ޙʹ
ࠓ͢༰ ͡Ίʹ ɹ1. ج൫ٕज़ͷબ ɹ2. EthereumػೳΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮ ࠷ޙʹ
͡Ίʹ BlockchainΛͳʹΒ͢ΔiOSΞϓϦΛ࡞Γ͍ͨ
͡Ίʹ BlockchainΛͳʹΒ͢ΔiOSΞϓϦΛ࡞Γ͍ͨ ͚ΕͲ Ͳ͏͢Δͷʁ
͡Ίʹ BlockchainΛͳʹΒ͢ΔiOSΞϓϦΛ࡞Γ͍ͨ ͚ΕͲ Ͳ͏͢Δͷʁ → ͬ͘͟ΓɺྲྀΕΛઆ໌͠·͢ʂ
ࠓ͢༰ ͡Ίʹ ɹ1. ج൫ٕज़ͷબ ɹ2. Ethereum ΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮ ࠷ޙʹ
ج൫ٕज़ͷબ
1 Bitcoin Core 2 Ethereum 3 Hyperledger Fabric 4 Corda
5 Chain Open Standard 1 6 mijin 7 Orb 1 8 Eris ج൫ٕज़ͷબ
1 Bitcoin Core 2 Ethereum SmartContractɺใ๛ 3 Hyperledger Fabric 4
Corda 5 Chain Open Standard 1 6 mijin 7 Orb 1 8 Eris ج൫ٕज़ͷબ
ࠓ͢༰ ͡Ίʹ ɹ1. ج൫ٕज़ͷબ ɹ2. EthereumػೳΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮ ࠷ޙʹ
EthereumͰͷ࣮બࢶ
1 (OSS)ϥΠϒϥϦ༻ 2 ݺͼग़͠ (JSON RPC) 3 APIԽ EthereumͰͷ࣮બࢶ
1 (OSS)ϥΠϒϥϦ༻ 2 ݺͼग़͠ (JSON RPC) 3 APIԽ ɾαʔϏε༻DBͱͷ࿈ܞ͕Մೳ ɾ୯ൃͰୟ͍ͯ֬ೝͰ͖Δ
ɾΞϓϦ͔Βͷݟ͑ํ͕໌֬ EthereumͰͷ࣮બࢶ
EthereumػೳΛAPIԽ UbuntuͰEthereumΫϥΠΞϯτΛಈ࡞ JSON-RPCͰݺͼग़ͤΔͷͰ Node.jsͰϥοϓ͠·ͨ͠ → ࠓճྲྀΕͷղઆͳͷͰৄࡉผͷػձʹɻ
ࠓ͢༰ ͡Ίʹ ɹ1. ج൫ٕज़ͷબ ɹ2. EthereumػೳΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮ ࠷ޙʹ
SwiftͰΞϓϦ࣮
SwiftͰΞϓϦ࣮ APIԽͨ͠Βɺ͋ͱී௨ʹݺͼग़͢ʂ ɹɾSwift 2.2 ɹɾAFNetworking(← Alamofireਪ) ɹɾαʔϏε༻σʔλετΞ: ParseDB
SwiftͰΞϓϦ࣮ APIԽͨ͠Βɺ͋ͱී௨ʹݺͼग़͢ʂ͚͕ͩͩ… ɹɾSwift 2.2 ɹɾAFNetworking(← Alamofireਪ) ɹɾαʔϏε༻σʔλετΞ: ParseDB
࣮͢ΔࡍʹؾΛ͚͍ͨ͜ͱ
࣮͢ΔࡍʹؾΛ͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔
࣮͢ΔࡍʹؾΛ͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ͖࣋ͭ
࣮͢ΔࡍʹؾΛ͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ͖࣋ͭ 2. Blockchain্ͷ༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ
࣮͢ΔࡍʹؾΛ͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ͖࣋ͭ 2. Blockchain্ͷ༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ: Ծૹۚ
࣮͢ΔࡍʹؾΛ͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ͖࣋ͭ 2. Blockchain্ͷ༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ: Ծૹۚ 3. τϥϯβΫγϣϯ͍͠:
࣮͢ΔࡍʹؾΛ͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ͖࣋ͭ 2. Blockchain্ͷ༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ: Ծૹۚ 3. τϥϯβΫγϣϯ͍͠: 2૬ίϛοτ
࣮͢ΔࡍʹؾΛ͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ͖࣋ͭ 2. Blockchain্ͷ༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ: Ծૹۚ 3. τϥϯβΫγϣϯ͍͠: 2૬ίϛοτ
4. Blockchainݻ༗ͷใͷѻ͍Ͳ͏͠Α͏:
࣮͢ΔࡍʹؾΛ͚͍ͨ͜ͱ 1. αʔϏε༻DBΛઃ͚Δ͔൱͔: ͖࣋ͭ 2. Blockchain্ͷ༰͕֬ఆ͢Δ·Ͱ1ʙ30ඵ: Ծૹۚ 3. τϥϯβΫγϣϯ͍͠: 2૬ίϛοτ
4. Blockchainݻ༗ͷใͷѻ͍Ͳ͏͠Α͏: ɹɹABIɺEthereum Addressɺύεϫʔυͷอଘํ๏
ࠓ͢༰ ͡Ίʹ ɹ1. ج൫ٕज़ͷબ ɹ2. EthereumػೳΛAPIԽ ɹ3. SwiftͰΞϓϦ࣮ ࠷ޙʹ
࠷ޙʹ ɾ·ͩ·ͩBlockchainΛͬͯಈ͘ΞϓϦগͳ͍ ɾ2017BlockchainΛར༻࣮ͨ͠Ϗδωε͕ ɹଟग़ͯ͘Δͣʂ ɾΩϨοΩϨͷαʔϏε&ϏδωεΛ ɹ࡞͍͖ͬͯ·͠ΐ͏ʂ