SlideShare una empresa de Scribd logo
1 de 16
Cryptosecurity of Bitcoin
NAVEET KUMAR
Crypto Primitives
Bitcoin Anatomy
Transactions
Decentralized Trust
Mining
Attack Vectors
Agenda
Crypto Primitives: Hash
H( )m
(variable length)
H(m)
(fixed length)
H(m) m H( )
m
H(m)
m’
Irreversible Collision Resistant
Crypto Primitives: Hash Pointer
H( )m
• Retrieval
• Tamper Resistant
Hash pointer List
Prev: H( )
data
Prev: H( )
data
Prev: H( )
data
Prev: H( )
data
H( )
Crypto Primitives: Merkle Tree
Crypto Primitives: Digital Signature
m E[H(m)]H(m)
m
E[H(m)]
Hash Encrypt with sk Sign
(sk,pk) = generate(keysize)
sk = Signing key
pk = Publick key
m
E[H(m)]
m
E[H(m)]
H(m)
H(m)
Hash
Decrypt with pk
• Unforgeable
• Public Verification
Bitcoin Anatomy
Demo
Transaction
2 BTCAlice Bob
(SK,PK)Bob
PKAlice
PKBob
Bitcoin Address(SK,PK)Alice
PKAlice PKBob
2𝔹
Signed By Alice
Bob Verifies
T1
In Out
Prev T0 Value 2 BTC
Index Out[0] ToAddr PKBob
InScript
SigAlice
PKAlice
OutScript
OP_DUP
OP_HASH160
PKBob
OP_EQUALVERIFY
OP_CHECKSIG
Signed by Alice T2
In Out
Prev T1 Value 2 BTC
Index Out[0] ToAddr PKchuck
InScript
SigBob
PKBob
OutScript
OP_DUP
OP_HASH160
PKchuck
OP_EQUALVERIFY
OP_CHECKSIG
Signed by Bob
2 BTCAlice Bob 2 BTCBob Chuck
SigBob PKBob OP_DUP OP_HASH160 PKBob OP_EQUALVERIFY OP_CHECKSIG
Script Challenge
== True
Transaction Verification
SigBob PKBob OP_DUP OP_HASH160 H(PKBob) OP_EQUALVERIFY OP_CHECKSIG
SigBob
PKBob
PKBobH(PKbob)
H(PKBob)
Verified
Transaction Demo
• Block => https://blockchain.info/block/000000000000000000bb85fac472cf2dfc357f694c98bd8ec007824a651b5f63
• Coinbase => https://blockchain.info/tx/4e2fa5424fdbf28291f1563166485164fa9538ce15c9d7304bee8de0c7a380ef
• Transaction => https://blockchain.info/tx/810db6197cc629d2b5ac0f2b7b912f606f40f68974a1dde30fe1c174a6d9133a
• First Trans => https://blockchain.info/block-height/170
• First Block => https://blockchain.info/block-height/0
Tx
Tx
…..
Tx
Tx
Tx
…..
Tx
A  B
Decentralized Trust
M1
M3M2
Tx
A  B
…..
Tx
Tx
Tx
…..
Tx
Tx
Tx
…..
Tx
Tx
Tx1
…..
Tx
Tx
Tx
…..
Tx
Tx
Tx
…..
Tx
Tx
A  B
…..
Tx
Tx
A  B
…..
Tx
Longest Chain Wins
Tx
Tx
…..
Tx
Tx
Tx
…..
Tx
A  B
Double Spend Attack
M1
M3M2
Tx
A  B
…..
Tx
Tx
Tx
…..
Tx
Tx
Tx
…..
Tx
Tx
A  A’
…..
Tx
Tx
Tx
…..
Tx
Tx
Tx
…..
Tx
Tx
A  B
…..
Tx
A  A’
1st
Tx
Tx
…..
Tx
2nd
Tx
Tx
…..
Tx
3rd
6 Confirmations
Mining
Coinbase
Tx
…..
Tx
Reward for Mining = 12.5 BTC
Proof of work
H( nonce | pre_hash | tx1 | tx2 ) = [000….12]
• Recalibrates in 14 days
• Mean Mining time = 10 min / fraction_of_global_hash_power
https://bitnodes.earn.com
Attack Vectors
Net
• 51% attacker
• Full Nodes
Crypto
• SHA2 weakness
• ECDSA weakness
Ecosystem
• Wallet
• RFC ( Bitcoin Improvement Proposal )
Thanks

Más contenido relacionado

Último

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
 
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
 
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
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
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
 
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
 
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
 
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
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
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
 
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
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
[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
 
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
 
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
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
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
 

Último (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
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
 
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
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
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
 
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
 
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...
 
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
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
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...
 
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
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
[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
 
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...
 
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
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
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
 

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Bitcoin cryptosecurity

  • 3. Crypto Primitives: Hash H( )m (variable length) H(m) (fixed length) H(m) m H( ) m H(m) m’ Irreversible Collision Resistant
  • 4. Crypto Primitives: Hash Pointer H( )m • Retrieval • Tamper Resistant Hash pointer List Prev: H( ) data Prev: H( ) data Prev: H( ) data Prev: H( ) data H( )
  • 6. Crypto Primitives: Digital Signature m E[H(m)]H(m) m E[H(m)] Hash Encrypt with sk Sign (sk,pk) = generate(keysize) sk = Signing key pk = Publick key m E[H(m)] m E[H(m)] H(m) H(m) Hash Decrypt with pk • Unforgeable • Public Verification
  • 8. Transaction 2 BTCAlice Bob (SK,PK)Bob PKAlice PKBob Bitcoin Address(SK,PK)Alice PKAlice PKBob 2𝔹 Signed By Alice Bob Verifies
  • 9. T1 In Out Prev T0 Value 2 BTC Index Out[0] ToAddr PKBob InScript SigAlice PKAlice OutScript OP_DUP OP_HASH160 PKBob OP_EQUALVERIFY OP_CHECKSIG Signed by Alice T2 In Out Prev T1 Value 2 BTC Index Out[0] ToAddr PKchuck InScript SigBob PKBob OutScript OP_DUP OP_HASH160 PKchuck OP_EQUALVERIFY OP_CHECKSIG Signed by Bob 2 BTCAlice Bob 2 BTCBob Chuck SigBob PKBob OP_DUP OP_HASH160 PKBob OP_EQUALVERIFY OP_CHECKSIG Script Challenge == True
  • 10. Transaction Verification SigBob PKBob OP_DUP OP_HASH160 H(PKBob) OP_EQUALVERIFY OP_CHECKSIG SigBob PKBob PKBobH(PKbob) H(PKBob) Verified
  • 11. Transaction Demo • Block => https://blockchain.info/block/000000000000000000bb85fac472cf2dfc357f694c98bd8ec007824a651b5f63 • Coinbase => https://blockchain.info/tx/4e2fa5424fdbf28291f1563166485164fa9538ce15c9d7304bee8de0c7a380ef • Transaction => https://blockchain.info/tx/810db6197cc629d2b5ac0f2b7b912f606f40f68974a1dde30fe1c174a6d9133a • First Trans => https://blockchain.info/block-height/170 • First Block => https://blockchain.info/block-height/0
  • 12. Tx Tx ….. Tx Tx Tx ….. Tx A  B Decentralized Trust M1 M3M2 Tx A  B ….. Tx Tx Tx ….. Tx Tx Tx ….. Tx Tx Tx1 ….. Tx Tx Tx ….. Tx Tx Tx ….. Tx Tx A  B ….. Tx Tx A  B ….. Tx Longest Chain Wins
  • 13. Tx Tx ….. Tx Tx Tx ….. Tx A  B Double Spend Attack M1 M3M2 Tx A  B ….. Tx Tx Tx ….. Tx Tx Tx ….. Tx Tx A  A’ ….. Tx Tx Tx ….. Tx Tx Tx ….. Tx Tx A  B ….. Tx A  A’ 1st Tx Tx ….. Tx 2nd Tx Tx ….. Tx 3rd 6 Confirmations
  • 14. Mining Coinbase Tx ….. Tx Reward for Mining = 12.5 BTC Proof of work H( nonce | pre_hash | tx1 | tx2 ) = [000….12] • Recalibrates in 14 days • Mean Mining time = 10 min / fraction_of_global_hash_power https://bitnodes.earn.com
  • 15. Attack Vectors Net • 51% attacker • Full Nodes Crypto • SHA2 weakness • ECDSA weakness Ecosystem • Wallet • RFC ( Bitcoin Improvement Proposal )

Notas del editor

  1. Irreversible => Brute force => 2^130 => Astronomical time Collision resistant => Huge Input, Small output space Commitment Sha 256
  2. Tamper resistant log Linked List => Blockchain Hash Pointer Head => Entire log can be retrieved O(n)
  3. Binary Tree Merkle Root Membership can be found => O(log n) Transactions are stored Merkle Tree in block
  4. Unforegeable Public verification Sign a Hash Pointer means signing the entire chain ECDSA => Elliptic Curve Digital Signature Algorithm Sk => private key, pk = bitcoin wallet address, Decentralized Identity management
  5. Block => Hash Pointer Blockchain => Hash Pointer List Transaction List => Merkle Tree Genesis block => https://blockchain.info/block-index/14849
  6. Wallet exchange Verification post block formation Alice had 2 BTC ? How only Bob Consumes ? Belongingness ?
  7. Transaction ref Multiple Input, Multiple Output To-Bitcoin address Script Challenge ( Only Bob can solve ) Bitcoin Scripting => op_codes & data Pay to Script
  8. Bitcoin scripting => Not turing complete language, Limit on Time & Memory It was meant for Bob ( Belong Only bob has a solution ( Anyone can verify Bob’s ownership if bob gives a solution )
  9. 1. Block => https://blockchain.info/block/000000000000000000bb85fac472cf2dfc357f694c98bd8ec007824a651b5f63 2. Coinbase => https://blockchain.info/tx/4e2fa5424fdbf28291f1563166485164fa9538ce15c9d7304bee8de0c7a380ef 3. Transaction(3rd) => 810db6197cc629d2b5ac0f2b7b912f606f40f68974a1dde30fe1c174a6d9133a
  10. P2P network => 8333 Gossip protocol ( relay node, full node ) Longest Node
  11. Transaction ref & Reuse Cryptographically No diff Confirmations : 6 required Probability of a block being invalid decrease exponentially Malicious Node : Add Invalid transaction Deny a transaction Double spent Penalize the malicous node
  12. Incentivize Add a Coin base transaction out of thin air All Active nodes Proof of work => 2^n ( n = leading zeros ) Recalibrates as hashing power can change Mean time = 10
  13. 51 % Malicious Nodes Steal Coins => No ( Can not solve script challenge ) Denial to a specific transaction => Yes Change reward amount => No ( breaking protocol ) Destroy Confidence => Yes ( disturbing the network ) RCE in Full Nodes SHA2 => Possible will be broken by 2040 ECDSA => Forge a signature => steal coins Wallet software => Find a vulnerability there