作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2025, Vol. 51 ›› Issue (12): 221-231. doi: 10.19678/j.issn.1000-3428.0069318

• 网络空间安全 • 上一篇    下一篇

基于区块链的公开可验证秘密分享和分布式随机数协议

欧展荣1,2, 张亮1,2,*(), 吴星雨1,2, 马宇航1,2, 周航1,2   

  1. 1. 海南大学网络空间安全学院(密码学院), 海南 海口 570228
    2. 海南省Internet信息检索重点实验室(海南大学), 海南 海口 570228
  • 收稿日期:2024-01-29 修回日期:2024-07-14 出版日期:2025-12-15 发布日期:2024-10-10
  • 通讯作者: 张亮
  • 基金资助:
    国家自然科学基金青年科学基金项目(62302129); 海南大学科研启动金(KYQD22168)

Blockchain-based Publicly Verifiable Secret Sharing and Distributed Randomness Beacon Protocols

OU Zhanrong1,2, ZHANG Liang1,2,*(), WU Xingyu1,2, MA Yuhang1,2, ZHOU Hang1,2   

  1. 1. School of Cyberspace Security (School of Cryptology), Hainan University, Haikou 570228, Hainan, China
    2. Key Laboratory of Internet Information Retrieval of Hainan Province (Hainan University), Haikou 570228, Hainan, China
  • Received:2024-01-29 Revised:2024-07-14 Online:2025-12-15 Published:2024-10-10
  • Contact: ZHANG Liang

摘要:

分布式随机数在多个领域发挥着不可或缺的作用, 然而当前存在的一些分布式随机数协议仍存在优化的空间。区块链作为一种可信的分布式账本, 拥有可计算性、公开透明性和高度自治性的特性。提出一种基于区块链的公开可验证秘密分享(PVSS)方案, 实现秘密份额在区块链上的分发、验证和重构。相较于传统的PVSS方案, 该方案能够实现秘密份额的自动化验证。在此基础上, 提出一种分布式随机数协议, 并以一种流水线的形式对协议进行实现。对该协议进行性质分析和性能测试, 结果表明, 相比于单线程协议, 使用流水线形式的协议能够提升效率。该协议使参与者能够高效地生成具有抗偏向性、不可预测性、公开可验证性等特性的分布式随机数, 可以应用于电子彩票、车牌摇号、权益证明共识算法等场景。

关键词: 区块链, 分布式随机数, 智能合约, 公开可验证秘密分享, 自动化验证

Abstract:

Distributed random numbers play an indispensable role in multiple fields; however, existing distributed randomness beacon protocols can still be optimized. As a trusted distributed ledger, a blockchain has the characteristics of computability, transparency, and high autonomy. A Publicly Verifiable Secret Sharing (PVSS) scheme based on blockchain is proposed to distribute, verify, and reconstruct the shared secrets. Compared with traditional PVSS schemes, the proposed scheme can automatically verify the shared secrets. Accordingly, a distributed randomness beacon protocol is proposed and implemented in a pipeline form. Property analysis and performance testing of the protocol show that compared to single-threaded protocols, using pipeline-based protocols can improve efficiency. This protocol enables participants to efficiently generate distributed random numbers with characteristics such as anti-bias, unpredictability, and public verifiability, which can be applied to scenarios such as electronic lotteries, license plate lotteries, and proof-of-stake consensus algorithms.

Key words: blockchain, distributed random numbers, smart contract, Publicly Verifiable Secret Sharing (PVSS), automatic verification