Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for determining random number in blockchain, electronic device, and storage medium

A technology for determining methods and random numbers, applied in the field of blockchain, can solve problems such as low security and achieve the effect of improving security

Inactive Publication Date: 2019-07-02
北京乐蜜科技有限责任公司
View PDF6 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Obviously, the results of the current random number determination can be predicted, and the security is very low

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 apparatus for determining random number in blockchain, electronic device, and storage medium
  • Method and apparatus for determining random number in blockchain, electronic device, and storage medium
  • Method and apparatus for determining random number in blockchain, electronic device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0120] As an implementation manner of the embodiment of the present invention, the above-mentioned random number seed determination module 520 may include:

[0121] The current block information acquisition unit ( Figure 5 not shown in ), used to obtain the current block information in the blockchain;

[0122] The random number seed determination unit ( Figure 5 not shown in ), used to calculate and obtain a random number seed according to a preset encryption algorithm based on the current block information.

[0123] As an implementation manner of the embodiment of the present invention, the above-mentioned device may also include:

[0124] Time interval acquisition module ( Figure 5 Not shown in ), used to obtain the time interval of block generation in the block chain before the timing detection whether a new action record is generated;

[0125] The time period determination module ( Figure 5 not shown in ), for determining a time period based on the time interval, ...

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 embodiment of the invention provides a method and apparatus for determining a random number in a blockchain, an electronic device, and a storage medium. The method includes the following steps that: whether a new action record is generated is detected regularly, wherein the action record is action information that is recorded when a user performs an action in the blockchain; if so, a random number seed is determined; and according to the random number seed, a random number corresponding to the new action record is determined. The electronic device detects whether a new action record is generated regularly and a phenomenon that the random number is determined immediately when the user performs the action is avoided; and thus because the regular detection cycle is unknown and can be changed, the determined random number result can not be predicted conveniently, so that the safety is improved.

Description

technical field [0001] The present invention relates to the technical field of block chains, in particular to a method, device, electronic equipment and storage medium for determining random numbers in block chains. Background technique [0002] In recent years, blockchain technology has risen rapidly. In transactions in blockchain and various decentralized applications based on blockchain technology, random numbers are an indispensable part, and random numbers directly affect the results of various operations. . The random number is generally determined according to the random number seed and the preset algorithm, so the random number seed determines the determined random number result. [0003] In the blockchain, after the user performs an operation, a random number will be determined immediately. The current way is to use the information of the current block as the random number seed. However, since the generation speed of blocks in the blockchain is fixed, the random ...

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): G07C15/00
CPCG07C15/006
Inventor 詹孟学
Owner 北京乐蜜科技有限责任公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products