Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for generating random number on block chain with first execution and second consensus

A random number and blockchain technology, applied in the blockchain field, can solve problems such as the inability to guarantee that user results are submitted to the consensus on the chain

Pending Publication Date: 2022-04-29
HANGZHOU RIVTOWER TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

On the other hand, if the random result is known or predictable before the consensus, there is no guarantee that the user will submit the result to the on-chain consensus if the random result is unfavorable to the user

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 number on block chain with first execution and second consensus
  • Method and device for generating random number on block chain with first execution and second consensus
  • Method and device for generating random number on block chain with first execution and second consensus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0042] see figure 1 , shows a flow chart of the steps of a method for generating random numbers on the block chain that is used for execution first and then consensus according to an embodiment of the present invention, including the following steps:

[0043] S10, receiving the transaction sent by the user to several endorsement nodes requesting endorsement;

[0044] S20, the endorsement node replaces the random number to be read during the trans...

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 random number generation method and device on a block chain for execution first and consensus later. The method comprises the following steps: receiving a transaction which is sent by a user to a plurality of endorsement nodes and requests endorsement; the endorsement node replaces a random number to be read during transaction simulation execution with a placeholder, generates a read-write set expressed by the placeholder, signs the read-write set and returns the signed read-write set as an endorsement result; after the user receives the signature of the read-write set given by the endorsement node set meeting the endorsement strategy requirement, the signature of the transaction, the signature of the read-write set and the signature of the endorsement node are sent to the consensus node; after the consensus node sorting is completed, the transaction endorsement is packaged into blocks to be delivered to the execution node for execution; and during execution of the execution node, determining the value of the random number, replacing the placeholder with the value of the random number, solving the value of the placeholder expression, and writing the value into the block chain state.

Description

technical field [0001] The invention belongs to the technical field of block chains, and in particular relates to a method and device for generating random numbers on block chains that are used for execution first and then consensus. Background technique [0002] In an execution-then-consensus blockchain like Hyperledger Fabric, calls to on-chain smart contracts are done through transaction endorsements. Specifically, it generally includes the following steps: [0003] The user sends the transaction called by the smart contract to multiple endorsement nodes on the chain to request endorsement; [0004] After the endorsement node receives the transaction, it simulates the execution of the transaction according to the state of the current chain, signs the transaction execution result (read and write status) and returns it to the user to complete the endorsement; [0005] After the user collects enough transaction endorsements that meet the requirements on the chain and have ...

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): G06F7/58G06Q40/04
CPCG06F7/588G06Q40/04
Inventor 王晓亮王福音
Owner HANGZHOU RIVTOWER TECH CO LTD
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