SlideShare uma empresa Scribd logo
1 de 59
BitCoin
Moein Hosseini
2 / 59
Table Of Contents
● History of Money
● Introduction to BitCoin
● Keys, Addresses, Wallets
● Transactions
● The Blockchain
● Mining
3 / 59
History Of Money
4 / 59
History Of Money
● Barter
– Needs double coincidence of wants
● Commodity Money
– Portable & Divisible
● Use of Tokens
– Backed By Deposits Of Gold
– Fiat Money
5 / 59
Uses Of Tokens
● Representative Money
– The value of the token is baked by a commodity,
eg: Gold, Silver
– Was in use until 1971 (Gold Backed Dollar)
● Fiat Money
– The value of the token is based on the
confidence on Issuer, eg: Governments
– National Debt
– Economic Crisis
6 / 59
Cash Payment
● Quite Portable
● No Charge For Transactions
● No Audit
● CASH IS NOT FREE
– Replaced with newly printed ones
– Heavy insurance
– Counterfeiters
7 / 59
Digital Money
● Credit Cards
● Debit Cards
● Stored Value Cards
● Electronic Cash
● Electronic Checks
● etc.
8 / 59
Digital Currencies
● Is Authentic and Not Counterfeit
● Double Spending
9 / 59
Yap Stone Money
10 / 59
Solution
● Decentralized P2P Network (BitCoin Protocol)
● Public Ledger (Blockchain)
● Decentralized Mathmatical Currency Issuance
(Distributed Mining)
● Decentralized Transaction Verification
(Transaction Script)
11 / 59
Byzantine Generals Problem
12 / 59
Who Created BitCoin?
● October 31, 2008
– Satoshi Nakamoto Published paper: “A peer-to-
peer electronic cash system“
● Januray 3, 2009
– Satoshi released BitCoin Source Code
● April 23, 2011
– Satoshi said “Moved onto other things“
13 / 59
BitCoin Overview
14 / 59
Buying a Cup of Coffee
15 / 59
Transaction
16 / 59
Transaction Chain
17 / 59
Transaction
18 / 59
Mining
19 / 59
Asymmetric Encryption
20 / 59
Elliptic Curve Cryptography
21 / 59
Elliptic Curve Cryptography
PubKey = PrivKey * G
22 / 59
BitCoin Address
23 / 59
Public Key Compression
24 / 59
BitCoin Wallet
25 / 59
Nondeterministic Wallets
26 / 59
Deterministic Wallets
27 / 59
Mnemonic Code Words
● Create Random Sequence (128 to 256 Bit)
● Create Checksum (First Few Bits of SHA256)
● Add the Checksum
● Divide The Sequence Into Sections Of 11 Bits
● Produce 12 to 24 Words (mnemonic code)
28 / 59
Mnemonic Code Words
29 / 59
Creating Master Key
30 / 59
Creating Child Key
31 / 59
Extended Keys–Public Key
32 / 59
Extended Keys–Private Key
33 / 59
Keys Path
34 / 59
Vantiy Address
35 / 59
Transactions
● Creating Transactions – Like a Check
– Submit for execution
– Need Signature
– Online / Offline
● Broadcasting
– About 300~400 Bytes
– Unlike Credit Card, Just Needs Propagation
36 / 59
Transactions
● Peer-To-Peer Network
– Valid transactions sends to three or four peers
– In few seconds every nodes know it
● Prevent Spamming, DoS Attack
– Validate transaction before sending
37 / 59
Transaction Structure
38 / 59
Locktime
● Defines the earliest time that a transaction can be
added to the blockchain
● Set to ZERO : Immediatly
● NonZero and Below 500 million : Block Height
● Above 500 million : Timestamp
39 / 59
UTXO
● Unspend Transaction Output
● No Account
● No Balances
● Only Unspend Transactions
– I have 5$
– A cup of coffee is 1.5$
– 3.5$ as exchange
40 / 59
Output Structure
41 / 59
Input Strcutre
42 / 59
More About Transaction
● Transaction Fee
– Sum(Inputs) – Sum(Outputs)
● Orphan Transaction
– Depends on unrecieved transaction
– MAX_ORPHAN_TRANSACTIONS
43 / 59
Transaction Scripts
● Programmble Money
● Pay to Hash Address
– Locking: scriptPubKey
– Unlocking: scriptSig
● Pay to Script Hash
– Multi Signatures Transactions
44 / 59
Evaluate A Script
45 / 59
Evaluate A Script
46 / 59
Evaluate A Script
47 / 59
Pay to Script Hash
● Any payments need M signature of N
● Cons:
– Five times larger
– More transaction fee
● Solution
– Pay to script matching this hash, a script will be
present later when this output is spent
48 / 59
Pay to Script Hash
● MultiSig With Out P2SH
● MultiSig With P2SH
49 / 59
Blockchain
50 / 59
Header Structure
51 / 59
Gensis Block
52 / 59
Merkle Tree
53 / 59
Node Types
54 / 59
Node Types
55 / 59
Mining
56 / 59
Mining
57 / 59
BitCoin Hash Rate
58 / 59
Difficulty and Retargeting
● Every two weeks (2016 blocks)
● As bug its 2015 blocks ^_^
59 / 59
Thanks

Mais conteúdo relacionado

Semelhante a How BitCoin works?

The practical side of bitcoin code camp 2014
The practical side of bitcoin  code camp 2014The practical side of bitcoin  code camp 2014
The practical side of bitcoin code camp 2014jkazman
 
CBGTBT - Part 6 - Transactions 102
CBGTBT - Part 6 - Transactions 102CBGTBT - Part 6 - Transactions 102
CBGTBT - Part 6 - Transactions 102Blockstrap.com
 
Privacy and Bitcoin - Attack Vectors
Privacy and Bitcoin - Attack VectorsPrivacy and Bitcoin - Attack Vectors
Privacy and Bitcoin - Attack VectorsThatCrypto
 
Bitcoins: Application of blockchain technology
Bitcoins: Application of blockchain technologyBitcoins: Application of blockchain technology
Bitcoins: Application of blockchain technologyShiv Sahni
 
Bitcoin (Cryptocurrency)
Bitcoin (Cryptocurrency)Bitcoin (Cryptocurrency)
Bitcoin (Cryptocurrency)Tsasaa Tsas
 
Total privacy of transactions, Mimblewimble and Grin
Total privacy of transactions, Mimblewimble and GrinTotal privacy of transactions, Mimblewimble and Grin
Total privacy of transactions, Mimblewimble and GrinEugene Pavlenko
 
Blockchan For Developers
Blockchan For DevelopersBlockchan For Developers
Blockchan For DevelopersAlex Chepurnoy
 
Bitcoin ppt.pptx
Bitcoin ppt.pptxBitcoin ppt.pptx
Bitcoin ppt.pptxMuskanRath1
 
Multi-Signature Deep Dive
Multi-Signature Deep DiveMulti-Signature Deep Dive
Multi-Signature Deep DiveBenedict Chan
 
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201..."How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...Equal Experts
 
Module-2-Introduction-to-Cryptocurrencies.pdf
Module-2-Introduction-to-Cryptocurrencies.pdfModule-2-Introduction-to-Cryptocurrencies.pdf
Module-2-Introduction-to-Cryptocurrencies.pdfreddoors14
 
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute BeginnersHessan Adnani
 
Bitcoin Blockchain - Under the Hood
Bitcoin Blockchain - Under the HoodBitcoin Blockchain - Under the Hood
Bitcoin Blockchain - Under the HoodGalin Dinkov
 
The Stellar Blockchain and The Story of the Federated Consensus — Blockchain ...
The Stellar Blockchain and The Story of the Federated Consensus — Blockchain ...The Stellar Blockchain and The Story of the Federated Consensus — Blockchain ...
The Stellar Blockchain and The Story of the Federated Consensus — Blockchain ...Ory Band
 
Give me some (key) space!
Give me some (key) space!Give me some (key) space!
Give me some (key) space!Tal Be'ery
 

Semelhante a How BitCoin works? (20)

The practical side of bitcoin code camp 2014
The practical side of bitcoin  code camp 2014The practical side of bitcoin  code camp 2014
The practical side of bitcoin code camp 2014
 
CBGTBT - Part 6 - Transactions 102
CBGTBT - Part 6 - Transactions 102CBGTBT - Part 6 - Transactions 102
CBGTBT - Part 6 - Transactions 102
 
Privacy and Bitcoin - Attack Vectors
Privacy and Bitcoin - Attack VectorsPrivacy and Bitcoin - Attack Vectors
Privacy and Bitcoin - Attack Vectors
 
Bitcoins: Application of blockchain technology
Bitcoins: Application of blockchain technologyBitcoins: Application of blockchain technology
Bitcoins: Application of blockchain technology
 
Bitcoin (Cryptocurrency)
Bitcoin (Cryptocurrency)Bitcoin (Cryptocurrency)
Bitcoin (Cryptocurrency)
 
Cryptocurrency tutorial
Cryptocurrency tutorialCryptocurrency tutorial
Cryptocurrency tutorial
 
Total privacy of transactions, Mimblewimble and Grin
Total privacy of transactions, Mimblewimble and GrinTotal privacy of transactions, Mimblewimble and Grin
Total privacy of transactions, Mimblewimble and Grin
 
Blockchan For Developers
Blockchan For DevelopersBlockchan For Developers
Blockchan For Developers
 
Bitcoin ppt.pptx
Bitcoin ppt.pptxBitcoin ppt.pptx
Bitcoin ppt.pptx
 
Multi-Signature Deep Dive
Multi-Signature Deep DiveMulti-Signature Deep Dive
Multi-Signature Deep Dive
 
Blockchain External.pdf
Blockchain External.pdfBlockchain External.pdf
Blockchain External.pdf
 
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201..."How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
"How Blockchains and Bitcoins work" by Ricardo Águas @ Pizza Talks Lisbon 201...
 
Malleability and SegWit
Malleability and SegWitMalleability and SegWit
Malleability and SegWit
 
Module-2-Introduction-to-Cryptocurrencies.pdf
Module-2-Introduction-to-Cryptocurrencies.pdfModule-2-Introduction-to-Cryptocurrencies.pdf
Module-2-Introduction-to-Cryptocurrencies.pdf
 
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
[Workshop] Getting Started with Cryptos, NFTs & Web 3.0 for Absolute Beginners
 
Bitcoin Blockchain - Under the Hood
Bitcoin Blockchain - Under the HoodBitcoin Blockchain - Under the Hood
Bitcoin Blockchain - Under the Hood
 
About Blockchain
About BlockchainAbout Blockchain
About Blockchain
 
I2cash
I2cashI2cash
I2cash
 
The Stellar Blockchain and The Story of the Federated Consensus — Blockchain ...
The Stellar Blockchain and The Story of the Federated Consensus — Blockchain ...The Stellar Blockchain and The Story of the Federated Consensus — Blockchain ...
The Stellar Blockchain and The Story of the Federated Consensus — Blockchain ...
 
Give me some (key) space!
Give me some (key) space!Give me some (key) space!
Give me some (key) space!
 

Último

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 

Último (20)

Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 

How BitCoin works?