CN112418856A - Number shaking method, device, block chain, equipment and computer storage medium - Google Patents

Number shaking method, device, block chain, equipment and computer storage medium Download PDF

Info

Publication number
CN112418856A
CN112418856A CN202011337714.3A CN202011337714A CN112418856A CN 112418856 A CN112418856 A CN 112418856A CN 202011337714 A CN202011337714 A CN 202011337714A CN 112418856 A CN112418856 A CN 112418856A
Authority
CN
China
Prior art keywords
shaking
block
number shaking
endorsement
intelligent contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011337714.3A
Other languages
Chinese (zh)
Inventor
徐锡平
曾林
易峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengcaiyun Co ltd
Original Assignee
Zhengcaiyun Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengcaiyun Co ltd filed Critical Zhengcaiyun Co ltd
Priority to CN202011337714.3A priority Critical patent/CN112418856A/en
Publication of CN112418856A publication Critical patent/CN112418856A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3827Use of message hashing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification

Abstract

The application discloses a number shaking method, a number shaking device, a block chain, equipment and a medium, wherein the number shaking block chain comprises a first endorsement node and a sequencing node corresponding to a number shaking system: the first endorsement node is to: receiving shaking information sent by a shaking system; based on a pre-deployed intelligent contract, number shaking is carried out according to number shaking information, and a transaction endorsement comprising number shaking process data and number shaking result data is generated; sending the transaction endorsement to a number shaking system so that the number shaking system transmits the transaction endorsement and number shaking information to a sequencing node; receiving a block generated by a sorting node; verifying the block, and recording the block after the verification is passed; returning the hash value of the block to a shaking number system; the sequencing node is used for generating a block based on the transaction endorsement and the shaking number information. This application has realized shaking numbers automatically with the help of the block chain, and can trace back the number shaking process with the help of the block chain to prevent that the number shaking result from being tampered with, the suitability is good.

Description

Number shaking method, device, block chain, equipment and computer storage medium
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for shaking numbers, a blockchain, a device, and a computer storage medium.
Background
At present, in order to ensure fairness, openness and justice of the serial number, before the serial number is organized, a notarization institution can review the software of the serial number, before the serial number is organized, the serial number software needs to be installed on a computer, the serial number data and configuration parameters of an input system are shot and recorded by a camera, and finally the serial number is sorted and filed to a notarization center. And in the number shaking process stage, a notarization institution is also required to participate in intervention, and number shaking data configuration and notarization recording in the number shaking process are carried out on site.
However, software auditing and field notarization work all need the staff of the notarization institution to participate in auditing and process recording, and the method has the disadvantages of large human resource consumption, low efficiency and poor applicability.
In summary, how to improve the applicability of the number shaking method is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a number shaking block chain which can solve the technical problem of improving the applicability of the number shaking method to a certain extent. The application also provides a number shaking method, a number shaking device, electronic equipment and a computer storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a rocker blockchain, comprising: a first endorsement node corresponding to the number shaking system; sequencing nodes:
the first endorsement node is to: receiving the shaking information sent by the shaking system; based on a pre-deployed intelligent contract, number shaking is carried out according to the number shaking information, and a transaction endorsement comprising number shaking process data and number shaking result data is generated; sending the transaction endorsement to the number shaking system so that the number shaking system transmits the transaction endorsement and the number shaking information to the sequencing node; receiving a block generated by the sorting node; verifying the block, and recording the block after the block is verified; returning the hash value of the block to the shaking system;
the sequencing node is configured to: generating the block based on the transaction endorsement and the shaking number information.
Preferably, the first endorsement node is further configured to: before receiving the number shaking information sent by the number shaking system, receiving intelligent contract installation information sent by the number shaking system; installing the intelligent contract based on the intelligent contract installation information;
the intelligent contract installation information comprises installation information generated after a supervision system passes an intelligent contract source code review and publicity which is sent by the number shaking system.
Preferably, the method further comprises the following steps: a second endorsement node corresponding to the supervisory system;
the second endorsement node is to: receiving a shaking number checking instruction which is sent by the monitoring system and carries the hash value; calling chain code QSCC, and determining the block based on the hash value; determining the transaction endorsement and the shake number information in the block and transmitting to the supervisory system.
Preferably, the first endorsement node is further configured to: after the hash value of the block is returned to the number shaking system, receiving a number shaking inquiry instruction which is sent by the number shaking system and carries the hash value; determining the block corresponding to the hash value through the intelligent contract; determining the pan result data in the block; and transmitting the shaking result data to the shaking system.
A number shaking method is applied to a first endorsement node corresponding to a number shaking system in a number shaking block chain and comprises the following steps:
receiving the shaking information sent by the shaking system;
based on a pre-deployed intelligent contract, number shaking is carried out according to the number shaking information, and a transaction endorsement comprising number shaking process data and number shaking result data is generated;
sending the transaction endorsement to the number shaking system so that the number shaking system transmits the transaction endorsement and the number shaking information to a sequencing node in the number shaking block chain;
receiving a block generated by the sorting node based on the transaction endorsement and the shaking number information;
verifying the block, and recording the block after the block is verified;
and returning the hash value of the block to the shaking system.
Preferably, before receiving the serial number shaking information sent by the serial number shaking system, the method further includes:
receiving intelligent contract installation information sent by the number shaking system;
installing the intelligent contract based on the intelligent contract installation information;
the intelligent contract installation information comprises installation information generated after a supervision system passes an intelligent contract source code review and publicity which is sent by the number shaking system.
Preferably, after the returning the hash value of the chunk to the hash system, the method further includes:
receiving a shaking inquiry instruction which is sent by the shaking system and carries the hash value;
determining the block corresponding to the hash value through the intelligent contract;
determining the pan result data in the block;
and transmitting the shaking result data to the shaking system.
The utility model provides a shake a number device, is applied to and shakes the first endorsement node that number system corresponds in the blockchain of number, includes:
the first receiving module is used for receiving the shaking information sent by the shaking system;
the first generation module is used for shaking numbers according to the shaking number information based on a pre-deployed intelligent contract and generating a transaction endorsement comprising shaking number process data and shaking number result data;
the first sending module is used for sending the transaction endorsement to the number shaking system so that the number shaking system transmits the transaction endorsement and the number shaking information to a sequencing node in the number shaking block chain;
the second receiving module is used for receiving a block generated by the sequencing node based on the transaction endorsement and the shaking number information;
the first recording module is used for verifying the block and recording the block after the block passes the verification;
and the first returning module is used for returning the hash value of the block to the shaking system.
An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the signature method as described in any one of the above when executing the computer program.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the pan method as defined in any one of the above.
The application provides a number shaking block chain, including first endorsement node, the sequencing node that number shaking system corresponds: the first endorsement node is to: receiving shaking information sent by a shaking system; based on a pre-deployed intelligent contract, number shaking is carried out according to number shaking information, and a transaction endorsement comprising number shaking process data and number shaking result data is generated; sending the transaction endorsement to a number shaking system so that the number shaking system transmits the transaction endorsement and number shaking information to a sequencing node; receiving a block generated by a sorting node; verifying the block, and recording the block after the verification is passed; returning the hash value of the block to a shaking number system; the sequencing node is used for generating a block based on the transaction endorsement and the shaking number information. In the application, the first endorsement node can be used for shaking numbers based on the intelligent contract according to the shaking number information to generate a transaction endorsement, and the transaction endorsement is transmitted to the sequencing node through a number shaking system; the sequencing node generates a corresponding block based on the transaction endorsement and the number shaking information, the first endorsement node records the block in the block chain after verification is passed, automatic number shaking is achieved by means of the block chain, the number shaking process can be traced back by means of the block chain, the number shaking result is prevented from being tampered, and the applicability is good. The number shaking method, the number shaking device, the electronic equipment and the computer readable storage medium solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a rocker block chain provided in an embodiment of the present application;
FIG. 2 is a rocking flow diagram of a rocking block chain in the present application;
FIG. 3 is a flow diagram of a rocker blockchain deployment intelligent contract;
FIG. 4 is a data verification flow diagram of a rocker blockchain;
FIG. 5 is a flowchart of a number shake result query for a number shake blockchain;
FIG. 6 is a first flowchart of a number shaking method provided by an embodiment of the present application;
FIG. 7 is a first flowchart of a number shaking method provided by an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, in order to ensure fairness, openness and justice of the serial number, before the serial number is organized, a notarization institution can review the software of the serial number, before the serial number is organized, the serial number software needs to be installed on a computer, the serial number data and configuration parameters of an input system are shot and recorded by a camera, and finally the serial number is sorted and filed to a notarization center. And in the number shaking process stage, a notarization institution is also required to participate in intervention, and number shaking data configuration and notarization recording in the number shaking process are carried out on site. However, software auditing and field notarization work all require the staff of the notarization institution to participate in auditing and process recording, and have large human resource consumption and low efficiency. And the whole number shaking process is recorded from the beginning of software auditing to the subsequent process, the period is very long, for example, the software auditing period of one time by a notarization institution is about 2 months, and the auditing is required to be initiated again every time the function is updated, so that the applicability is poor. The number shaking method provided by the application is good in applicability.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a rocker block chain according to an embodiment of the present application.
The shaking block chain provided by the embodiment of the application can comprise: a first endorsement node 11 corresponding to the number shaking system; the sequencing node 12:
the first endorsement node 11 is configured to: receiving shaking information sent by a shaking system; based on a pre-deployed intelligent contract, number shaking is carried out according to number shaking information, and a transaction endorsement comprising number shaking process data and number shaking result data is generated; sending the transaction endorsement to the number shaking system so that the number shaking system transmits the transaction endorsement and number shaking information to the sequencing node 12; receiving a block generated by a sorting node; verifying the block, and recording the block after the verification is passed; returning the hash value of the block to a shaking number system;
the sequencing node 12 is configured to: and generating a block based on the transaction endorsement and the shaking number information.
Referring to fig. 2, fig. 2 is a flowchart of the number shaking block chain in the present application.
In practical application, the number shaking system is also a system for generating corresponding number shaking information, the type of the number shaking system can be determined according to actual needs, and the number shaking information can comprise number shaking participant information, number shaking indexes, unique identification information of the number shaking and the like; after receiving the number shaking information sent by the number shaking system, the first endorsement node can generate a transaction endorsement comprising number shaking process data and number shaking result data according to the number shaking information based on an intelligent contract pre-deployed by the first endorsement node and send the transaction endorsement to the number shaking system so that the number shaking system transmits the transaction endorsement and the number shaking information to the sequencing node; the sequencing node generates a block based on the transaction endorsement and the number shaking information and sends the block to the first endorsement node, and in the process, the sequencing node can also send the block to other block chain nodes in the sequencing block chain for verification; the first endorsement node verifies the block, records the block after the block passes the verification, and returns the hash value of the block to the number shaking system, so that the number shaking system can search the block in the number shaking block chain based on the hash value, and further can search corresponding number shaking data corresponding to the block.
It should be noted that the rocking blockchain in the present application may be a blockchain built based on the Hyperridge Fabric technology; HyperLegridge Fabric is realized by an open source block chain, a main body code is compiled by Go, and the HyperLegridge Fabric supports intelligent contracts compiled by a plurality of programming languages and programming software, such as: the deployment environment can be a local area network or a public network, the deployment mode can be traditionally containerized, consensus achieves algorithm plug-in, and particularly provides a certificate system and an admission mechanism for enterprise-level alliance chain application scenes by using an enterprise-level security mechanism and MSP (Membership Service provider). The endorsement node in the application refers to a Peer node for deploying an intelligent contract, the requirement for data transaction endorsement in the member data chaining process in an organization is met through the intelligent contract, a plurality of endorsement nodes can be provided, a plurality of similar multiple nodes can be positioned in the same organization in a block chain, and the like, for example, a first endorsement node can be positioned in a number shaking organization; the intelligent contract is also called as chain code in Hyperhedger Fabric, and is a code program containing business function, and supports the compiling of multiple languages, in the Fabric, the endorsement node can install intelligent contract, the block link is connected into the transaction proposal submitted by the user, the transaction is executed virtually through the intelligent contract, the transaction endorsement is generated, and the transaction proposal is packaged into blocks through the sequencing service and distributed to other nodes, and the synchronization of transaction data is completed, in the application, the intelligent contract replaces the process code of shaking number; the sequencing node is also a node providing consensus sequencing service, and the consensus sequencing service is also a service for sequencing, packaging and synchronously distributing block for transaction data submitted by a client (application layer) and subjected to endorsement by an endorsement node in a Hyperridge Fabric block chain network, and is irrelevant to service.
The application provides a number shaking block chain, including first endorsement node, the sequencing node that number shaking system corresponds: the first endorsement node is to: receiving shaking information sent by a shaking system; based on a pre-deployed intelligent contract, number shaking is carried out according to number shaking information, and a transaction endorsement comprising number shaking process data and number shaking result data is generated; sending the transaction endorsement to a number shaking system so that the number shaking system transmits the transaction endorsement and number shaking information to a sequencing node; receiving a block generated by a sorting node; verifying the block, and recording the block after the verification is passed; returning the hash value of the block to a shaking number system; the sequencing node is used for generating a block based on the transaction endorsement and the shaking number information. In the application, the first endorsement node can be used for shaking numbers based on the intelligent contract according to the shaking number information to generate a transaction endorsement, and the transaction endorsement is transmitted to the sequencing node through a number shaking system; the sequencing node generates a corresponding block based on the transaction endorsement and the number shaking information, the first endorsement node records the block in the block chain after verification is passed, automatic number shaking is achieved by means of the block chain, the number shaking process can be traced back by means of the block chain, the number shaking result is prevented from being tampered, and the applicability is good.
Referring to fig. 3, fig. 3 is a flowchart of intelligent contract deployment for the rocking number blockchain.
In the number shaking block chain provided by the embodiment of the application, the first endorsement node can also be used for: before receiving the number shaking information sent by the number shaking system, receiving intelligent contract installation information sent by the number shaking system; installing an intelligent contract based on the intelligent contract installation information;
the intelligent contract installation information comprises installation information generated after the intelligent contract source code review and publicity sent by the number shaking system is passed by the supervision system.
In practical application, in the deployment process of the intelligent contract, the number shaking system may generate an intelligent contract source code and send the intelligent contract source code to the monitoring system, specifically, the number shaking system may code the number shaking process according to a number shaking rule, such as uniform random number shaking, weighted random number shaking, and the like, to generate an intelligent contract source code supported by the superhedger intelligent contract; the supervising system generates corresponding intelligent contract installation information after checking and disclosing the intelligent contract source code, and then sends the intelligent contract installation information to the number shaking system, specifically, the supervising system can disclose the intelligent contract source code to each number shaking participant, if all number shaking participants pass the intelligent contract source code, the intelligent contract source code is indicated to pass, then the supervising system can appoint the intelligent contract version number and name according to the intelligent contract source code, and add administrator signature and the like to generate the intelligent contract installation information, the intelligent contract version number is actually a character string, the intelligent contract has to be unique in the installation and deployment process on the endorsement node, namely, the repeated intelligent contract version number does not allow to be deployed on the endorsement node for the second time, and the intelligent contract version numbers running on all nodes can be ensured to be consistent due to the limitation of the HyperlerFadger framework, differentiated service codes cannot occur, so that the situations that the intelligent contract is tampered and covered are prevented; then the number shaking system sends the intelligent contract installation information to the first endorsement node; and finally, the first endorsement node deploys a corresponding intelligent contract on the first endorsement node based on the intelligent contract installation information.
It should be noted that in a specific application scenario, after the monitoring system generates the intelligent contract installation information, the second endorsement node corresponding to the monitoring system may install the intelligent contract according to the intelligent contract installation information, submit the deployment information of the intelligent contract as a transaction to the sequencing node, package the deployment information into a block, synchronize the block to other nodes, and complete deployment and update of the intelligent contract, so as to rapidly deploy the intelligent contract on the first endorsement node.
Referring to fig. 4, fig. 4 is a data checking flowchart of the rocking number block chain.
In the block chain of shaking numbers that this application embodiment provided, supervisory systems etc. probably need follow-up tracing back to the process of shaking numbers to judge whether the process of shaking numbers is just, in order to satisfy this demand of supervisory systems etc., can also include in the block of shaking numbers in this application: a second endorsement node 13 corresponding to the supervisory system;
the second endorsement node is to: receiving a shaking number checking instruction which is sent by a monitoring system and carries a hash value; calling a chain code QSCC, and determining a block based on the hash value; transaction endorsement and shaking number information is determined in the block and transmitted to the monitoring system.
That is, when the supervision system needs to trace back the number shaking process, the supervision system can send a number shaking check instruction carrying a hash value to a second endorsement node in the number shaking block chain; the second endorsement node responds to the instruction, calls a system chain code QSCC, determines a block based on the hash value, and determines transaction endorsement and number shaking information in the block to a monitoring system to realize the tracing of the number shaking process; and then the supervision system can judge whether the corresponding information published by the number shaking system is correct according to the number shaking information and the transaction endorsement, for example, judge whether the number shaking information searched by the supervision system and the corresponding information published by the transaction endorsement are consistent, if so, judge that the corresponding information published by the number shaking system is correct, and if not, judge that the corresponding information published by the number shaking system is incorrect, so as to judge whether the number shaking process is fair.
It should be noted that, unlike smart contracts (business function chain codes), the Hyperhedger Fabric technical framework provides 5 types of System chain codes, namely Life Cycle System Chaincode (LSCC), Query System Chaincode (QSCC), Configuration System Chaincode (CSCC), Endorser System Chaincode (ESCC), Validator System Chaincode (VSCC), which are used for chain code lifecycle management, block/transaction Query, channel Configuration management, transaction endorsement, and transaction verification, respectively, for a brief overview. In the application, the system chain code QSCC is required to be used for searching, analyzing and reading the data on the node account book block. The system chain code QSCC supports the inquiry of all process data contained in all transactions in a certain block or a specific transaction through the block height or the hash code of a single transaction, such as information containing endorsement node signature, calling intelligent contract name, version number of an intelligent contract, calling intelligent contract entry, reading and writing set and the like. The read-write set, namely the read-write set of the data on the block chain, is recorded in the read-write set (including the data version number) and combined with the write-in data in the execution process of the intelligent contract, and after the node receives the block, the read-write set of the transaction in the block can be verified and compared with the data of the node account book for verification, so that the intelligent contract is an important mechanism for preventing the transaction from being double-flower and multiple-flower by the Hyperhedger Fabric.
Referring to fig. 5, fig. 5 is a flowchart illustrating the query of the number shaking result of the number shaking block chain.
In the number shaking block chain provided by the embodiment of the application, the number shaking system and the like may need to check the corresponding information of the number shaking, and in order to meet the requirement of the user, the first endorsement node can be further used for: receiving a shaking inquiry instruction which is sent by a shaking system and carries a hash value; determining a block corresponding to the hash value through an intelligent contract; determining shaking number result data in the block; and transmitting the shaking result data to a shaking system.
Referring to fig. 6, fig. 6 is a first flowchart of a number shaking method according to an embodiment of the present application.
The number shaking method provided by the embodiment of the application is applied to a first endorsement node corresponding to a number shaking system in a number shaking block chain, and can comprise the following steps:
step S101: and receiving the shaking information sent by the shaking system.
Step S102: and based on the pre-deployed intelligent contract, carrying out number shaking according to the number shaking information to generate a transaction endorsement comprising number shaking process data and number shaking result data.
Step S103: and sending the transaction endorsement to the number shaking system so that the number shaking system transmits the transaction endorsement and the number shaking information to a sequencing node in the number shaking block chain.
Step S104: and receiving blocks generated by the sorting node based on the transaction endorsement and the shaking number information.
Step S105: the block is verified and recorded after verification passes.
Step S106: and returning the hash value of the block to the shaking system.
In the number shaking method provided by the embodiment of the application, before the first endorsement node receives the number shaking information sent by the number shaking system, the first endorsement node can also receive intelligent contract installation information sent by the number shaking system; installing an intelligent contract based on the intelligent contract installation information; the intelligent contract installation information comprises installation information generated after the intelligent contract source code review and publicity sent by the number shaking system is passed by the supervision system.
In the number shaking method provided by the embodiment of the application, after the hash value of the block is returned to the number shaking system by the first endorsement node, a number shaking query instruction carrying the hash value and sent by the number shaking system can be received; determining a block corresponding to the hash value through an intelligent contract; determining shaking number result data in the block; and transmitting the shaking result data to a shaking system.
The description of each step in the number shaking method provided by the present application may refer to the above embodiments, and is not repeated herein.
Referring to fig. 7, fig. 7 is a flowchart of a number shaking method according to an embodiment of the present application.
The number shaking device provided by the embodiment of the application is applied to a first endorsement node corresponding to a number shaking system in a number shaking block chain, and can comprise:
the first receiving module 101 is configured to receive the serial number shaking information sent by the serial number shaking system;
the first generation module 102 is used for carrying out number shaking according to the number shaking information based on a pre-deployed intelligent contract and generating a transaction endorsement comprising number shaking process data and number shaking result data;
the first sending module 103 is used for sending the transaction endorsement to the number shaking system so that the number shaking system transmits the transaction endorsement and the number shaking information to the sequencing node in the number shaking block chain;
a second receiving module 104, configured to receive a block generated by the sorting node based on the transaction endorsement and the number shaking information;
a first recording module 105, configured to verify the block and record the block after the block passes the verification;
the first returning module 106 is configured to return the hash value of the block to the hash system.
The number shaking device provided by the embodiment of the application is applied to a first endorsement node corresponding to a number shaking system in a number shaking block chain, and can further comprise:
the third receiving module is used for receiving the intelligent contract installation information sent by the number shaking system before the first receiving module receives the number shaking information sent by the number shaking system;
the first installation module is used for installing the intelligent contract based on the intelligent contract installation information;
the intelligent contract installation information comprises installation information generated after the intelligent contract source code review and publicity sent by the number shaking system is passed by the supervision system.
The number shaking device provided by the embodiment of the application is applied to a first endorsement node corresponding to a number shaking system in a number shaking block chain, and can further comprise:
the fourth receiving module is configured to, after the first returning module returns the hash value of the chunk to the serial number shaking system, further include: receiving a shaking inquiry instruction which is sent by a shaking system and carries a hash value;
the first determining module is used for determining a block corresponding to the hash value through an intelligent contract;
the second determining module is used for determining the shaking number result data in the block;
and the first transmission module is used for transmitting the shaking result data to the shaking system.
The application also provides an electronic device and a computer readable storage medium, which have corresponding effects of the number shaking method provided by the embodiment of the application. Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
An electronic device provided in an embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program:
receiving shaking information sent by a shaking system;
based on a pre-deployed intelligent contract, number shaking is carried out according to number shaking information, and a transaction endorsement comprising number shaking process data and number shaking result data is generated;
sending the transaction endorsement to a number shaking system so that the number shaking system transmits the transaction endorsement and number shaking information to a sequencing node in a number shaking block chain;
receiving a block generated by the sequencing node based on the transaction endorsement and the number shaking information;
verifying the block, and recording the block after the verification is passed;
and returning the hash value of the block to the shaking system.
An electronic device provided in an embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: before receiving the number shaking information sent by the number shaking system, receiving intelligent contract installation information sent by the number shaking system; installing an intelligent contract based on the intelligent contract installation information; the intelligent contract installation information comprises installation information generated after the intelligent contract source code review and publicity sent by the number shaking system is passed by the supervision system.
An electronic device provided in an embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: after the hash value of the block is returned to the number shaking system, receiving a number shaking inquiry instruction which is sent by the number shaking system and carries the hash value; determining a block corresponding to the hash value through an intelligent contract; determining shaking number result data in the block; and transmitting the shaking result data to a shaking system.
Referring to fig. 9, another electronic device provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing the communication between the electronic equipment and the outside world. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
receiving shaking information sent by a shaking system;
based on a pre-deployed intelligent contract, number shaking is carried out according to number shaking information, and a transaction endorsement comprising number shaking process data and number shaking result data is generated;
sending the transaction endorsement to a number shaking system so that the number shaking system transmits the transaction endorsement and number shaking information to a sequencing node in a number shaking block chain;
receiving a block generated by the sequencing node based on the transaction endorsement and the number shaking information;
verifying the block, and recording the block after the verification is passed;
and returning the hash value of the block to the shaking system.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: before receiving the number shaking information sent by the number shaking system, receiving intelligent contract installation information sent by the number shaking system; installing an intelligent contract based on the intelligent contract installation information; the intelligent contract installation information comprises installation information generated after the intelligent contract source code review and publicity sent by the number shaking system is passed by the supervision system.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: after the hash value of the block is returned to the number shaking system, receiving a number shaking inquiry instruction which is sent by the number shaking system and carries the hash value; determining a block corresponding to the hash value through an intelligent contract; determining shaking number result data in the block; and transmitting the shaking result data to a shaking system.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of a relevant part in a number shaking method, a device, an electronic device, and a computer readable storage medium provided in the embodiments of the present application, reference is made to a detailed description of a corresponding part in a number shaking block chain provided in the embodiments of the present application, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A rocker blockchain, comprising: a first endorsement node corresponding to the number shaking system; sequencing nodes:
the first endorsement node is to: receiving the shaking information sent by the shaking system; based on a pre-deployed intelligent contract, number shaking is carried out according to the number shaking information, and a transaction endorsement comprising number shaking process data and number shaking result data is generated; sending the transaction endorsement to the number shaking system so that the number shaking system transmits the transaction endorsement and the number shaking information to the sequencing node; receiving a block generated by the sorting node; verifying the block, and recording the block after the block is verified; returning the hash value of the block to the shaking system;
the sequencing node is configured to: generating the block based on the transaction endorsement and the shaking number information.
2. The rocker blockchain of claim 1, wherein the first endorsement node is further to: before receiving the number shaking information sent by the number shaking system, receiving intelligent contract installation information sent by the number shaking system; installing the intelligent contract based on the intelligent contract installation information;
the intelligent contract installation information comprises installation information generated after a supervision system passes an intelligent contract source code review and publicity which is sent by the number shaking system.
3. The rocker blockchain of claim 2, further comprising: a second endorsement node corresponding to the supervisory system;
the second endorsement node is to: receiving a shaking number checking instruction which is sent by the monitoring system and carries the hash value; calling chain code QSCC, and determining the block based on the hash value; determining the transaction endorsement and the shake number information in the block and transmitting to the supervisory system.
4. The rocker blockchain of claim 1, wherein the first endorsement node is further to: after the hash value of the block is returned to the number shaking system, receiving a number shaking inquiry instruction which is sent by the number shaking system and carries the hash value; determining the block corresponding to the hash value through the intelligent contract; determining the pan result data in the block; and transmitting the shaking result data to the shaking system.
5. A number shaking method is characterized in that the number shaking method is applied to a first endorsement node corresponding to a number shaking system in a number shaking block chain, and comprises the following steps:
receiving the shaking information sent by the shaking system;
based on a pre-deployed intelligent contract, number shaking is carried out according to the number shaking information, and a transaction endorsement comprising number shaking process data and number shaking result data is generated;
sending the transaction endorsement to the number shaking system so that the number shaking system transmits the transaction endorsement and the number shaking information to a sequencing node in the number shaking block chain;
receiving a block generated by the sorting node based on the transaction endorsement and the shaking number information;
verifying the block, and recording the block after the block is verified;
and returning the hash value of the block to the shaking system.
6. The method of claim 5, wherein before receiving the shake information sent by the shake system, the method further comprises:
receiving intelligent contract installation information sent by the number shaking system;
installing the intelligent contract based on the intelligent contract installation information;
the intelligent contract installation information comprises installation information generated after a supervision system passes an intelligent contract source code review and publicity which is sent by the number shaking system.
7. The method of claim 5, wherein after returning the hash value of the chunk to the rocker system, further comprising:
receiving a shaking inquiry instruction which is sent by the shaking system and carries the hash value;
determining the block corresponding to the hash value through the intelligent contract;
determining the pan result data in the block;
and transmitting the shaking result data to the shaking system.
8. The utility model provides a shake a number device which characterized in that, is applied to and shakes the first endorsement node that number system corresponds in the blockchain, includes:
the first receiving module is used for receiving the shaking information sent by the shaking system;
the first generation module is used for shaking numbers according to the shaking number information based on a pre-deployed intelligent contract and generating a transaction endorsement comprising shaking number process data and shaking number result data;
the first sending module is used for sending the transaction endorsement to the number shaking system so that the number shaking system transmits the transaction endorsement and the number shaking information to a sequencing node in the number shaking block chain;
the second receiving module is used for receiving a block generated by the sequencing node based on the transaction endorsement and the shaking number information;
the first recording module is used for verifying the block and recording the block after the block passes the verification;
and the first returning module is used for returning the hash value of the block to the shaking system.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the signature method as claimed in any one of claims 5 to 7 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the number shaking method according to any one of claims 5 to 7.
CN202011337714.3A 2020-11-25 2020-11-25 Number shaking method, device, block chain, equipment and computer storage medium Pending CN112418856A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011337714.3A CN112418856A (en) 2020-11-25 2020-11-25 Number shaking method, device, block chain, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011337714.3A CN112418856A (en) 2020-11-25 2020-11-25 Number shaking method, device, block chain, equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN112418856A true CN112418856A (en) 2021-02-26

Family

ID=74843314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011337714.3A Pending CN112418856A (en) 2020-11-25 2020-11-25 Number shaking method, device, block chain, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112418856A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820690A (en) * 2017-08-21 2018-03-20 达闼科技成都有限公司 Information choosing method, device, electronic equipment and computer-readable recording medium
CN109242677A (en) * 2018-07-27 2019-01-18 阿里巴巴集团控股有限公司 Object select method and device, electronic equipment
US20190278852A1 (en) * 2018-03-06 2019-09-12 International Business Machines Corporation Customized endorsement logic for blockchain
CN111314069A (en) * 2020-02-13 2020-06-19 苏州同济区块链研究院有限公司 Block chain-based shaking system and method, electronic device and storage medium
CN111311410A (en) * 2020-02-13 2020-06-19 青岛亿联信息科技股份有限公司 Community problem multi-department cooperative processing system and method based on block chain
CN111460482A (en) * 2020-04-15 2020-07-28 中国银行股份有限公司 Block chain-based number shaking method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820690A (en) * 2017-08-21 2018-03-20 达闼科技成都有限公司 Information choosing method, device, electronic equipment and computer-readable recording medium
US20190278852A1 (en) * 2018-03-06 2019-09-12 International Business Machines Corporation Customized endorsement logic for blockchain
CN109242677A (en) * 2018-07-27 2019-01-18 阿里巴巴集团控股有限公司 Object select method and device, electronic equipment
CN111314069A (en) * 2020-02-13 2020-06-19 苏州同济区块链研究院有限公司 Block chain-based shaking system and method, electronic device and storage medium
CN111311410A (en) * 2020-02-13 2020-06-19 青岛亿联信息科技股份有限公司 Community problem multi-department cooperative processing system and method based on block chain
CN111460482A (en) * 2020-04-15 2020-07-28 中国银行股份有限公司 Block chain-based number shaking method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马小峰等: "《区块链技术原理与实践》", vol. 1, 31 January 2020, 机械工业出版社, pages: 38 *

Similar Documents

Publication Publication Date Title
CN110442652B (en) Cross-chain data processing method and device based on block chain
US10489278B2 (en) Method and system for implementing an automation software testing and packaging framework with entitlements
CN112073269B (en) Block chain network testing method, device, server and storage medium
CN112686671B (en) Intelligent contract deployment method, device, equipment and medium based on block chain
US20210049715A1 (en) Blockchain-based data procesing method, apparatus, and electronic device
CN110046523B (en) Intelligent contract checking method and device and electronic equipment
CN111445333A (en) Block generation method and device, computer equipment and storage medium
CN109660356A (en) Data cochain method, apparatus, equipment and computer readable storage medium
CN114445010B (en) Block chain-based multi-mode intermodal system and method
CN110599177A (en) Transaction verification method and related equipment
CN109345392B (en) Method and system for issuing programming question, issuing solution code and checking solution code
CN111782551B (en) Test method and device for block chain item and computer equipment
CN111338645B (en) Method and device for creating system contract
CN112035350B (en) Test method and device for block chain system and computer equipment
CN109165102B (en) Constraint solver distributed scheduling method based on intelligent contracts
CN107679423A (en) Partition integrity inspection method and device
CN113988319A (en) Federal learning model training method and device, electronic equipment, medium and product
CN112418856A (en) Number shaking method, device, block chain, equipment and computer storage medium
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
CN115048158A (en) Process arranging and calling method, system and computer equipment thereof
CN111062060B (en) Voting proposal life cycle management method based on intelligent contract
CN114237687A (en) Software version acquisition method and system, electronic equipment and storage medium
KR102257368B1 (en) Blockchain system for transaction scheduling and method for transaction scheduling using the same
CN115250354A (en) Resource allocation method, device, equipment and storage medium based on block chain network
CN112862648A (en) Block chain-based multi-department joint cooperation method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination