smart cards & devices forum 2013 - mobile financial services
DESCRIPTION
TRANSCRIPT
May 2013
Co je nového a co nás čeká v oblasti mobilních finančních služeb?
Jan Němec, Petr Šturc
In-shop payment
On-line payment
P2P payment
Membership
Rewards
Place check-in
Ticketing
Gift cards
Mobile Commerce Initiatives
2
Use cases Technologies
Smart Cards & Devices Forum 2013
Mobile Commerce Framework
MOBILE PROXIMITY PAYMENT
MOBILE REMOTE PAYMENTS
VALUE-ADDED SERVICES
3 Smart Cards & Devices Forum 2013
Mobile Wallet
MOBILE WALLET SERVICE PROVIDERS CONSUMERS
WALLET PROVIDERS
4
A mobile app that turns your phone into your wallet & stores virtual versions of your existing plastic cards and other services on your phone.
Smart Cards & Devices Forum 2013
3 models emerging for PoS
IN THE DEVICE/SE IN THE CLOUD HYBRID
5 Smart Cards & Devices Forum 2013
In the Device:
Over 200 million wireless subscribers
Over 100 million phones sold each year
3 in 4 U.S wireless users Over 20,000 retail
outlets
Tap to pay Save with offers Simplify loyalty cards
Smart Cards & Devices Forum 2013 6
In the Cloud: PayPal
7 Smart Cards & Devices Forum 2013
Send money Buy online Collect coupons and offers
In the Cloud:
8 Smart Cards & Devices Forum 2013
QR based payment, couponing, loyalty, etc.
• Own transaction data • Bring down payment processing cost
Hybrid soon: LevelUp
9 Smart Cards & Devices Forum 2013
Pay with rewards
Hybrid: Google Wallet V2
10 Smart Cards & Devices Forum 2013
Peer-2-Peer payments integrated to gMail Instant Buy API for Android apps
NFC Couponing
Couponing: PassBook, ShopKick, FourSquare
11 Smart Cards & Devices Forum 2013
Innovations: Square, PayPal Here, Intuit GoPayment
12 Smart Cards & Devices Forum 2013
Dwolla – another payment network
13 Smart Cards & Devices Forum 2013
Offers
Discounts
Loyalty accumulation/redemption
Personalized service (photo/face recognition)
Faster service (place order in advance)
Location-oriented service
Social media
14
New Services for Payment
Smart Cards & Devices Forum 2013
Gemalto’s 360° Mobile Payment Solution In-Device to cloud based payment
15
Gemalto NFC SIM
Gemalto Secure NFC application
Visa / MasterCard Networks,
open loop payments
MNO TSM
NFC Payment
Payment Transactions
MNO
SP TSM
Gemalto Mobile Wallet e/m-Commerce
Domestic & Intl Money Transfer
Gemalto Mobile Payment Platform
Bank Back-End
Wallet Server (SSP)
NFC Wallet Admin
Smart Cards & Devices Forum 2013
Bitcoin
16 Smart Cards & Devices Forum 2013
Bitcoin in the news
17
Value of 1 bitcoin in US$
Smart Cards & Devices Forum 2013
Bitcoin is … payment system
Decentralized
Cheap micro-payment
Pseudonymous
No charge-backs
P2P
Alice
Bob To: 1ABtVtjFFC22zgH...... Amount: 1.0 BTC Send
a.k.a. Internet money
18 Smart Cards & Devices Forum 2013
Bitcoin is … application
https://github.com/bitcoin/bitcoin
19 Smart Cards & Devices Forum 2013
Bitcoin is … peer-to-peer network
Messages: <addr> - node discovery <tx> - transaction <block> - accounting + 15 others
Alice
Bob
20 Smart Cards & Devices Forum 2013
Bitcoin is … experimental monetary system
Limited “cash” supply Deflation No central bank
21 Smart Cards & Devices Forum 2013
Bitcoin is … mystery
Who is Satoshi Nakamoto? How single person beat 30yrs of research?* Is he genius? Is it single person? Why he disappeared?
D. Chaum, Blind signatures for untraceable payments, Proc. Crypto, 1982
22 Smart Cards & Devices Forum 2013
Address & wallet
ECC crypto - secp256k1 curve
Address = Base58( Network id || RIPEMD160(SHA256(KeyPub) || Checksum )
Checksum = SHA256(SHA256(*))
Example: 1ABtVtjFFC22zgHrAL8P24xpsiWoUSkXpk
Wallet = keystore holding private keys KeyPriv
23 Smart Cards & Devices Forum 2013
Transaction
50BTC originating from [here] goes [there]. 24 Smart Cards & Devices Forum 2013
Transaction security
25 Smart Cards & Devices Forum 2013
Transaction inputs / outputs
∑inputs ≥ ∑outputs !
26
Transaction inputs / outputs
input
Output address
27 Smart Cards & Devices Forum 2013
How to avoid double-spending?
Private Balance ledger
Bank may spend users’s money (attack) may create money (inflation) only may verify transaction is SPoF (Single Point of Failure)
Alice Bob Carole 0 10 15 5 8 17 7 5 18
2 5
1 2
Ledger cz - účetní kniha fr - livre comptable hu - főkönyv
28 Smart Cards & Devices Forum 2013
How to avoid double-spending?
AlicePub BobPub CarolePub
0 10 15 5 8 17 7 5 18
2 5
1 2
Public Balance ledger
Bank may spend users’s money (attack) may create money (inflation) only may verify transaction is SPoF (Single Point of Failure)
29 Smart Cards & Devices Forum 2013
Public shared ledger = blockchain
“Genesis” block
Root hash Nonce
Hash
Tx 1
Block 1
Root hash Nonce
Hash
Hash Hash
Tx 2 Tx 3
Prev block hash
Block 2
Root hash Nonce
Hash
Hash Hash
Tx 4 Tx 5
Prev block hash
Block 3
Root hash Nonce
Hash
Hash Hash
Tx 6 Hash
Prev block hash
Hash Tx 7 Tx 8
Merkle tree
30 Smart Cards & Devices Forum 2013
How does a block looks like?
Satoshi’s solution = Proof-of-Work Creation of block is difficult
32 Smart Cards & Devices Forum 2013
Proof-Of-Work
Block hash must be close to zero (DIFFICULTY) Block contains chosen counter – nounce Nounce satisfying condition above is hard to find (DIFFICULTY * 232 hash ops)
DIFFICULTY adjusted every 2016 blocks (to keep block generation speed at 6 blocks/hr)
Current difficulty (28-Apr-13) = 8974296
network hashrate ~ 70x1012 hashes/sec
33 Smart Cards & Devices Forum 2013
“I have found [this] to have zeros [here].”
Mining races
Bloc 557 Bloc 558
35 Smart Cards & Devices Forum 2013
Mining races
Bloc 557 Bloc 558
36 Smart Cards & Devices Forum 2013
Mining races
Bloc 557
Bloc 558a
Bloc 558b
37 Smart Cards & Devices Forum 2013
Mining races
Bloc 557
Bloc 558a
Bloc 558b
Bloc 559a
Bloc 559b
38 Smart Cards & Devices Forum 2013
Mining races
Bloc 557
Bloc 558a
Bloc 558b
Bloc 559a
Bloc 559b
39 Smart Cards & Devices Forum 2013
Mining races
Bloc 557
Bloc 558a
Bloc 558b
Bloc 559a
Bloc 559 Bloc 560
40 Smart Cards & Devices Forum 2013
Mining races
Bloc 557
Bloc 558a
Bloc 558b
Bloc 559a
Bloc 559 Bloc 560
41 Smart Cards & Devices Forum 2013
Mining races
Bloc 557
Bloc 558a
Bloc 558b Bloc 559 Bloc 560
42 Smart Cards & Devices Forum 2013
Double-spending Attacker must outperform good guys in the mining races
(> 50% of computing power)
Bloc 557
Bloc 558a
Bloc 558b Bloc 559 Bloc 560
Hahah, I’ll change history and
transfer your $ to my address!
43 Smart Cards & Devices Forum 2013
Mining in numbers (29-Apr-13)
Block Count 233,806 Blocks avg. per hour 7.83 Blocks last 24h 188 (4700BTC =$658,800)
Network Hashrate Terahashs/s 72.23 Network Hashrate PetaFLOPS 917.33 Energy consumption*) 876 MWh (~$87,000)
*) GPU: 1.8 Mhash/J oule FPGA: 18 Mhash/Joule 44 Smart Cards & Devices Forum 2013
“All the money comes from here!”
Why should anyone do it?
How to mine bitcoins for profit?
Pools
47 Smart Cards & Devices Forum 2013
Economy of mining
Miners are rewarded (25BTC per block Apr-13) Miners have incentive to build valid blocks (with valid transactions) … otherwise others will not build on their work, branch will be orphaned and reward not redeemed The reward is halved every ~4years (210,000 blocks) Total nb of BTC 11,097,625 Value in US$ (30-Apr-13) 1,598,058,000
48 Smart Cards & Devices Forum 2013
Number of bitcoins over time
49 Smart Cards & Devices Forum 2013
Transaction fee
Fee = Sum(tx outputs) – Sum(tx inputs) May be collected by miner
Purpose: Increase motivation - clients give fee for
faster service Keep motivation when all coins minted
50 Smart Cards & Devices Forum 2013
Auto-adjustment
More user = more hashing = faster block generation DIFFICULTY raised to keep 10 mins / block If raising too high - profitability of mining drops and miners stops working DIFFICULTY falls equilibrium should be reached (?)
51 Smart Cards & Devices Forum 2013
Resources
https://en.bitcoin.it/wiki/Category:Technical http://blockexplorer.com http://blockchain.info https://github.com/laanwj/bitcoin-qt http://people.mozilla.com/~bwarner/bitcoin/
52 Smart Cards & Devices Forum 2013
Thank you!
Jan Nemec [email protected]