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.4k
iOSアプリからBlockchainを触るには
satoshi0212
November 22, 2016
Tweet
Share
More Decks by satoshi0212
See All by satoshi0212
macOSで自分のカメラを作ってみよう - Core Media IO Extensions
satoshi0212
3
1.4k
NDIとARKitを連動させた新しい映像表現
satoshi0212
3
1.1k
100日間AR表現を実装して見つけた面白い実装を全力解説
satoshi0212
5
2.1k
Working on mobile AR implementation, what I've implemented and beyond
satoshi0212
0
500
仮想カメラで切り開く拡張現実の世界
satoshi0212
0
600
macOS仮想カメラ「テロップカム」 実装方法とその先
satoshi0212
5
3.7k
ARで悪の組織の会議を実現する
satoshi0212
0
540
クロマキー合成を使い透過動画をAR空間に表示する
satoshi0212
3
9.7k
ARKit Maniacs
satoshi0212
1
3.6k
Other Decks in Programming
See All in Programming
奥深くて厄介な「改行」と仲良くなる20分
oguemon
1
570
時間軸から考えるTerraformを使う理由と留意点
fufuhu
16
4.8k
Android 16 × Jetpack Composeで縦書きテキストエディタを作ろう / Vertical Text Editor with Compose on Android 16
cc4966
2
270
旅行プランAIエージェント開発の裏側
ippo012
2
930
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
250
テストカバレッジ100%を10年続けて得られた学びと品質
mottyzzz
2
610
個人開発で徳島大学生60%以上の心を掴んだアプリ、そして手放した話
akidon0000
1
150
Namespace and Its Future
tagomoris
6
710
Swift Updates - Learn Languages 2025
koher
2
520
アルテニア コンサル/ITエンジニア向け 採用ピッチ資料
altenir
0
110
Updates on MLS on Ruby (and maybe more)
sylph01
1
180
Tool Catalog Agent for Bedrock AgentCore Gateway
licux
7
2.6k
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
246
12k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
A Modern Web Designer's Workflow
chriscoyier
696
190k
Building Applications with DynamoDB
mza
96
6.6k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
A Tale of Four Properties
chriscoyier
160
23k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
580
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
For a Future-Friendly Web
brad_frost
180
9.9k
GraphQLの誤解/rethinking-graphql
sonatard
72
11k
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Λར༻࣮ͨ͠Ϗδωε͕ ɹଟग़ͯ͘Δͣʂ ɾΩϨοΩϨͷαʔϏε&ϏδωεΛ ɹ࡞͍͖ͬͯ·͠ΐ͏ʂ