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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com