SlideShare una empresa de Scribd logo
1 de 32
A Wild Velvet Fork Appears!
Inclusive Blockchain Protocol Changes in
Practice
Alexei Zamyatin
Building on Bitcoin 2018
HP
Lv ???Velvet Fork
HP
Lv 530.041Bitcoin
2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Motivation
• Bitcoin: dynamically changing set of pseudonymous participants
• Random leader election process via Nakamoto consensus
• Consensus rule changes require majority vote
Ongoing debates on consensus changes in permissionless blockchains
• BUT: Soft and hard forks are not the only way to add new features!
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Soft vs. Hard Forks
• Hard fork
• Descriptor for changes incurring a permanent split of the blockchain
• However:
No majority  No chain split if (assuming econom. rational actors)
• Soft Fork
• Some level of compatibility preserved towards clients adhering to previous
rules
• However
If majority of consensus participants is not upgraded  Permanent split
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Soft vs. Hard Forks
• Hard fork
• Descriptor for changes incurring a permanent split of the blockchain
• However:
No majority  No chain split (assuming econom. rational actors)
• E.g., a failed 2Mb blocks fork: upgraded miners consider old rules valid and follow the
longer „legacy“ chain. New blocks continously discarded by legacy miners.
• Soft Fork
• Some level of compatibility preserved towards clients adhering to previous rules
• However:
If majority of consensus participants is not upgraded  Permanent split
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Notation
• Pre-agreed set of protocol rules 𝑷
• Validity set (𝑽)
• Set of all blocks valid under rules 𝑷
• Block 𝒃 is valid under 𝑷 iff 𝒃 ∈ 𝑽
• Question: how does a protocol change 𝑷 → 𝑷′ affect
consensus?
• Changes to validity set denoted as 𝑵
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Mechanisms for Consensus Rule Changes
See:
(Short Paper) A Wild Velvet Fork Appears! Inclusive Blockchain Protocol Changes in Practice
Alexei Zamyatin, Nicholas Stifter, Aljosha Judmayer, Philipp Schindler, Edgar Weippl and William J. Knottenbelt
5th Workshop on Bitcoin and Blockchain Research, Financial Cryptography and Data Security 18
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Velvet Forks
• Rules applied conditionally
• No majority agreement required
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Velvet Forks
• Rules applied conditionally
• No majority agreement required
• Never cause a permanent chain split*
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Velvet-NON-Forks
• Rules applied conditionally
• No majority agreement required
• Never cause a permanent chain split*
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Mechanisms for Consensus Rule Changes (Cont’d)
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Mechanisms for Consensus Rule Changes (Cont’d)
*Except if conflicting rules are introduced by legacy miners
 Essentially, ban adding data to transactions/blocks….Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Velvet Forks in the Wild
2011
Merged Mining
2011
P2Pool
2013
Weak blocks
2012
Colored Coins / Overlay Protocols
2016
Virtualchain
(Blockstack)
2017
NiPoPoWs
 First mention of the term „Velvet Fork“
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
P2Pool
• Decentralized Mining pool
• Weak/Near blocks used as
pool „shares“
• Additional structure:
“Sharechain”
• New rules:
• Payout scheme (coinbase
TX outputs)
• Prev. Share reference
Source: A. Zamyatin, „Merged Mining: Analysis of Effects and Implications“,
MSc Thesis, Vienna University of Technology, 2017
As seen by P2Pool miners:
BTC block
1
PoW
BTC block
2
PoW
Share 3
PoW
Share 2
PoW
Share 1
PoW
AAA AAA, BBB
AAA, BBB,
CCC
PoW
Dshare DBTC
Performed proof-of-work
Bitcoin block reference
Address of a miner A
Sharechain block reference
AAA
AAA, BBB,
CCC, AAA..
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
P2Pool
• Decentralized Mining pool
• Weak/Near blocks used as
pool „shares“
• Additional structure:
“Sharechain”
• New rules:
• Payout scheme (coinbase
TX outputs)
• Prev. Share reference
As seen by other miners:
BTC block
1
PoW
BTC block
2
PoW
PoW
Dshare DBTC
Performed proof-of-work
Bitcoin block reference
Address of a miner AAAA
AAA, BBB,
CCC, AAA..
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Source: A. Zamyatin, „Merged Mining: Analysis of Effects and Implications“,
MSc Thesis, Vienna University of Technology, 2017
So, why wasn‘t SegWit deployed as a Velvet Fork?
Or Bitcoin-NG? Or Extension Blocks? Or …
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
When Velvet Forks Don‘t Work
• When rules need to be enforced across all participants
(Or can lead to failures)
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
When Velvet Forks Don‘t Work
• When rules need to be enforced across all participants
SegWit, Bitcoin-NG, …  “Anyone-can-spend“ in the eyes of
old clients
(Or can lead to failures)
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
When Velvet Forks Don‘t Work
• When rules need to be enforced across all participants
SegWit, Bitcoin-NG, …  “Anyone-can-spend“ in the eyes of
old clients
• When honest majority is required for safety
(Or can lead to failures)
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
When Velvet Forks Don‘t Work
• When rules need to be enforced across all participants
SegWit, Bitcoin-NG, …  “Anyone-can-spend“ in the eyes of
old clients
• When honest majority is required for safety
Selfish mining / 51% attacks on P2Pool
(Or can lead to failures)
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
An Attack on P2Pool
.
Assume: 5% of the hash rate in P2Pool
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
An Attack on P2Pool
..
H1 H2 H3
Assume: 5% of the hash rate in P2Pool
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
An Attack on P2Pool
.
Assume: Attacker with 10% of overall hash rate
.
A
H1
A A A A
H2 H3
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
An Attack on P2Pool
.
Assume: Attacker with 10% of overall hash rate
.
A
H1
A A A A
H2 H3
X
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
An Attack on P2Pool
.
Assume: Attacker with 10% of overall hash rate
.
A
H1
A A A A
H2 H3
H
X
Work of honest P2Pool miners H1,H2,H3 is lost!
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Merged Mining: Effects of partial adoption
Merged Mining: Curse of Cure?
Judmayer, A. Zamyatin, N. Stifter, A.G. Voyiatzis and E. Weippl
Data Privacy Management, Cryptocurrencies and Blockchain
Technology. Springer, Cham, 2017. 316-333.
% of Blocks mined
by a single miner/pool
per day
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
When DO Velvet Forks make sense?
• Build upon security properties of underlying chain
• No majority required
• Good examples:
• Virtualchain (Blockstack)
• Colored Coins / Overlay Protocols (e.g., Counterparty)
• Non-interactive Proofs of Proof-of-Work (NiPoPoWs)
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Can Velvet Forks Impact the Security of Legacy Miners?
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Security Implications
• Blocks may no longer have the same (economic) value to
upgraded (velvet) and legacy miners.
• Possible effects on double spending and selfish mining
• [Carlsten et al.,‘16] – Petty compliant miners and better timing of
selfish mining attacks in a block reward free model
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
What if …P2Pool were used by the majority of
miners?
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
What if …P2Pool were used by the majority of
miners?
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
What if …P2Pool were used by the majority of
miners?
Sufficient incentive to
discard the block / fork?
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
Questions?
Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999

Más contenido relacionado

Similar a Velvet Forks - Building on Bitcoin, Lisbon 2018

Similar a Velvet Forks - Building on Bitcoin, Lisbon 2018 (20)

Blockchain for Beginners
Blockchain for Beginners Blockchain for Beginners
Blockchain for Beginners
 
Circuitos Eléctricos por James S. Kang.pdf
Circuitos Eléctricos por James S. Kang.pdfCircuitos Eléctricos por James S. Kang.pdf
Circuitos Eléctricos por James S. Kang.pdf
 
Blockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchainsBlockchain 101 - public, tokenized blockchains
Blockchain 101 - public, tokenized blockchains
 
Introduction to Lightning Network
Introduction to Lightning NetworkIntroduction to Lightning Network
Introduction to Lightning Network
 
Photovoltaic kurdish
Photovoltaic kurdishPhotovoltaic kurdish
Photovoltaic kurdish
 
POA based Side-Chain Architecture
POA based Side-Chain ArchitecturePOA based Side-Chain Architecture
POA based Side-Chain Architecture
 
Overview of Blockchain Consensus Mechanisms
Overview of Blockchain Consensus MechanismsOverview of Blockchain Consensus Mechanisms
Overview of Blockchain Consensus Mechanisms
 
Bitcoins at Python for Quants NYC 2014
Bitcoins at Python for Quants NYC 2014Bitcoins at Python for Quants NYC 2014
Bitcoins at Python for Quants NYC 2014
 
Coin Center at EU Science and Technology Options Assessment Meeting Jan 25, 2015
Coin Center at EU Science and Technology Options Assessment Meeting Jan 25, 2015Coin Center at EU Science and Technology Options Assessment Meeting Jan 25, 2015
Coin Center at EU Science and Technology Options Assessment Meeting Jan 25, 2015
 
Bitcoin Explained
Bitcoin ExplainedBitcoin Explained
Bitcoin Explained
 
Upgrading the Bitcoin protocol - Simone Bronzini - Codemotion Rome 2018
Upgrading the Bitcoin protocol - Simone Bronzini - Codemotion Rome 2018Upgrading the Bitcoin protocol - Simone Bronzini - Codemotion Rome 2018
Upgrading the Bitcoin protocol - Simone Bronzini - Codemotion Rome 2018
 
Cbc brady-lockout tagout-catalog_2016
Cbc brady-lockout tagout-catalog_2016Cbc brady-lockout tagout-catalog_2016
Cbc brady-lockout tagout-catalog_2016
 
Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)
Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)
Proof-of-Stake & Its Improvements (San Francisco Bitcoin Devs Hackathon)
 
Zerocoin
ZerocoinZerocoin
Zerocoin
 
Overview of bitcoin
Overview of bitcoinOverview of bitcoin
Overview of bitcoin
 
OIF 2015 FOE Architecture Presentation
OIF 2015 FOE Architecture PresentationOIF 2015 FOE Architecture Presentation
OIF 2015 FOE Architecture Presentation
 
The Emergent Layer 2
The Emergent Layer 2The Emergent Layer 2
The Emergent Layer 2
 
Hp dv6 7000 goya balen 11254-3
Hp dv6 7000 goya balen 11254-3Hp dv6 7000 goya balen 11254-3
Hp dv6 7000 goya balen 11254-3
 
1.2 DTP-VTP.ppt
1.2 DTP-VTP.ppt1.2 DTP-VTP.ppt
1.2 DTP-VTP.ppt
 
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business ApplicationsEclipsecon Europe: Blockchain, Ethereum and Business Applications
Eclipsecon Europe: Blockchain, Ethereum and Business Applications
 

Último

Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
PirithiRaju
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
Areesha Ahmad
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
PirithiRaju
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptx
MohamedFarag457087
 

Último (20)

Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.Molecular markers- RFLP, RAPD, AFLP, SNP etc.
Molecular markers- RFLP, RAPD, AFLP, SNP etc.
 
Dubai Call Girls Beauty Face Teen O525547819 Call Girls Dubai Young
Dubai Call Girls Beauty Face Teen O525547819 Call Girls Dubai YoungDubai Call Girls Beauty Face Teen O525547819 Call Girls Dubai Young
Dubai Call Girls Beauty Face Teen O525547819 Call Girls Dubai Young
 
chemical bonding Essentials of Physical Chemistry2.pdf
chemical bonding Essentials of Physical Chemistry2.pdfchemical bonding Essentials of Physical Chemistry2.pdf
chemical bonding Essentials of Physical Chemistry2.pdf
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
 
Factory Acceptance Test( FAT).pptx .
Factory Acceptance Test( FAT).pptx       .Factory Acceptance Test( FAT).pptx       .
Factory Acceptance Test( FAT).pptx .
 
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
 
Introduction to Viruses
Introduction to VirusesIntroduction to Viruses
Introduction to Viruses
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
pumpkin fruit fly, water melon fruit fly, cucumber fruit fly
pumpkin fruit fly, water melon fruit fly, cucumber fruit flypumpkin fruit fly, water melon fruit fly, cucumber fruit fly
pumpkin fruit fly, water melon fruit fly, cucumber fruit fly
 
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptx
 
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and SpectrometryFAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
FAIRSpectra - Enabling the FAIRification of Spectroscopy and Spectrometry
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
 
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
 
Site Acceptance Test .
Site Acceptance Test                    .Site Acceptance Test                    .
Site Acceptance Test .
 

Velvet Forks - Building on Bitcoin, Lisbon 2018

  • 1. A Wild Velvet Fork Appears! Inclusive Blockchain Protocol Changes in Practice Alexei Zamyatin Building on Bitcoin 2018 HP Lv ???Velvet Fork HP Lv 530.041Bitcoin 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 2. Motivation • Bitcoin: dynamically changing set of pseudonymous participants • Random leader election process via Nakamoto consensus • Consensus rule changes require majority vote Ongoing debates on consensus changes in permissionless blockchains • BUT: Soft and hard forks are not the only way to add new features! Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 3. Soft vs. Hard Forks • Hard fork • Descriptor for changes incurring a permanent split of the blockchain • However: No majority  No chain split if (assuming econom. rational actors) • Soft Fork • Some level of compatibility preserved towards clients adhering to previous rules • However If majority of consensus participants is not upgraded  Permanent split Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 4. Soft vs. Hard Forks • Hard fork • Descriptor for changes incurring a permanent split of the blockchain • However: No majority  No chain split (assuming econom. rational actors) • E.g., a failed 2Mb blocks fork: upgraded miners consider old rules valid and follow the longer „legacy“ chain. New blocks continously discarded by legacy miners. • Soft Fork • Some level of compatibility preserved towards clients adhering to previous rules • However: If majority of consensus participants is not upgraded  Permanent split Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 5. Notation • Pre-agreed set of protocol rules 𝑷 • Validity set (𝑽) • Set of all blocks valid under rules 𝑷 • Block 𝒃 is valid under 𝑷 iff 𝒃 ∈ 𝑽 • Question: how does a protocol change 𝑷 → 𝑷′ affect consensus? • Changes to validity set denoted as 𝑵 Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 6. Mechanisms for Consensus Rule Changes See: (Short Paper) A Wild Velvet Fork Appears! Inclusive Blockchain Protocol Changes in Practice Alexei Zamyatin, Nicholas Stifter, Aljosha Judmayer, Philipp Schindler, Edgar Weippl and William J. Knottenbelt 5th Workshop on Bitcoin and Blockchain Research, Financial Cryptography and Data Security 18 Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 7. Velvet Forks • Rules applied conditionally • No majority agreement required Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 8. Velvet Forks • Rules applied conditionally • No majority agreement required • Never cause a permanent chain split* Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 9. Velvet-NON-Forks • Rules applied conditionally • No majority agreement required • Never cause a permanent chain split* Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 10. Mechanisms for Consensus Rule Changes (Cont’d) Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 11. Mechanisms for Consensus Rule Changes (Cont’d) *Except if conflicting rules are introduced by legacy miners  Essentially, ban adding data to transactions/blocks….Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 12. Velvet Forks in the Wild 2011 Merged Mining 2011 P2Pool 2013 Weak blocks 2012 Colored Coins / Overlay Protocols 2016 Virtualchain (Blockstack) 2017 NiPoPoWs  First mention of the term „Velvet Fork“ Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 13. P2Pool • Decentralized Mining pool • Weak/Near blocks used as pool „shares“ • Additional structure: “Sharechain” • New rules: • Payout scheme (coinbase TX outputs) • Prev. Share reference Source: A. Zamyatin, „Merged Mining: Analysis of Effects and Implications“, MSc Thesis, Vienna University of Technology, 2017 As seen by P2Pool miners: BTC block 1 PoW BTC block 2 PoW Share 3 PoW Share 2 PoW Share 1 PoW AAA AAA, BBB AAA, BBB, CCC PoW Dshare DBTC Performed proof-of-work Bitcoin block reference Address of a miner A Sharechain block reference AAA AAA, BBB, CCC, AAA.. Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 14. P2Pool • Decentralized Mining pool • Weak/Near blocks used as pool „shares“ • Additional structure: “Sharechain” • New rules: • Payout scheme (coinbase TX outputs) • Prev. Share reference As seen by other miners: BTC block 1 PoW BTC block 2 PoW PoW Dshare DBTC Performed proof-of-work Bitcoin block reference Address of a miner AAAA AAA, BBB, CCC, AAA.. Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999 Source: A. Zamyatin, „Merged Mining: Analysis of Effects and Implications“, MSc Thesis, Vienna University of Technology, 2017
  • 15. So, why wasn‘t SegWit deployed as a Velvet Fork? Or Bitcoin-NG? Or Extension Blocks? Or … Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 16. When Velvet Forks Don‘t Work • When rules need to be enforced across all participants (Or can lead to failures) Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 17. When Velvet Forks Don‘t Work • When rules need to be enforced across all participants SegWit, Bitcoin-NG, …  “Anyone-can-spend“ in the eyes of old clients (Or can lead to failures) Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 18. When Velvet Forks Don‘t Work • When rules need to be enforced across all participants SegWit, Bitcoin-NG, …  “Anyone-can-spend“ in the eyes of old clients • When honest majority is required for safety (Or can lead to failures) Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 19. When Velvet Forks Don‘t Work • When rules need to be enforced across all participants SegWit, Bitcoin-NG, …  “Anyone-can-spend“ in the eyes of old clients • When honest majority is required for safety Selfish mining / 51% attacks on P2Pool (Or can lead to failures) Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 20. An Attack on P2Pool . Assume: 5% of the hash rate in P2Pool Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 21. An Attack on P2Pool .. H1 H2 H3 Assume: 5% of the hash rate in P2Pool Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 22. An Attack on P2Pool . Assume: Attacker with 10% of overall hash rate . A H1 A A A A H2 H3 Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 23. An Attack on P2Pool . Assume: Attacker with 10% of overall hash rate . A H1 A A A A H2 H3 X Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 24. An Attack on P2Pool . Assume: Attacker with 10% of overall hash rate . A H1 A A A A H2 H3 H X Work of honest P2Pool miners H1,H2,H3 is lost! Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 25. Merged Mining: Effects of partial adoption Merged Mining: Curse of Cure? Judmayer, A. Zamyatin, N. Stifter, A.G. Voyiatzis and E. Weippl Data Privacy Management, Cryptocurrencies and Blockchain Technology. Springer, Cham, 2017. 316-333. % of Blocks mined by a single miner/pool per day Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 26. When DO Velvet Forks make sense? • Build upon security properties of underlying chain • No majority required • Good examples: • Virtualchain (Blockstack) • Colored Coins / Overlay Protocols (e.g., Counterparty) • Non-interactive Proofs of Proof-of-Work (NiPoPoWs) Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 27. Can Velvet Forks Impact the Security of Legacy Miners? Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 28. Security Implications • Blocks may no longer have the same (economic) value to upgraded (velvet) and legacy miners. • Possible effects on double spending and selfish mining • [Carlsten et al.,‘16] – Petty compliant miners and better timing of selfish mining attacks in a block reward free model Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 29. What if …P2Pool were used by the majority of miners? Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 30. What if …P2Pool were used by the majority of miners? Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 31. What if …P2Pool were used by the majority of miners? Sufficient incentive to discard the block / fork? Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999
  • 32. Questions? Alexei Zamyatin | 2F5F E92D CDAC 15B0 84A6 9FE9 9018 A958 5485 B999