Cryptographic Self-Selection is a subroutine used to select a leader for modern proof-of-stake consensus protocols, such as Algorand. In cryptographic self-selection, each round $r$ has a seed $Q_r$. In round $r$, each account owner is asked to digitally sign $Q_r$, hash their digital signature to produce a credential, and then broadcast this credential to the entire network. A publicly-known function scores each credential in a manner so that the distribution of the lowest scoring credential is identical to the distribution of stake owned by each account. The user who broadcasts the lowest-scoring credential is the leader for round $r$, and their credential becomes the seed $Q_{r+1}$. Such protocols leave open the possibility of a selfish-mining style attack: a user who owns multiple accounts that each produce low-scoring credentials in round $r$ can selectively choose which ones to broadcast in order to influence the seed for round $r+1$. Indeed, the user can pre-compute their credentials for round $r+1$ for each potential seed, and broadcast only the credential (among those with a low enough score to be the leader) that produces the most favorable seed.
We consider an adversary who wishes to maximize the expected fraction of rounds in which an account they own is the leader. We show such an adversary always benefits from deviating from the intended protocol, regardless of the fraction of the stake controlled. We characterize the optimal strategy; first by proving the existence of optimal positive recurrent strategies whenever the adversary owns last than $38\%$ of the stake. Then, we provide a Markov Decision Process formulation to compute the optimal strategy.
Post-Quantum VRF and its Applications in Future-Proof Blockchain System
可验证随机函数(Verifiable Random Function,简称VRF)是一种功能强大的伪随机函数,可以提供非交互式的公共可验证证明,以证明其输出的正确性。最近,VRF在区块链设计中找到了重要的应用,例如随机信标和权益证明共识协议。据我们所知,第一代区块链系统使用了固有的低效工作量证明共识,研究界试图通过提出权益证明方案来实现相同的属性,其中资源密集型工作量证明由加密构造来模拟。不幸的是,那些讨论最多的权益证明共识(例如,Algorand和Ouroborous家族)并不是面向未来的,因为构建模块只有在经典的硬假设下才是安全的;特别是,他们的设计忽略了量子计算的出现及其影响。在本文中,我们提出了一个通用的编译器,以获得后量子VRF从简单的VRF解决方案,使用密钥原语(例如,非交互式零知识系统)具有量子安全的内在属性。我们的新的解决方案是通过两个有效的零知识系统ZKBoo和ZKB++,分别实现,以验证编译器的正确性。我们的概念验证实施表明,即使在今天,我们的解决方案引入的开销在实际部署中也是可以接受的。我们还展示了量子安全VRF的潜在应用,例如量子安全分散随机信标和基于彩票的利益证明共识区块链协议。