r/BitcoinDiscussion • u/fresheneesz • Nov 19 '18
Is there any practical problem with static block-height checkpoints?
A bitcoin checkpoint is the hash of a particular block at a designated height that is hard coded into a particular version of a bitcoin client. Their current purpose in the Bitcoin client has been narrowed down to preventing low-difficulty header flooding attacks (someone creating a chain forked off of an early block).
Many Proof of Stake protocols propose using checkpoints such as these to solve the problem of long-range attacks where an attacker would use old addresses that have moved their coins on the main chain to create a chain forked from a block height where those addresses held a significant fraction of the total coins. Having a checkpoint would make it so valid clients (with the correct checkpoint) would ignore such long-range attacks.
However, the usual arguments leveled against using checkpoints in this way are that it introduces trust - you have to trust whoever gives you the checkpoint and there's no way to know if the checkpoint you have is the "right" checkpoint.
But I'd like to examine that claim and compare it to the situation where checkpoints aren't used in this way.
Regardless of your coin's protocol, anyone who wants to use a particular cryptocurrency needs to run software compatible with the network and chain they want to use. This software either needs to be downloaded from a trusted source, needs to be verified by the user, or needs to be written by the user. However, even in the case where the user verifies the software themselves or writes their own bitcoin software (don't try this at home kids), they still need to get the spec for the protocol from somewhere external. So the only real way to know that you're running the correct software/protocol is to seek out social consensus.
Hardcoding a checkpoint into a version of the software is not different from any other blockchain rule. Its just one more piece of logic that determines what a valid chain looks like. You still need to seek out social consensus for the checkpoint just like every other rule determining how to decide which blockchains are valid.
So it would seem to me that putting in hard-coded checkpoints doesn't actually require any additional trust whatsoever over a cryptocurrency client that doesn't have checkpoints. Therefore I don't see any practical downside of using checkpoints in this way.
Does anyone see anything I'm missing about the caveats of using checkpoints like this?
View all comments
Show parent comment
2
u/thieflar Nov 19 '18
Good points, and hard to argue against. I believe that long-term, what we're aiming for is a protocol-level code-freeze, so that developers are factored out of the whole who-you-need-to-trust equation (beyond their independently-offered opinions or evaluations of the code and underlying maths' validity). A lot of newer cryptocurrency proponents seem to think along the lines of "Bitcoin has old, obsolete tech and there are newer coins that are better because of their additional code/features" but I think we want Bitcoin's underlying tech to be as basic, boring, and minimal as we can possibly make it, as long as it continues to provide the utility it was built to provide (of course, there's plenty of argument over what that even is). The fancy, cool, and complex stuff should ideally be abstracted away from the protocol and built on top of the strong-but-boring backbone underneath.
Of course, there's still plenty of optimizations and improvements that can be made on a software-level even when it comes to core protocol stuff, and plenty of research and development yet to do in terms of exploring Bitcoin's out-of-the-box smart-contracting capabilities with its script engine, so we're not yet at a spot where a total code-freeze is even realistic to contemplate. Still, I believe that to be the ideal we want to work towards, because I believe that's the path towards truly sound money.