Blockchains based on a reusable resource (such as proof-of-stake or proof-of-space) are not as secure as those based on proof-of-work. Specifically, they are vulnerable to long-range attacks (LRA), where an adversary can create a long fork very cheaply.
Long-range attacks rely on the inability of a user who disconnects from the system at time
In a PoS system, where the creation of blocks is costless and timeless, these validators could create a fork that starts from the past (i.e., at time
With project Pikachu, we propose to design a checkpointing mechanism that leverages the security of proof-of-work blockchains by anchoring the state of the Filecoin chain onto the Bitcoin blockchain. In the case of long-range attacks, the Bitcoin chain can be used to determine the honest chain. We present our current design below before explaining its limitations and some associated open problems. In short, we came up with a design that leverages Schnorr threshold signatures supported by the 2021 Bitcoin Taproot upgrade. However, we still need to scale the solution to accommodate PoS and related weighted consensus protocols (such as Filecoin's Expected Consensus), which feature possibly thousands of miners/validators.
We designed a solution to LRA, inspired by Steinhoff et al. (who showed how to do this on Ethereum (Eth 1.0)) using Bitcoin's PoW, as Ethereum is moving to proof-of-stake. The implementation and design of such a scheme on Bitcoin is more challenging than the implementation on Eth 1.0 of Steinhoff et al. because Bitcoin's expressivity is considerably more limited. Besides, the approach designed by Steinhoff et al. leverages multi-signatures for anchoring, which can quickly bloat the transaction size, making it, at worst, impossible to anchor PoS networks with a large number of validators, and, at best, very costly to do so.
Our approach to addressing this constraint is to use the capabilities enabled by the recent Taproot upgrade to Bitcoin, which allows for more efficient Schnorr threshold signatures. As Bitcoin does not allow for stateful smart contracts, we instead use an aggregated public key to represent the set of validators in the PoS system. When the set changes, the aggregated key must be updated in the Bitcoin blockchain. This is done by having a transaction transfer the funds associated with the aggregated key of the previous validators to the new aggregated key. Instead of having each validator send a transaction to the Bitcoin network, this transaction is signed interactively, off-chain, and all the signatures are aggregated into one constant-size signature.
We note that since our work is based on Schnorr threshold signatures and uses Bitcoin's Taproot, it could be of independent interest to any project looking to implement large-scale threshold signing transactions on Bitcoin (for example, sidechains).
Each configuration
We choose to tweak the internal key using a commitment to the PoS chain (i.e., the hash of the state of the PoS blockchain), i.e., we have:
Configuration
This key is then tweaked using a commitment
Note that only the tweaked key will appear on the blockchain, and so the hash
To update the configuration from
Since we assume that online validators can distinguish an LRA chain, it is enough to have the transaction signed by
In addition to the transfer of coins from
This identifier is useful when a user does not have access to the right PoS chain (i.e., does not have the correct value for
The transaction updating the configuration will look as follows:
The approach presented above is limited mainly due to the high communication cost of the threshold DKG, where each participant must share a secret with the rest. This limitation is even more severe when considering a non-flat model, where a participant must hold a number of keys proportional to their amount of stake/power in the system. With a blockchain like Filecoin, we could quickly end up with hundreds of thousands or even millions of keys. This solution is hence not viable for large blockchains. We are thus interested in developing a solution that could scale to up to 500k keys or that can incorporate the power (weight) of participants without dramatically increasing the number of keys and scale to up to 10k (weighted) participants.
Although scalable threshold DKG and signatures schemes have recently been proposed, none of them are currently compatible with Bitcoin (e.g. BLS signature, Mithril). Solving the following open problems would help scale our solution to thousands or millions of nodes:
- Non-interactive DKG compatible with Schnorr threshold signing schemes on the secp256k1 curve and scalable to 500k keys.
- Threshold DKG and Schnorr signing schemes on the secp256k1 curve that incorporate the weight of participants and scale to 10k nodes.
- Parallelized DKG: sort the participants into different subgroups of the same "size" (i.e., power) and have them compute a DKG inside their subgroup, then merge the keys of all the subgroups; this approach is an open problem as the interactions between subgroups to compute the final threshold key would be highly complex.
- Efficient share aggregation: aggregate the shares associated with one participant, such that the complexity of our protocol is quadratic in the number of participants and not the number of "unit of power" (i.e., moving from a flat to a non-flat model should not significantly increase the communication complexity of the algorithm); some shares can currently be aggregated but not to the point of being equivalent to a flat model.
- Sampling: similar to the approach used in Mithril, one could elect a subset of the participants to perform the signing instead of having everyone contribute; the issue with this approach is that, in our case, the sample elected to perform the signing must be known ahead of time (as they need to compute the DKG beforehand) and hence could be corrupted by an adversary prior to the signature. This is unlike the approach in Mithril, where the sample elected is revealed at the time of creating the signature.
The goal of this RFP is to fund research that addresses one or more of the open problems above while meeting the requirements/constraints of the overall project and driving progress towards the goals. Proposals should seek to maintain compatibility with portions of the solution that they do not replace or improve upon.
Rolling: we will be reviewing applications in batches corresponding to calendar months. The call will close on September 30, 2022, or earlier if awarded.
A team of one PhD or postdoctoral researcher supported by one PI should be appropriate for the technical depth of the work, but we will consider other proposals.
Commensurate with scope, up to USD 100k per award. We will generally consider projects lasting up to one year, but faster delivery (through scope restriction or parallelization) is highly prized.
60% upon award and 40% on completion (adjustable to accommodate institutional requirements).
@sa8. We encourage you to reach out to [email protected] or visit #consensus in the Filecoin Slack if you are considering applying or have any questions.
Please submit your proposal using our application management system at https://grants.protocol.ai/.
** Results are to be released as open-source under the Permissive License Stack (Dual License Apache-2 + MIT).