- 专利标题: METHOD AND APPARATUS FOR GENERATING RANDOM NUMBERS IN BLOCKCHAIN
-
申请号: EP22762599.3申请日: 2022-03-03
-
公开(公告)号: EP4304131A1公开(公告)日: 2024-01-10
- 发明人: MU, Changchun , DI, Gang , QIAN, Youcai , CHEN, Qingjie , DU, Jinzhao
- 申请人: Digital Currency Institute, The People's Bank of China
- 申请人地址: CN Beijing 100071 Floor 20, Building A, Jintang Center 18 Fengtai North Road, Fengtai District
- 代理机构: Studio Torta S.p.A.
- 优先权: CN202110233212 20210303
- 国际公布: WO2022184137 20220909
- 主分类号: H04L9/08
- IPC分类号: H04L9/08 ; H04L9/06 ; H04L9/32
摘要:
The present disclosure mainly relates to the technical field of computers, and in particular to a method and apparatus for generating a random number in a blockchain. In a specific embodiment, the method includes: a first random number and a first digest value of the first random number are locally generated by a first node in a blockchain; the first node submits the first digest value to a smart contract; the smart contract broadcasts a first service, so that at least one blockchain node submits participation information about the first service; the smart contract determins a second node from the at least one blockchain node based on the order of submitting the participation information; when the first service ends, the first node submits the first random number to the smart contract; when the smart contract verifies that the first random number corresponds to the first digest value, the smart contract generates a second random number based on a second digest value of the second node and the first random number; and a second service is started based on the second random number. The embodiment improves the reliability of the random number, thereby ensuring the fairness of service results.
信息查询