SlideShare una empresa de 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

Más contenido relacionado

Similar 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
 

Similar 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 Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 

Último (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
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
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 

How BitCoin works?