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
Cryptography in Bitcoin
Search
U-Zyn Chua
April 15, 2013
Technology
3
290
Cryptography in Bitcoin
Talk for CryptoParty Singapore 2013
https://cryptoparty.org/wiki/Singapore
U-Zyn Chua
April 15, 2013
Tweet
Share
More Decks by U-Zyn Chua
See All by U-Zyn Chua
Introduction to Ordinals and SADO Protocol
uzyn
0
190
Solidity in 5 Minutes
uzyn
1
320
Introduction to Solidity
uzyn
1
390
Uncovering of an obfuscated public governmental API [FOSS Asia 2016]
uzyn
3
1.9k
Hardware hacking with PHP via Raspberry Pi
uzyn
3
1.1k
Cryptography: How is Bitcoin safer than your bank
uzyn
1
1.4k
Opauth - An introduction
uzyn
7
310k
Other Decks in Technology
See All in Technology
低コストで実現する社内文書RAG機能を搭載したAIチャットボット開発
takapy
4
690
【shownet.conf_】多様化するネットワーク環境を柔軟に統合するルーティングテクノロジー
shownet
PRO
0
360
過去のインプットとアウトプットを振り返る
diggymo
0
110
【shownet.conf_】AI技術とUX監視の応用でShowNetの基盤を支えるモニタリングシステム
shownet
PRO
0
340
kube-vipとkube-proxy置き換えCiliumを積んだ究極のK3sクラスタを建てる
logica0419
4
200
Slackbot × RAG で実現する社内情報検索の最適化
howdy39
2
310
たった一人で始めた音楽制作が気がついたら会社公認の部活動になっていた話〜組織の垣根を超えるコラボレーションを実現するには〜 / On-KAG-bu
piyonakajima
0
200
Oracle GoldenGate 23ai 導入Tips
oracle4engineer
PRO
1
240
Hazard pointers with reference counter
ennael
PRO
0
120
Develop to Survive - YAPC::Hakodate 2024 Keynote
moznion
5
1.8k
XPを始める新人に伝えたい近道の鍵
nakasho
1
300
普通の Web エンジニアのための様相論理入門 #yapcjapan / YAPC Hakodate 2024
ytaka23
5
1.2k
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.1k
Bootstrapping a Software Product
garrettdimon
PRO
304
110k
Fontdeck: Realign not Redesign
paulrobertlloyd
81
5.2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
43
6.5k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
41
9.2k
Thoughts on Productivity
jonyablonski
67
4.2k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
92
16k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
VelocityConf: Rendering Performance Case Studies
addyosmani
324
23k
A Philosophy of Restraint
colly
202
16k
Transcript
in Bitcoin Cryptography by U-Zyn Chua for Singapore CryptoParty 15
April 2013
U-Zyn Chua is not Cryptographer Economist
U-Zyn Chua is IT Consultant @ Security enthusiast Bitcoiner
How many... ? Bitcoiner? Knows about Bitcoin? Have no idea
about Bitcoin?
None
What is Bitcoin? Distributed electronic cash protocol and a unit
of currency
What is Bitcoin? Satoshi Nakamoto Genesis block on 3 Jan
2009 “Gone for good” since late 2010
What is Bitcoin?
1m44s
What makes a currency? Scarce Predictable growth Secure Valuable
Production is halved every 4 years Never more than 21
million
~USD 100/Bitcoin
Problems Currency creation Keeps value stable Fraud prevention
Cryptography No central bank No watchdog only No authority
How does Bitcoin work? Public-key cryptography Peer-to-peer network Proof-of-work
Public-key crypto 160-bit hash (SHA-256) 18YCR8bvxLaVCmbgY6eCavF733QDs1sQDT Base58-encoded Generate as many
as you want 215,000,000,000,000,000,000,000,000,0 00,000,000,000 addresses per capita.
Public-key crypto
Transaction Public & broadcasted http://blockchain.info
Transaction 499335.01317523 1DkyBEKt5S2GDtv7aQw6rQepAvnsRyHoYM 105555.03133700 1933phfhK3ZgFQNLGSDXvqCn32k2buXY8a 79957.03133700 1FeexV6bAHb8ybZjqQMjJrcCrHGW9sb6uF 53000.03133700 16cou7Ht6WjTzuFyDBnht9hmvXytg6XdVT 50259.03133700
1CfPAfVDe1Br11SkNrk2bEMmMP3bAA5wRr 50130.03133700 13vJZKHKBirruXwmjMaRtakzPQRRHQit1S 50000.03133700 1P3S1grZYmcqYDuaEDVDYobJ5Fx85E9fE9 50000.03133700 1DEpjpftLbsGiCJvJDp2F2quVRnymV8U5Q 47458.03133700 1BBqjKsYuLEUE9Y5WzdbzCtYzCiQgHqtPN 44914.03133700 1MR6pXDZ6gpBVN8n61SqCNF61vU8ZzRu8Y 44512.03133700 1BVA88962SxcymHSfqXSy9F7cgXefi3zgt 40000.03133700 16Ls6azc76ixc9Ny7AB5ZPPq6oiEL9XwXy 40000.03133700 12HddUDLhRP2F8JjpKYeKaDxxt5wUvx5nq 40000.03133700 1cXNTyXj4xPGopfYZNY5xfSM1EPJJvBZV 38058.03133700 1FngtAcZsLfK89MNe7TqzyqVtSype8TiVD 38000.03133700 18Hsgq92AUB1PYLU6MUMQXiwdebaDRo9oQ 35000.00000000 1DAmsh8tHUtH2cVUDMxnDkKr8SaPNkb36h 31000.03133700 12ib7dApVFvg82TXKycWBNpN8kFyiAN1dr 30000.03133700 1MyGwFAJjVtB5rGJa32M6Yh46cGirUta1K Bitcoin richest
Transaction 499335.01317523 1DkyBEKt5S2GDtv7aQw6rQepAvnsRyHoYM 105555.03133700 1933phfhK3ZgFQNLGSDXvqCn32k2buXY8a 79957.03133700 1FeexV6bAHb8ybZjqQMjJrcCrHGW9sb6uF 53000.03133700 16cou7Ht6WjTzuFyDBnht9hmvXytg6XdVT 50259.03133700
1CfPAfVDe1Br11SkNrk2bEMmMP3bAA5wRr 50130.03133700 13vJZKHKBirruXwmjMaRtakzPQRRHQit1S 50000.03133700 1P3S1grZYmcqYDuaEDVDYobJ5Fx85E9fE9 50000.03133700 1DEpjpftLbsGiCJvJDp2F2quVRnymV8U5Q 47458.03133700 1BBqjKsYuLEUE9Y5WzdbzCtYzCiQgHqtPN 44914.03133700 1MR6pXDZ6gpBVN8n61SqCNF61vU8ZzRu8Y 44512.03133700 1BVA88962SxcymHSfqXSy9F7cgXefi3zgt 40000.03133700 16Ls6azc76ixc9Ny7AB5ZPPq6oiEL9XwXy 40000.03133700 12HddUDLhRP2F8JjpKYeKaDxxt5wUvx5nq 40000.03133700 1cXNTyXj4xPGopfYZNY5xfSM1EPJJvBZV 38058.03133700 1FngtAcZsLfK89MNe7TqzyqVtSype8TiVD 38000.03133700 18Hsgq92AUB1PYLU6MUMQXiwdebaDRo9oQ 35000.00000000 1DAmsh8tHUtH2cVUDMxnDkKr8SaPNkb36h 31000.03133700 12ib7dApVFvg82TXKycWBNpN8kFyiAN1dr 30000.03133700 1MyGwFAJjVtB5rGJa32M6Yh46cGirUta1K Bitcoin richest 500k BTC ~ USD 50 million stored in a PUBLIC string!
Mining Adding tx records to ledger Confirm transactions Profit (50
25 BTC / block) ???
None
None
Block chain Broadcasted transaction database since Day 1 (Jan 3
2009) 1 block every 10 minutes (how?) Currently at >6GB
Block Field Purpose Version Client version Previous hash Hash of
previous block Merkle root Hash of transactions Timestamp Current UNIX time Target Target hash Nonce 32-bit number
Target 1 block every 10 minutes (this is how!) A
(max) target hash output Generate lower hash than the target The higher the target is, the harder it is
Target Let’s look back at block’s component and assume that
we want to make a hash with the following output 0x0000000000000fffffffff.....
Target Difficulty is adjusted every 2016 blocks (2 weeks) Based
on time it takes for the last 2016 blocks Current chance to find a block: 0.0000000000000000303436847859644281966140511030971538275
Block generation
Block generation
Cryptography is the authority! is the watchdog! Many other clever
features of Bitcoin
Security incidents
Security incidents
Security incidents
Is Bitcoin safe? https://github.com/bitcoin/bitcoin Reward: USD 140 million
Is Bitcoin safe? https://github.com/bitcoin/bitcoin Reward: USD 140 million Reward: USD
1.1 billion!
Bitcoin vs Bank Bitcoin Bank Trust no one Trust bank
Open source Closed source Proven & known security Obscured security
Questions? @uzyn
[email protected]