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

Random number generation method and device for block chain, equipment and storage medium

A random number and block chain technology, applied in random number generators, multi-program devices, etc., can solve problems such as poor credibility and insecure random numbers, and achieve the effect of improving credibility and security

Active Publication Date: 2019-05-14
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF9 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Because the random numbers of the traditional blockchain network are generated by centralized service agencies, the credibility is poor, and there are security holes, which lead to various insecure problems 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
  • Random number generation method and device for block chain, equipment and storage medium
  • Random number generation method and device for block chain, equipment and storage medium
  • Random number generation method and device for block chain, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] figure 1 It is a flow chart of a block chain random number generation method provided by Embodiment 1 of the present invention. This embodiment can be applied to the case where a block chain node processes a business transaction request that requires the use of random numbers, wherein the block chain node It can be a block generation node in the blockchain network; it can also be other nodes in the blockchain network, such as any node that currently does not have block generation authority.

[0039] The method can be executed by a block chain random number generating device or device configured in a block chain node, the device can be implemented in the form of hardware and / or software, and can be integrated into an electronic device carrying a block chain node The method specifically includes the following steps:

[0040] S101. Obtain and process a business transaction request, so as to add business transaction data to an initiation block.

[0041] Wherein, the busin...

Embodiment 2

[0068] figure 2 It is a flow chart of a random number generation method for a block chain provided by Embodiment 2 of the present invention. The method is based on the foregoing embodiments, and specifically gives when to receive the seed transaction request associated with the business transaction request and according to the seed transaction The seed string in the request is based on the specific situation of generating random numbers based on the set random algorithm. Such as figure 2 As shown, the method includes:

[0069] S201. Obtain and process a business transaction request to add business transaction data to an initiation block.

[0070] S202, if the business transaction request needs to use a random number, wait for a set number of block intervals until the result block generation period according to the block interval configured by the business transaction request or the block interval configured according to a preset rule.

[0071] Among them, the block interv...

Embodiment 3

[0083] image 3 It is a flow chart of a block chain random number generation method provided by Embodiment 3 of the present invention. This method is based on the foregoing embodiments, and specifically gives how to execute the block chain when the business transaction request is a request to initiate a transaction. The specifics of the random number generation method are introduced. Such as image 3 As shown, the method includes:

[0084] S301. Obtain and process a business transaction request to add business transaction data to an initiation block.

[0085] Optionally, the business transaction request in this embodiment is firstly a transaction initiation request. After the originator generates a transaction initiation request based on the business smart contract and initiation data, it sends the transaction initiation request to the blockchain network, and the blockchain network node (For example, a block generation node) receives the request for initiating a transaction...

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

Embodiments of the invention disclose a random number generation method and device for a block chain, equipment and a storage medium. When the method is executed by a block chain node, the method cancomprise the following steps: obtaining a business transaction request, and processing the business transaction request to add business transaction data into an initiating block; if the service transaction request needs to use a random number, receiving a seed transaction request associated with the service transaction request in a generation period of a result block; wherein the result block is asubsequent block of an initiating block, and the seed transaction request is provided by a service participant of the service transaction request; generating a random number based on a set random algorithm according to a seed character string in the seed transaction request; and generating a service processing result according to the random number and the service transaction request, and adding the service processing result to the result block. According to the technical scheme provided by the embodiment of the invention, the credibility of generating the block chain random number is improved, and the security of the random number is improved.

Description

technical field [0001] Embodiments of the present invention relate to computer data storage technology, and in particular to a block chain random number generation method, device, device and storage medium. Background technique [0002] Among the transaction requests processed by the blockchain network, some transaction requests need to generate random numbers during the processing process, and the transaction requests are processed based on the generated random numbers. [0003] In the prior art, when a block generating node needs to generate a random number, it can request a random number from a centralized service organization dedicated to generating random numbers, and then use the random number to complete transaction processing. [0004] Because the random numbers of the traditional blockchain network are generated by a centralized service organization, the credibility is poor, and there are security holes, which lead to various insecure problems in the generated rando...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F7/58G06F9/46
Inventor 荆博
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
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