Difference between revisions of "Bitcoin Wiki:Proof of work change hard fork"

From Bitcoin Wiki
Jump to: navigation, search
(Proof of work change hard fork)
 
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Purpose of proof of work
+
= Effects of a long anticipated PoW change =
To burn electricity in a way that is as efficient as humanly possible and easily verified.
+
If the PoW change takes place after enough notice
This shows how much cost was involved in presenting a set of transactions as valid.
+
to miners and specialized hardware makers
If that cost is high enough we can trust that the network was in agreement and that the cost of attempting an invalid transaction was also very high.
+
are able to switch without causing an accelerating
Because “blocks of transactions are chained together we can be more confident in older blocks that have had additional investment in electricity burn on top of them.
+
the obsolescence of hardware.
Problems we want to solve
 
Miner centralization
 
Accelerate mining hardware commoditization.
 
Proposal to change PoW unexpectedly (one time).
 
This would cause all existing investors in mining hardware to suffer financial loss.
 
The more recent the investment the greater the loss because a recent investment would not have produced any income yet.
 
For example if someone invested 10B in a new chip design, but had not sold a single chip, that entire investment would be lost with a PoW change.
 
If someone invested 10B in in a chip design a year ago and had already earned 10B on that design, they would be at a break even.
 
  
Goals
+
= Effects of a single unexpected PoW change =
Increase commoditization of ASIC hardware.
+
Making a one-time change to proof of work
Hard fail. Opposite effect - less competition is the obvious result.
+
would have different effects
To increase the decentralization of mining. More miners spread out in more geographic locations owned and controlled by more individuals.
+
on different participants in the bitcoin ecosystem.  
Hard fail. With less commoditization of ASICs, a greater ability for a bad actor to invest in ASICs and dominate the hash rate will not be decentralized.
+
Here we are assuming that concerns over centralization
If the PoW was changed every month we *could* get less centralization, but at the cost of being completely open to attack by anyone willing to invest in the unprofitable business of specialty hardware.
+
of mining power
Long term counterproductive effects on ASIC manufacturing
+
and the behavior of miners has created enough concern
Companies that were about to invest in ASIC manufacturing would realize they would have suffered a greater loss than any other potential investment had they moved sooner.
+
to justify a proof of work change
100% loss on a chip design is unusual.
+
in order to destroy the economic value of
Anyone considering entrance into ASIC manufacturing would need to expect much higher profits than before to compensate for the risk that this would happen again.
+
all existing specialized mining hardware.
Anyone considering entrance into ASIC manufacturing would need to be more capitalized in order to be able to weather another proof of work change without being financially destroyed.
+
Proposals to modify proof of work so that the mining hardware
Competition among ASIC manufacturing would be reduced - Mining hardware creation would be more centralized
+
is not completely worthless, but less valuable
The rapid march towards commoditization, created by competition, would be slowed.
+
will have the same effects,
Bitcoin would be more vulnerable to an attacker investing into ASIC hardware for the purpose of attacking the network.
+
but in proportion to the economic value removed
 +
by the change to proof of work.
  
 +
== Specialized hardware makers in early stages of development ==
 +
If an specialized hardware maker has invested into developing
 +
hardware, but has not begun selling the hardware
 +
or earning bitcoin fees by mining himself,
 +
the entirety of his investment would be destroyed
 +
with a PoW change.
  
 +
This is true for both malicious and benevolent
 +
specialized hardware makers, but if it could be determined
 +
the ratio of malicious specialized hardware makers to benevolent specialized hardware makers
 +
it is possible that the change could be timed
 +
in order to have a greater impact on malicious makers.
  
Short term counterproductive effects on bitcoin mining
+
However, chip manufacturing is highly secretive,
The amount of electricity spent at the height of human efficiency would drop to 0%. This is the hash rate that matters.
+
and determining intent is very difficult
All existing bitcoin miners would be poorer in proportion to the newness of their equipment. Miners running equipment near end of life (bitmain?) would be affected the least.
+
(especially with brand new entrants).
Supporters of bitcoin would need to mine using inefficient equipment.
+
As a result of these, and other challenges,
An attacker, such as a corrupt government, could dominate the network by making an investment in ASICs that a private company would consider to risky (unprofitable).
+
no mechanism has been identified to reliably
 +
determine the ratio of malicious to benevolent
 +
specialized hardware maker investments that would be destroyed
 +
through a PoW change at a given point in time.
 +
 
 +
== Specialized hardware makers with products near end of life == 
 +
If an specialized hardware maker has made investments in hardware
 +
that is nearing obsolescence
 +
by the creation of more efficient hardware,
 +
they would actually benefit from a PoW change.
 +
 
 +
This is because their competitors would be harmed
 +
financially to the degree that they have investments
 +
that have not returned capital,
 +
whereas their own investments have already returned
 +
capital and are no longer producing additional revenue.
 +
 
 +
It may be easier to determine makers with products
 +
nearing end of life to avoid harming them with financial loss
 +
with a PoW change,
 +
but those makers are in the best position to know
 +
how they would be effected and when a change would be most helpful.
 +
And we still lack a mechanism for reliably determining their
 +
future intent.
 +
 
 +
== Miners with newer specialized hardware ==
 +
Miners will be financially damaged by a PoW change
 +
in proportion to the investments that they have made
 +
in mining hardware and facilities that will become
 +
unprofitable as a result of a PoW change.
 +
 
 +
Miners with the most recent investments,
 +
new competitors,
 +
would be harmed the most
 +
because they have not had the opportunity to earn
 +
mining rewards and fees using the new hardware.
 +
 
 +
== Miners with newer facilities investments ==
 +
It is possible that facilities could be reused
 +
since they are not directly effected by a PoW change,
 +
however cooling, electrical, and space requirements
 +
could be drastically effected with a PoW change.
 +
 
 +
To the degree to which these facilities are no longer
 +
as ideal, due to a PoW change,
 +
the miner will suffer financial loss.
 +
 
 +
The newest facilities will be the most likely
 +
to be optimally designed for the current generation
 +
of mining hardware,
 +
and therefore will be the most likely to suffer loss.
 +
 
 +
== Miners with older specialized hardware ==
 +
Miners with hardware nearing obsolescence
 +
would benefit from a PoW change.
 +
This is because their competitors,
 +
would be damaged financially
 +
(the best equipped competitors would be harmed the most)
 +
while they would not suffer financial loss.
 +
 
 +
== Physical and administrative centralization of bitcoin ==
 +
If a great majority of the existing mining hardware
 +
is under the control of a few people,
 +
or is physically located in a small number of places,
 +
a PoW change could result in greater decentralization
 +
(a larger number of individuals with administrative control
 +
and a larger number of physical locations).
 +
 
 +
This would be a security improvement
 +
because it would make
 +
physical attacks on the network
 +
and the individuals managing the network,
 +
more more difficult.
 +
 
 +
Unfortunately this is not guaranteed.
 +
 
 +
For example consider a large organization
 +
who's business is being disrupted by bitcoin.
 +
Before the PoW change they would have needed to
 +
make a large investment in hardware
 +
that is only useful
 +
as long as bitcoin maintains market value.
 +
 
 +
But after the PoW change they could use hardware
 +
that could be useful to their business,
 +
or resold later,
 +
to attack bitcoin.
 +
If this business maintains a large number of servers
 +
that are idle except during peak usage hours
 +
the costs are even lower.
 +
 
 +
In this example,
 +
and others,
 +
it is possible that mining could become more centralized
 +
after a PoW change.
 +
 
 +
The authors are unaware how to measure the likelihood
 +
of increased or decreased centralization immediately
 +
following a PoW change.
 +
 
 +
== Bitcoin's resistance to physical and administrative centralization ==
 +
Immediately after a PoW change
 +
it is possible that physical and administrative
 +
centralization would be reduced,
 +
however it would also make bitcoin specialized hardware soft.
 +
 
 +
Currently bitcoin mining equipment
 +
is operating at the height of human capability
 +
using 10 nm and below chipsets specifically designed
 +
to mine bitcoin as efficiently as possible.
 +
A PoW change would reduce bitcoin mining efforts
 +
to more generic, and less efficient, mining hardware.
 +
 
 +
As a result a well funded miner
 +
could invest in specialized hardware hardware
 +
and gain a disproportionate amount of control over the network.
 +
This is believed to be the source of
 +
centralization problems as of Q1 2018.
 +
 
 +
This illustrates the importance of reaching commoditization
 +
of state of the art hardware.
 +
Attackers would need to advance the state of the art
 +
of microprocessors,
 +
not just bitcoin miners,
 +
in order to obtain an advantage over the network.
 +
This is far more expensive
 +
and would be far more difficult
 +
to accomplish and maintain in secret.
 +
 
 +
 
 +
== Bitcoin's Resistance to malicious mining attacks ==
 +
 
 +
Changing the PoW would have
 +
three major effects on the networks resistance
 +
to malicious mining attacks.
 +
 
 +
First, an attacker could invest
 +
in mining hardware and gain a disproportionate
 +
amount of power of the network.
 +
So, while it is possible that the immediate effect
 +
of a PoW change would be physical and administrative decentralization,
 +
it would certainly make it much easier for a well funded
 +
attacker to create a high degree of centralization before executing his attack.
 +
 
 +
Second, it would lower the hardware cost
 +
involved in malicious mining attacks.
 +
For example an attacker could,
 +
rent hardware from a cloud server provider,
 +
such as Amazon EC3,
 +
for only long enough to execute his attack.
 +
This is far less expensive than purchasing hardware
 +
that will be less valuable in proportion to the success of the attack.
 +
 
 +
Finally, it would greatly increase the possibility
 +
of an attacker discovering a flaw in the PoW algorithm
 +
that would allow him to attack the network by faking work.
 +
Changing security critical components always
 +
introduce significant risk.
 +
The existing PoW algorithm has enjoyed
 +
the benefit of nearly a decade of attack and analysis,
 +
including the identification of vulnerabilities
 +
not discovered until after deployment.
 +
 
 +
== Speed of commoditization of cutting edge specialty hardware ==
 +
 
 +
After years of research and development
 +
bitcoin mining hardware is nearing,
 +
or at,
 +
state of the art with regard to chip design.
 +
 
 +
If profits continue of specialty hardware makers
 +
competition will increase,
 +
profit margins will decrease,
 +
and we will see commoditization of
 +
bitcoin mining hardware created using the
 +
height of human ability.
 +
 
 +
Changing the PoW algorithm would slow this achievement
 +
by several years.
 +
 
 +
 
 +
= Effects of the expectation of regular PoW changes =
 +
Creating the expectation of regular PoW changes
 +
would have effects in addition to the effects
 +
resulting from a one-off PoW change.
 +
 
 +
In this case the uncertainty created by the possibility
 +
that another PoW change would occur
 +
would be replaced by the reality that
 +
investing in specialized hardware would
 +
only be profitable if the cost of development
 +
could be recovered through sales or mining rewards
 +
before the next expected PoW change.
 +
 
 +
The motivation for creating this expectation
 +
is to discourage investment into specialized hardware
 +
and therefore to create a "more equal" competition
 +
among miners with generic and specialized hardware.
 +
 
 +
In the most extreme case the PoW changes would
 +
be so varied and often that
 +
specialized hardware,
 +
of any kind,
 +
would not be profitable.
 +
 
 +
== Specialized hardware makers ==
 +
In all cases specialty hardware makers would remain.
 +
If the variation of mining algorithms is
 +
expected to be great the speciality hardware makers
 +
could be employees of the miners themselves.
 +
Any changes to the mining algorithm at all
 +
would likely result in disk, memory, cooling or other requirements.
 +
Optimization of some form will always be present.
 +
 
 +
If the variation of the mining algorithm is
 +
expected to vary within a range of possibilities
 +
specialized mining hardware will simply focus on
 +
the optimal design to address that range of possible algorithms.
 +
 
 +
However this expectation would be successful
 +
at increasing the amount of uncertainty
 +
for speciality hardware makers
 +
beyond a one-time PoW change.
 +
As a result there will be fewer competitors
 +
all other things (namely profits) being equal.
 +
 
 +
The net effect of this is that while
 +
a one-off change would delay commoditization
 +
of state of the art specialty mining hardware,
 +
the expectation of regular changes to PoW,
 +
would prevent this from occurring as long as
 +
the expectation was maintained.
 +
 
 +
== Bitcoin miners ==
 +
Currently bitcoin miners are primarily concerned
 +
with obtaining cheap electricity
 +
and access to the best mining hardware available.
 +
 
 +
Labor costs are currently a minor expense,
 +
but if the PoW algorithm changes often
 +
this will be a greater portion of their expenses.
 +
This will result in mining operations tending
 +
to move to areas with cheaper labor costs.
 +
 
 +
Uncertainty is also increased because
 +
miners will need to account for obtaining
 +
speciality hardware more often (already a major risk),
 +
and maintaining security in more dangerous areas of the world,
 +
due to cheaper labor.
 +
Income will also be less certain
 +
as some miners will be better equipped for the next PoW change than others.
 +
 
 +
As a result miners will invest less
 +
into securing the bitcoin network
 +
all other things equal.
 +
 
 +
== Physical and administrative centralization of bitcoin ==
 +
While it is possible this expectation
 +
would result in greater administrative and
 +
physical decentralization of bitcoin mining,
 +
as in the case of a one-off change,
 +
it is by no means guaranteed,
 +
and we lack a way to determine the likelihood
 +
that it will be an improvement.
 +
 
 +
== Bitcoin's resistance to physical and administrative centralization ==
 +
By ensuring that hardware is never commoditized
 +
we have ensured that the economic incentives
 +
of benevolent actors
 +
are not strong enough to result in
 +
securing the network with the most efficient equipment possible,
 +
but we have not ensured that malicious actors will not
 +
developed more efficient hardware
 +
to create the centralized control required for an attack.  
 +
 
 +
== Bitcoin's Resistance to malicious mining attacks ==
 +
When the best hardware is not profitable
 +
only the bad guys will have specialty hardware.
 +
 
 +
An attacker could invest
 +
in mining hardware and gain an even greater
 +
amount of power of the network
 +
than would be possible after a one-time PoW change.
 +
 
 +
 
 +
== Additional attack vectors ==
 +
In addition to amplifying the problems
 +
that would be created by a single PoW change,
 +
regular PoW changes would introduce at least
 +
three major attack vectors.
 +
 
 +
First, any miner with inside information
 +
on the next PoW algorithm would be able to
 +
optimize his operation more than his competitors.
 +
This creates a strong incentive to build political
 +
relationships with bitcoin developers and researchers.
 +
An attacker could use inside information to gain
 +
an disproportionate advantage,
 +
especially if he could influence the decision process.
 +
 
 +
Second, an attacker could deceive users about
 +
the amount of work used to secure the network.
 +
Currently the PoW algorithm is very simple
 +
and therefore very easy to understand and verify.
 +
If a large number of PoW algorithms are used
 +
verification of work would be exponentially more difficult.
 +
 
 +
Third, it the possibility
 +
of an attacker discovering a flaw in the PoW algorithm
 +
is greatly increased.
 +
Regularly changing the PoW algorithm would be very dangerous
 +
and virtually guarantee that the algorithm is not
 +
reviewed enough to prevent security flaws from being implemented
 +
in production.

Latest revision as of 17:31, 10 March 2018

Effects of a long anticipated PoW change

If the PoW change takes place after enough notice to miners and specialized hardware makers are able to switch without causing an accelerating the obsolescence of hardware.

Effects of a single unexpected PoW change

Making a one-time change to proof of work would have different effects on different participants in the bitcoin ecosystem. Here we are assuming that concerns over centralization of mining power and the behavior of miners has created enough concern to justify a proof of work change in order to destroy the economic value of all existing specialized mining hardware. Proposals to modify proof of work so that the mining hardware is not completely worthless, but less valuable will have the same effects, but in proportion to the economic value removed by the change to proof of work.

Specialized hardware makers in early stages of development

If an specialized hardware maker has invested into developing hardware, but has not begun selling the hardware or earning bitcoin fees by mining himself, the entirety of his investment would be destroyed with a PoW change.

This is true for both malicious and benevolent specialized hardware makers, but if it could be determined the ratio of malicious specialized hardware makers to benevolent specialized hardware makers it is possible that the change could be timed in order to have a greater impact on malicious makers.

However, chip manufacturing is highly secretive, and determining intent is very difficult (especially with brand new entrants). As a result of these, and other challenges, no mechanism has been identified to reliably determine the ratio of malicious to benevolent specialized hardware maker investments that would be destroyed through a PoW change at a given point in time.

Specialized hardware makers with products near end of life

If an specialized hardware maker has made investments in hardware that is nearing obsolescence by the creation of more efficient hardware, they would actually benefit from a PoW change.

This is because their competitors would be harmed financially to the degree that they have investments that have not returned capital, whereas their own investments have already returned capital and are no longer producing additional revenue.

It may be easier to determine makers with products nearing end of life to avoid harming them with financial loss with a PoW change, but those makers are in the best position to know how they would be effected and when a change would be most helpful. And we still lack a mechanism for reliably determining their future intent.

Miners with newer specialized hardware

Miners will be financially damaged by a PoW change in proportion to the investments that they have made in mining hardware and facilities that will become unprofitable as a result of a PoW change.

Miners with the most recent investments, new competitors, would be harmed the most because they have not had the opportunity to earn mining rewards and fees using the new hardware.

Miners with newer facilities investments

It is possible that facilities could be reused since they are not directly effected by a PoW change, however cooling, electrical, and space requirements could be drastically effected with a PoW change.

To the degree to which these facilities are no longer as ideal, due to a PoW change, the miner will suffer financial loss.

The newest facilities will be the most likely to be optimally designed for the current generation of mining hardware, and therefore will be the most likely to suffer loss.

Miners with older specialized hardware

Miners with hardware nearing obsolescence would benefit from a PoW change. This is because their competitors, would be damaged financially (the best equipped competitors would be harmed the most) while they would not suffer financial loss.

Physical and administrative centralization of bitcoin

If a great majority of the existing mining hardware is under the control of a few people, or is physically located in a small number of places, a PoW change could result in greater decentralization (a larger number of individuals with administrative control and a larger number of physical locations).

This would be a security improvement because it would make physical attacks on the network and the individuals managing the network, more more difficult.

Unfortunately this is not guaranteed.

For example consider a large organization who's business is being disrupted by bitcoin. Before the PoW change they would have needed to make a large investment in hardware that is only useful as long as bitcoin maintains market value.

But after the PoW change they could use hardware that could be useful to their business, or resold later, to attack bitcoin. If this business maintains a large number of servers that are idle except during peak usage hours the costs are even lower.

In this example, and others, it is possible that mining could become more centralized after a PoW change.

The authors are unaware how to measure the likelihood of increased or decreased centralization immediately following a PoW change.

Bitcoin's resistance to physical and administrative centralization

Immediately after a PoW change it is possible that physical and administrative centralization would be reduced, however it would also make bitcoin specialized hardware soft.

Currently bitcoin mining equipment is operating at the height of human capability using 10 nm and below chipsets specifically designed to mine bitcoin as efficiently as possible. A PoW change would reduce bitcoin mining efforts to more generic, and less efficient, mining hardware.

As a result a well funded miner could invest in specialized hardware hardware and gain a disproportionate amount of control over the network. This is believed to be the source of centralization problems as of Q1 2018.

This illustrates the importance of reaching commoditization of state of the art hardware. Attackers would need to advance the state of the art of microprocessors, not just bitcoin miners, in order to obtain an advantage over the network. This is far more expensive and would be far more difficult to accomplish and maintain in secret.


Bitcoin's Resistance to malicious mining attacks

Changing the PoW would have three major effects on the networks resistance to malicious mining attacks.

First, an attacker could invest in mining hardware and gain a disproportionate amount of power of the network. So, while it is possible that the immediate effect of a PoW change would be physical and administrative decentralization, it would certainly make it much easier for a well funded attacker to create a high degree of centralization before executing his attack.

Second, it would lower the hardware cost involved in malicious mining attacks. For example an attacker could, rent hardware from a cloud server provider, such as Amazon EC3, for only long enough to execute his attack. This is far less expensive than purchasing hardware that will be less valuable in proportion to the success of the attack.

Finally, it would greatly increase the possibility of an attacker discovering a flaw in the PoW algorithm that would allow him to attack the network by faking work. Changing security critical components always introduce significant risk. The existing PoW algorithm has enjoyed the benefit of nearly a decade of attack and analysis, including the identification of vulnerabilities not discovered until after deployment.

Speed of commoditization of cutting edge specialty hardware

After years of research and development bitcoin mining hardware is nearing, or at, state of the art with regard to chip design.

If profits continue of specialty hardware makers competition will increase, profit margins will decrease, and we will see commoditization of bitcoin mining hardware created using the height of human ability.

Changing the PoW algorithm would slow this achievement by several years.


Effects of the expectation of regular PoW changes

Creating the expectation of regular PoW changes would have effects in addition to the effects resulting from a one-off PoW change.

In this case the uncertainty created by the possibility that another PoW change would occur would be replaced by the reality that investing in specialized hardware would only be profitable if the cost of development could be recovered through sales or mining rewards before the next expected PoW change.

The motivation for creating this expectation is to discourage investment into specialized hardware and therefore to create a "more equal" competition among miners with generic and specialized hardware.

In the most extreme case the PoW changes would be so varied and often that specialized hardware, of any kind, would not be profitable.

Specialized hardware makers

In all cases specialty hardware makers would remain. If the variation of mining algorithms is expected to be great the speciality hardware makers could be employees of the miners themselves. Any changes to the mining algorithm at all would likely result in disk, memory, cooling or other requirements. Optimization of some form will always be present.

If the variation of the mining algorithm is expected to vary within a range of possibilities specialized mining hardware will simply focus on the optimal design to address that range of possible algorithms.

However this expectation would be successful at increasing the amount of uncertainty for speciality hardware makers beyond a one-time PoW change. As a result there will be fewer competitors all other things (namely profits) being equal.

The net effect of this is that while a one-off change would delay commoditization of state of the art specialty mining hardware, the expectation of regular changes to PoW, would prevent this from occurring as long as the expectation was maintained.

Bitcoin miners

Currently bitcoin miners are primarily concerned with obtaining cheap electricity and access to the best mining hardware available.

Labor costs are currently a minor expense, but if the PoW algorithm changes often this will be a greater portion of their expenses. This will result in mining operations tending to move to areas with cheaper labor costs.

Uncertainty is also increased because miners will need to account for obtaining speciality hardware more often (already a major risk), and maintaining security in more dangerous areas of the world, due to cheaper labor. Income will also be less certain as some miners will be better equipped for the next PoW change than others.

As a result miners will invest less into securing the bitcoin network all other things equal.

Physical and administrative centralization of bitcoin

While it is possible this expectation would result in greater administrative and physical decentralization of bitcoin mining, as in the case of a one-off change, it is by no means guaranteed, and we lack a way to determine the likelihood that it will be an improvement.

Bitcoin's resistance to physical and administrative centralization

By ensuring that hardware is never commoditized we have ensured that the economic incentives of benevolent actors are not strong enough to result in securing the network with the most efficient equipment possible, but we have not ensured that malicious actors will not developed more efficient hardware to create the centralized control required for an attack.

Bitcoin's Resistance to malicious mining attacks

When the best hardware is not profitable only the bad guys will have specialty hardware.

An attacker could invest in mining hardware and gain an even greater amount of power of the network than would be possible after a one-time PoW change.


Additional attack vectors

In addition to amplifying the problems that would be created by a single PoW change, regular PoW changes would introduce at least three major attack vectors.

First, any miner with inside information on the next PoW algorithm would be able to optimize his operation more than his competitors. This creates a strong incentive to build political relationships with bitcoin developers and researchers. An attacker could use inside information to gain an disproportionate advantage, especially if he could influence the decision process.

Second, an attacker could deceive users about the amount of work used to secure the network. Currently the PoW algorithm is very simple and therefore very easy to understand and verify. If a large number of PoW algorithms are used verification of work would be exponentially more difficult.

Third, it the possibility of an attacker discovering a flaw in the PoW algorithm is greatly increased. Regularly changing the PoW algorithm would be very dangerous and virtually guarantee that the algorithm is not reviewed enough to prevent security flaws from being implemented in production.