Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for generating random numbers in block chain

A random number and blockchain technology, applied in the computer field, can solve problems such as cheating and low reliability of random numbers, and achieve the effect of avoiding cheating, avoiding the possibility of cheating, and ensuring fairness

Active Publication Date: 2021-06-04
THE PEOPLES BANK OF CHINA DIGITAL CURRENCY INST
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: the block producer can adjust the random number by adding or abandoning some transactions, that is to say, the block producer can adjust the random number during the random number generation process There is a possibility of cheating in , which leads to low confidence in the generated random numbers

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating random numbers in block chain
  • Method and device for generating random numbers in block chain
  • Method and device for generating random numbers in block chain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0061] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0062] It should be noted that, in the case of no conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.

[0063] figure 1 is a schematic diagram of the main steps of a method for generating random numbers in a blockchain according to an embodiment of the present invention.

[0064] Such as figur...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method and a device for generating random numbers in a block chain, and relates to the technical field of computers. A specific embodiment of the method comprises the steps that at least one block chain node generates a first random number and a first digest value of the first random number locally; within a first preset duration, the at least one block chain node submits the first digest value to a smart contract of the block chain; the at least one block chain node submits the first random number to the smart contract within a second preset duration started after timing of the first preset duration is ended; the smart contract verifies the received at least one first digest value and the first random number corresponding to the first digest value; a second random number is generated according to the successfully verified first random number; and the service is started according to the second random number. According to the embodiment, the credibility of the random number is improved, so that the fairness of a service result is ensured.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for generating random numbers in a block chain. Background technique [0002] Random numbers have many application scenarios in the blockchain, such as the generation of private keys and guessing applications. With the continuous development of the blockchain, the application of random numbers in the blockchain will continue to increase. Therefore, how to generate credible random numbers in the blockchain is very important for the security of assets in the blockchain and the fairness of applications. [0003] The random number generation method commonly used in the prior art is: the block producer uses the hash value of one or more blocks in the blockchain as its own random number seed to calculate the random number. [0004] In the process of realizing the present invention, the inventors found that there are at least the following problems in the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L9/08H04L29/06H04L29/08
CPCH04L9/0869H04L63/12H04L67/10
Inventor 穆长春狄刚钱友才陈庆接杜金钊
Owner THE PEOPLES BANK OF CHINA DIGITAL CURRENCY INST
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More