CN111460482A - Block chain-based number shaking method and device - Google Patents
Block chain-based number shaking method and device Download PDFInfo
- Publication number
- CN111460482A CN111460482A CN202010294635.2A CN202010294635A CN111460482A CN 111460482 A CN111460482 A CN 111460482A CN 202010294635 A CN202010294635 A CN 202010294635A CN 111460482 A CN111460482 A CN 111460482A
- Authority
- CN
- China
- Prior art keywords
- shaking
- notarization
- uplink request
- serial number
- number data
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 230000008520 organization Effects 0.000 claims abstract description 25
- 230000008569 process Effects 0.000 abstract description 22
- 238000012795 verification Methods 0.000 description 14
- 230000000694 effects Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 238000012797 qualification Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 238000012550 audit Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C15/00—Generating random numbers; Lottery apparatus
- G07C15/006—Generating random numbers; Lottery apparatus electronically
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Abstract
The application discloses a block chain-based number shaking method and device, which can ensure authenticity, validity and non-tamper property of all information data generated in the number shaking process, and realize full-flow tracing and record of number shaking. The method comprises the following steps: the block chain node firstly receives a first number rocking data cochain request sent by a number rocking host, wherein the first number rocking data cochain request is cochain after passing the certification of a public certificate organization, and then receives a second number rocking data cochain request sent by a number rocking participant, wherein the second number rocking data cochain request is cochain after passing the certification of the public certificate organization, and then, the number rocking can be carried out according to the first number rocking data cochain request and the second number rocking data cochain request to obtain a number rocking result; and further, a third serial number data uplink request to be sent by the notarization organization can be received, wherein the third serial number data uplink request is obtained by encrypting the serial number result by the notarization organization.
Description
Technical Field
The application relates to the technical field of block chains, in particular to a shaking method and device based on a block chain.
Background
The block chain is a distributed and multi-centralized chain data storage system in nature, and has the characteristics of decentralization, programmable time sequence data, safety and credibility. The external attack is resisted by means of strong calculation force formed by consensus algorithms such as workload certification and the like of each node of the distributed system, the data of the block chain is guaranteed not to be tampered, and the data is guaranteed to be safe and reliable.
At present, various lottery techniques and applications widely influence the life and work of people, such as lottery arrangement examination positions, lottery qualification determination, lottery number determination and the like. The basis of the number shaking technology is a random value algorithm, the existing random value algorithm is a mathematically distributed pseudo-random algorithm, meanwhile, random values are all generated in a computer, the generation process of the random values is not really disclosed, but the random value algorithm is too professional, the number shaking program is a black box and cannot be verified, and the relation between the random value algorithm code and the black box program cannot be verified, so that the fairness and the fairness of the number shaking result are often questioned by participants. Moreover, most of the existing number shaking platforms adopt a centralized database, and store the number shaking times of the commodities, the number shaking time, the mobile phone used by the user in number shaking and the like; however, the database of the number shaking platform has the risk of data tampering, the authenticity of the number shaking data cannot be guaranteed, and the problems that the number shaking times of a certain commodity are modified and the user comment is deleted by the number shaking operation platform exist. Therefore, a method capable of ensuring the authenticity of various number shaking activities and the validity of number shaking data is lacked in the prior art.
Disclosure of Invention
The embodiment of the application mainly aims to provide a shaking method and a shaking device based on a block chain, which can realize full-flow tracking of shaking, are more fair, fair and public, solve the problems of cheating and the like possibly existing in the shaking and improve the public reliability of the shaking.
In a first aspect, an embodiment of the present application provides a block chain-based shaking method, including:
receiving a first number data uplink request sent by a number master, wherein the first number data uplink request is uplinked after passing the certification of a public certificate authority;
receiving a second number data uplink request sent by a number rocking participant, wherein the second number data uplink request is uplinked after the certification of the notarization institution is passed;
performing number shaking according to the first number shaking data chaining request and the second number shaking data chaining request to obtain a number shaking result;
and receiving a third serial number data uplink request sent by the notarization institution, wherein the third serial number data uplink request is obtained by encrypting the serial number result by the notarization institution.
Optionally, the number rocking sponsor, the number rocking participant and the notarization institution are block chain nodes on the same federation chain.
Optionally, before the first number data cochain request sent by the number shaking sponsor is received, the number shaking sponsor obtains a private key for encrypting the number shaking data from a notarization in advance, and the notarization structure obtains a public key for authenticating the number shaking data encrypted by the private key from the notarization in advance.
Optionally, the first number shaking data chaining request includes number shaking data encrypted by the number shaking sponsor through a private key; before receiving a first number data uplink request sent by a number master, the method further comprises the following steps:
and authenticating the first serial number data uplink request by using a public key acquired from the notarization part through the notarization structure.
Optionally, before receiving the second rocking number data uplink request sent by the rocking number participant, the method further includes:
encrypting the second serial number data uplink request by the serial number sponsor by using a private key acquired from the notarization part to obtain an encrypted second serial number data uplink request;
and authenticating the encrypted second serial number data uplink request by using a public key acquired from the notarization position through the notarization structure.
In a second aspect, an embodiment of the present application further provides a tile chain-based shaking apparatus, including:
the mobile terminal comprises a first receiving unit, a second receiving unit and a third receiving unit, wherein the first receiving unit is used for receiving a first serial number data uplink request sent by a serial number host, and the first serial number data uplink request is uplinked after passing the certification of a public certificate authority;
a second receiving unit, configured to receive a second serial number data uplink request sent by a serial number participant, where the second serial number data uplink request is uplink after passing the certification of the notarization institution;
the number shaking unit is used for carrying out number shaking according to the first number shaking data chaining request and the second number shaking data chaining request to obtain a number shaking result;
a third receiving unit, configured to receive a third shaking number data cochain request sent by the notarization organization, where the third shaking number data cochain request is cochain after the notarization organization encrypts the shaking number result.
Optionally, the number rocking sponsor, the number rocking participant and the notarization institution are block chain nodes on the same federation chain.
Optionally, before the first receiving unit is called, the number shaking host obtains a private key used for encrypting the number shaking data from a notarization in advance, and the notarization structure obtains a public key used for authenticating the number shaking data encrypted by the private key from the notarization in advance.
Optionally, the first number shaking data chaining request includes number shaking data encrypted by the number shaking sponsor through a private key; the device further comprises:
and the first authentication unit is used for authenticating the first serial number data uplink request by using a public key acquired from the notarization position through the notarization structure.
Optionally, the apparatus further comprises:
the encryption unit is used for encrypting the second serial number data uplink request by the serial number sponsor through a private key acquired from the notarization part to obtain the encrypted second serial number data uplink request;
and the second authentication unit is used for authenticating the encrypted second serial number data uplink request by using the public key acquired from the notarization position through the notarization structure.
The embodiment of the application further provides a shaking device based on the block chain, which includes: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is configured to store one or more programs, the one or more programs including instructions, which when executed by the processor, cause the processor to perform any one implementation of the above tile chain based pan method.
An embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device is enabled to execute any implementation manner of the block chain based shaking number method.
According to the block chain-based number shaking method and device provided by the embodiment of the application, a block chain link point firstly receives a first number shaking data cochain request sent by a number shaking host, wherein the first number shaking data cochain request is cochain after passing certification of a notarization institution, and then receives a second number shaking data cochain request sent by a number shaking participant, wherein the second number shaking data cochain request is cochain after passing certification of the notarization institution, and then number shaking can be carried out according to the first number shaking data cochain request and the second number shaking data cochain request to obtain a number shaking result; and further, a third serial number data uplink request to be sent by the notarization organization can be received, wherein the third serial number data uplink request is obtained by encrypting the serial number result by the notarization organization. It can be seen that, in the embodiment of the application, the shaking is realized based on the block chain technology, and all shaking information on the block chain passes the certification of a notarization institution, so that authenticity, validity and non-tamper-proof property of all information data generated in the shaking process are ensured, full-process tracing of the shaking is realized, and the shaking is fair, fair and open, thereby not only solving the problems of cheating and the like possibly existing in the shaking, but also improving the notarization of the shaking.
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, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a block chain-based number shaking method according to an embodiment of the present disclosure;
FIG. 2 is a schematic overall interaction diagram of a pan based on a blockchain according to an embodiment of the present disclosure;
fig. 3 is a schematic composition diagram of a pan mark apparatus based on a block chain according to an embodiment of the present application.
Detailed Description
At present, various number shaking technologies and applications widely influence life and work of people, for example, number shaking is arranged to examine positions, number shaking is used for determining license plate qualification, and winning numbers are determined by number shaking; however, the database of the number shaking platform has the risk of data tampering, the authenticity of the number shaking data cannot be guaranteed, and the problems that the number shaking times of a certain commodity are modified and the user comment is deleted by the number shaking operation platform exist. Therefore, a method capable of ensuring the authenticity of various number shaking activities and the validity of number shaking data is lacked in the prior art.
In order to solve the above-mentioned drawbacks, an embodiment of the present application provides a block chain-based numbering method, where a block chain link point first receives a first number data uplink request sent by a number master, where the first number data uplink request is uplinked after passing certification of a notarization institution, and then receives a second number data uplink request sent by a number participant, where the second number data uplink request is uplinked after passing certification of the notarization institution, and then, may perform numbering according to the first number data uplink request and the second number data uplink request, to obtain a number result; and further, a third serial number data uplink request to be sent by the notarization organization can be received, wherein the third serial number data uplink request is obtained by encrypting the serial number result by the notarization organization. It can be seen that, in the embodiment of the application, the shaking is realized based on the block chain technology, and all shaking information on the block chain passes the certification of a notarization institution, so that authenticity, validity and non-tamper-proof property of all information data generated in the shaking process are ensured, full-process tracing of the shaking is realized, and the shaking is fair, fair and open, thereby not only solving the problems of cheating and the like possibly existing in the shaking, but also improving the notarization of the shaking.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all 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.
First embodiment
Referring to fig. 1, a schematic flow chart of a block chain-based number shaking method provided in this embodiment is shown, where the method includes the following steps:
s101: receiving a first number data uplink request sent by a number master, wherein the first number data uplink request is uplinked after passing the certification of a public certificate authority.
In this embodiment, in order to realize the lottery draw lottery ticket number full flow chasing. The method is characterized in that the method is used for assisting the public trust and the influence of various number shaking activities and solving the problems of cheating of number shaking and the like, and firstly, a number shaking host, a number shaking participant and a notarization institution are simultaneously linked to establish a alliance chain, so that the number shaking host, the number shaking participant and the notarization institution become block chain nodes on the alliance chain.
Moreover, it should be noted that each node (such as the charter sponsor and the notarization organization) on the federation chain needs to be subject to qualification verification at the national notarization department, and can only be added into the federation chain after passing the verification at the national notarization department.
In a possible implementation manner of the embodiment of the present application, before performing step S101, the number shaking host may obtain a private key used for encrypting the number shaking data from a notarization in advance, and the notarization structure may obtain a public key used for authenticating the number shaking data encrypted by the private key from the notarization in advance.
Specifically, in this implementation, after the serial number sponsor and the certification authority pass the qualification audit of the national certification authority, the national certification authority issues a pair of keys to the serial number sponsor and the certification authority to ensure the admission thresholds and the uniqueness of the serial number sponsor and the certification authority on the block chain. Wherein the pair of keys includes a private key and a public key. When the number shaking host applies for holding the number shaking activity, the number shaking host and the notarization institution apply for the national notarization department at the same time, after the application is passed, the national notarization department issues a private key for encrypting the number shaking data (number shaking participant information and number shaking information) to the number shaking host, and issues a public key for decrypting and verifying the number shaking data encrypted by the private key to the notarization institution.
Thus, the node in the blockchain can receive the first rocking number data uplink request sent by the rocking number host for performing the subsequent step S103. The first number shaking data uplink request comprises number shaking data (which can be number shaking participant information, number shaking activity information and the like) encrypted by a number shaking host through a private key, and after the encrypted number shaking data is decrypted and verified through a notarization structure by using a public key acquired from a notarization part, the first number shaking data uplink request after the verification is passed can be uplink.
It should be noted that after the number shaking activity is completed and the related information of the number shaking is linked, the private key and the public key used at this time will be invalid. And if the number shaking host needs to perform number shaking again, the number shaking application needs to be performed again, and the national notarization department performs auditing again, and after the application is passed, the national notarization department issues a private key for encrypting the number shaking data to the number shaking host again, and issues a public key for decrypting the number shaking data encrypted by the private key to the notarization organization.
S102: and receiving a second number rocking data uplink request sent by the number rocking participant, wherein the second number rocking data uplink request is uplinked after passing the certification of the notarization institution.
In this embodiment, the lottery participant may query the lottery event information issued by the lottery sponsor through a lottery Application (APP) installed on the terminal device or on a web page lottery system, such as the progress status of the lottery event and the lottery information of the lottery winner.
Furthermore, the number shaking participants can perform online registration and fill in related registration information according to the inquired number shaking activity information. And the registration information is sent to a number shaking host and/or a notarization institution in the alliance chain in an intelligent contract mode, so that the number shaking host and/or the notarization institution can carry out qualification verification on the number shaking participants, and after the verification is passed, the registration information of the number shaking participants is linked and stored.
Next, taking the verification of the registration information of the number shaker by the number shaker host as an example, the verification process is introduced, and the specific verification process includes the following steps a-B:
step A: and encrypting the second serial number data uplink request by the serial number sponsor through a private key acquired from a notarization position to obtain the encrypted second serial number data uplink request.
In this embodiment, the second request for uplink grant data is defined by the grant participant through APP or a request for grant entry on a web page, which may include entry information and request information of the grant participant. In order to ensure the authenticity, the validity and the non-tamper property of all information data generated in the number shaking process, after a number shaking participant proposes a second number shaking data uplink request, firstly, a number shaking host can encrypt the second number shaking data uplink request by using a private key acquired from a notarization part to obtain the encrypted second number shaking data uplink request for executing a subsequent step B.
And B: and authenticating the encrypted second serial number data uplink request by using a public key acquired from the notarization position through the notarization structure.
After the encrypted second serial number data cochain request is obtained through the step A, the encrypted second serial number data cochain request can be decrypted and verified through the notarization structure by using the public key obtained from the notarization part, and the encrypted second serial number data cochain request is cochain after the verification is passed.
Thus, the node in the blockchain can receive the second rocking number data uplink request sent by the rocking number participant to execute the subsequent step S103.
It can be seen that, in this embodiment, the notarization institution is an indispensable node on the federation chain, and if there is no node, all the license information sent by the license sponsor and the license participant cannot be linked up, that is, all the license information can be linked up only by using the public key acquired by the notarization institution from the notarization department, so as to ensure the authenticity, validity and non-tamper of all the information data generated in the license process.
S103: and carrying out number shaking according to the first number shaking data chaining request and the second number shaking data chaining request to obtain a number shaking result.
In this embodiment, after receiving the first number rocking data uplink request sent by the number rocking host in step S102 and receiving the second number rocking data uplink request sent by the number rocking participant in step S101, the number rocking process may further be performed according to the first number rocking data uplink request and the second number rocking data uplink request on the chain to obtain the number rocking result.
Wherein, the block in the block chain comprises a block head and a block body. The block header contains parent block hash, version, timestamp, difficulty, random number, child block, Merkel root, etc. The block body contains the Merkel root tree and transaction data. And the information contained in the single transaction data includes number shaking host information (such as the personal information of the host, the public information, the number shaking requirement and the like), number shaking participant information (such as the personal information of the participant, the requirement of participating in the number shaking and the like), notarization institution information (such as organization code, legal information, institution address, service range and the like of a notarization institution) and the like.
S104: and receiving a third shaking number data uplink request sent by the notarization institution, wherein the third shaking number data uplink request is uplinked after the notarization institution encrypts the shaking number result.
In the present embodiment, after the number shaking result is obtained through step S103, in order to ensure the authenticity, validity, and non-tamper of the number shaking result. The certificate authority encrypts the certificate result by using the public key obtained from the certificate, and links the encrypted certificate result (defined as the third certificate data uplink request). Therefore, the whole process of number shaking tracking can be realized, and the number shaking process is fairer, more fair and public.
In summary, in the number shaking method based on the block chain provided in this embodiment, the block link point first receives a first number shaking data uplink request sent by a number shaking host, where the first number shaking data uplink request is uplinked after passing the certification of a public certification authority, and then receives a second number shaking data uplink request sent by a number shaking participant, where the second number shaking data uplink request is uplinked after passing the certification of the public certification authority, and then, the number shaking can be performed according to the first number shaking data uplink request and the second number shaking data uplink request to obtain a number shaking result; and then, a third serial number data uplink request to be sent by the notarization organization can be received, wherein the third serial number data uplink request is an uplink data after the notarization organization encrypts the serial number result. It can be seen that, in the embodiment of the application, the shaking is realized based on the block chain technology, and all shaking information on the block chain passes the certification of a notarization institution, so that authenticity, validity and non-tamper-proof property of all information data generated in the shaking process are ensured, full-process tracing of the shaking is realized, and the shaking is fair, fair and open, thereby not only solving the problems of cheating and the like possibly existing in the shaking, but also improving the notarization of the shaking.
It should be noted that, for ease of understanding, the overall interaction diagram based on the pan numbers of the blockchains shown in fig. 2 is now incorporated. The implementation process of the block chain-based shaking number method provided by the embodiment of the application is introduced.
As shown in fig. 2, the implementation process of the embodiment of the present application is as follows: firstly, based on a block chain technology, a alliance chain is built in advance, a number rocking host, a number rocking participant, a justice organization and the like are accessed into the alliance chain according to a protocol (such as an intelligent contract), the number rocking host and the notarization organization need to be subjected to qualification verification of a national notarization department before being linked, and after the verification is passed, the national notarization department issues a pair of keys to the number rocking host and the notarization organization so as to ensure the access threshold and the uniqueness of the number rocking host and the notarization organization on the block chain. Then, the number shaking host issues the requirement for number shaking, encrypts the requirement information through a private key, and issues the requirement information to the block chain. And after inquiring the number shaking requirement by the aid of the APP or the webpage of the number shaking, the number shaking participants can perform online registration and fill corresponding information, and after the number shaking host verifies that the number shaking host passes the verification, the registration information is encrypted by the private key through the number shaking host and then linked. Or, after the certification authority passes the verification, the registration information is linked up, so that other authority nodes on the chain can perform consensus verification. And after the number shaking is carried out to obtain a number shaking result, the number shaking result can be encrypted and linked through a notarization institution, all nodes on the chain are broadcasted, the number shaking process is completed, authenticity, validity and non-tamper-ability of all information data generated in the number shaking process are guaranteed, the whole process of the number shaking is fair, fair and public, and the specific implementation process is shown in step S101-step S104.
Second embodiment
In this embodiment, a block chain-based shaking apparatus will be described, and for related contents, please refer to the above method embodiment.
Referring to fig. 3, a schematic composition diagram of a pan mark apparatus based on a block chain provided in this embodiment is shown, where the apparatus includes:
a first receiving unit 301, configured to receive a first number data uplink request sent by a number master, where the first number data uplink request is uplink after passing certification of a public identity agency;
a second receiving unit 302, configured to receive a second number data uplink request sent by a number rocking participant, where the second number data uplink request is uplink after passing the certification of the notarization authority;
a number shaking unit 303, configured to perform number shaking according to the first number shaking data chaining request and the second number shaking data chaining request, so as to obtain a number shaking result;
a third receiving unit 304, configured to receive a third shaking number data uplink request sent by the notarization organization, where the third shaking number data uplink request is uplink after the notarization organization encrypts the shaking number result.
In an implementation manner of this embodiment, the number shake sponsor, the number shake participant, and the notarization authority are blockchain nodes on the same federation chain.
In an implementation manner of this embodiment, before invoking the first receiving unit 301, the number shaking host obtains a private key for encrypting the number shaking data from a notarization in advance, and the notarization structure obtains a public key for authenticating the number shaking data encrypted by the private key from the notarization in advance.
In an implementation manner of this embodiment, the first serial number data cochain request includes serial number data encrypted by the serial number sponsor by using a private key; the device further comprises:
and the first authentication unit is used for authenticating the first serial number data uplink request by using a public key acquired from the notarization position through the notarization structure.
In an implementation manner of this embodiment, the apparatus further includes:
the encryption unit is used for encrypting the second serial number data uplink request by the serial number sponsor through a private key acquired from the notarization part to obtain the encrypted second serial number data uplink request;
and the second authentication unit is used for authenticating the encrypted second serial number data uplink request by using the public key acquired from the notarization position through the notarization structure.
In summary, in the number shaking apparatus based on the block chain provided in this embodiment, the block chain node first receives a first number shaking data uplink request sent by a number shaking host, wherein the first number shaking data uplink request is uplinked after passing the certification of a public certificate authority, and then receives a second number shaking data uplink request sent by a number shaking participant, wherein the second number shaking data uplink request is uplinked after passing the certification of the public certificate authority, and then, the number shaking can be performed according to the first number shaking data uplink request and the second number shaking data uplink request to obtain a number shaking result; and then, a third serial number data uplink request to be sent by the notarization organization can be received, wherein the third serial number data uplink request is an uplink data after the notarization organization encrypts the serial number result. It can be seen that, in the embodiment of the application, the shaking is realized based on the block chain technology, and all shaking information on the block chain passes the certification of a notarization institution, so that authenticity, validity and non-tamper-proof property of all information data generated in the shaking process are ensured, full-process tracing of the shaking is realized, and the shaking is fair, fair and open, thereby not only solving the problems of cheating and the like possibly existing in the shaking, but also improving the notarization of the shaking.
Further, an embodiment of the present application further provides a block chain-based number shaking device, including: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is configured to store one or more programs, the one or more programs including instructions, which when executed by the processor, cause the processor to perform any of the above-described block chain based pan number methods.
Further, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a terminal device, the terminal device is caused to execute any implementation method of the above block chain-based shaking number method.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network communication device such as a media gateway, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for 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 (12)
1. A shaking method based on a block chain is characterized by comprising the following steps:
receiving a first number data uplink request sent by a number master, wherein the first number data uplink request is uplinked after passing the certification of a public certificate authority;
receiving a second number data uplink request sent by a number rocking participant, wherein the second number data uplink request is uplinked after the certification of the notarization institution is passed;
performing number shaking according to the first number shaking data chaining request and the second number shaking data chaining request to obtain a number shaking result;
and receiving a third serial number data uplink request sent by the notarization institution, wherein the third serial number data uplink request is obtained by encrypting the serial number result by the notarization institution.
2. The method of claim 1, wherein the lottery sponsor, the lottery participant, and the notarization authority are blockchain nodes on the same federation chain.
3. The method of claim 1 or 2, wherein before the receiving the first rocking number data uplink request sent by the rocking number host, the rocking number host obtains a private key for encrypting the rocking number data from a notarization in advance, and the notarization structure obtains a public key for authenticating the rocking number data encrypted by the private key from the notarization in advance.
4. The method of claim 3, wherein the first shake data cochain request includes shake data encrypted by the shake sponsor using a private key; before receiving a first number data uplink request sent by a number master, the method further comprises the following steps:
and authenticating the first serial number data uplink request by using a public key acquired from the notarization part through the notarization structure.
5. The method of claim 3, further comprising, before receiving the second rocking number data uplink request from the rocking number participant:
encrypting the second serial number data uplink request by the serial number sponsor by using a private key acquired from the notarization part to obtain an encrypted second serial number data uplink request;
and authenticating the encrypted second serial number data uplink request by using a public key acquired from the notarization position through the notarization structure.
6. A shaking device based on a block chain is characterized by comprising:
the mobile terminal comprises a first receiving unit, a second receiving unit and a third receiving unit, wherein the first receiving unit is used for receiving a first serial number data uplink request sent by a serial number host, and the first serial number data uplink request is uplinked after passing the certification of a public certificate authority;
a second receiving unit, configured to receive a second serial number data uplink request sent by a serial number participant, where the second serial number data uplink request is uplink after passing the certification of the notarization institution;
the number shaking unit is used for carrying out number shaking according to the first number shaking data chaining request and the second number shaking data chaining request to obtain a number shaking result;
a third receiving unit, configured to receive a third shaking number data cochain request sent by the notarization organization, where the third shaking number data cochain request is cochain after the notarization organization encrypts the shaking number result.
7. The apparatus of claim 6, wherein the lottery sponsor, the lottery participant, and the notarization authority are blockchain nodes on the same federation chain.
8. The apparatus according to claim 6 or 7, wherein before invoking the first receiving unit, the serial number sponsor obtains a private key for encrypting the serial number data from a public certificate in advance, and the public certificate structure obtains a public key for authenticating the serial number data encrypted by the private key from the public certificate in advance.
9. The apparatus of claim 8, wherein the first rocker data cochain request comprises rocker data encrypted by the rocker sponsor with a private key; the device further comprises:
and the first authentication unit is used for authenticating the first serial number data uplink request by using a public key acquired from the notarization position through the notarization structure.
10. The apparatus of claim 8, further comprising:
the encryption unit is used for encrypting the second serial number data uplink request by the serial number sponsor through a private key acquired from the notarization part to obtain the encrypted second serial number data uplink request;
and the second authentication unit is used for authenticating the encrypted second serial number data uplink request by using the public key acquired from the notarization position through the notarization structure.
11. A shaking device based on a block chain is characterized by comprising: a processor, a memory, a system bus;
the processor and the memory are connected through the system bus;
the memory is to store one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform the method of any of claims 1-5.
12. A computer-readable storage medium having stored therein instructions that, when executed on a terminal device, cause the terminal device to perform the method of any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010294635.2A CN111460482B (en) | 2020-04-15 | 2020-04-15 | Block chain-based number shaking method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010294635.2A CN111460482B (en) | 2020-04-15 | 2020-04-15 | Block chain-based number shaking method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111460482A true CN111460482A (en) | 2020-07-28 |
CN111460482B CN111460482B (en) | 2024-04-16 |
Family
ID=71678573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010294635.2A Active CN111460482B (en) | 2020-04-15 | 2020-04-15 | Block chain-based number shaking method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111460482B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111865587A (en) * | 2020-08-07 | 2020-10-30 | 腾讯科技(深圳)有限公司 | Data processing method, block link point device, electronic device, and computer program |
CN112216013A (en) * | 2020-08-31 | 2021-01-12 | 北京好扑信息科技有限公司 | Universal shaking system design based on block chain random number technology and method thereof |
CN112418856A (en) * | 2020-11-25 | 2021-02-26 | 政采云有限公司 | Number shaking method, device, block chain, equipment and computer storage medium |
CN112562168A (en) * | 2020-11-27 | 2021-03-26 | 中国联合网络通信集团有限公司 | Block chain-based online shaking method, system, equipment and storage medium |
CN112714135A (en) * | 2021-01-20 | 2021-04-27 | 福州市长乐区三互信息科技有限公司 | Block chain based activity management method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019052281A1 (en) * | 2017-09-12 | 2019-03-21 | 京信通信系统(中国)有限公司 | Block chain-based mobile terminal authentication management method and apparatus, and corresponding mobile terminal |
CN110247918A (en) * | 2019-06-24 | 2019-09-17 | 北京艾摩瑞策科技有限公司 | Number cochain method and its equipment are shaken applied to block chain |
CN110247923A (en) * | 2019-06-24 | 2019-09-17 | 北京艾摩瑞策科技有限公司 | Number cochain method and its equipment are shaken based on block chain |
CN110263529A (en) * | 2019-06-24 | 2019-09-20 | 北京艾摩瑞策科技有限公司 | Number cochain method and its equipment are shaken using intelligent contract |
CN110298180A (en) * | 2019-04-01 | 2019-10-01 | 北京深安未来科技有限公司 | A kind of notarization management system based on block chain |
CN110990808A (en) * | 2019-11-21 | 2020-04-10 | 杭州趣链科技有限公司 | Notarization number shaking method based on block chain |
US20200342092A1 (en) * | 2019-04-26 | 2020-10-29 | Alibaba Group Holding Limited | Securely executing smart contract operations in a trusted execution environment |
-
2020
- 2020-04-15 CN CN202010294635.2A patent/CN111460482B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019052281A1 (en) * | 2017-09-12 | 2019-03-21 | 京信通信系统(中国)有限公司 | Block chain-based mobile terminal authentication management method and apparatus, and corresponding mobile terminal |
CN110298180A (en) * | 2019-04-01 | 2019-10-01 | 北京深安未来科技有限公司 | A kind of notarization management system based on block chain |
US20200342092A1 (en) * | 2019-04-26 | 2020-10-29 | Alibaba Group Holding Limited | Securely executing smart contract operations in a trusted execution environment |
CN110247918A (en) * | 2019-06-24 | 2019-09-17 | 北京艾摩瑞策科技有限公司 | Number cochain method and its equipment are shaken applied to block chain |
CN110247923A (en) * | 2019-06-24 | 2019-09-17 | 北京艾摩瑞策科技有限公司 | Number cochain method and its equipment are shaken based on block chain |
CN110263529A (en) * | 2019-06-24 | 2019-09-20 | 北京艾摩瑞策科技有限公司 | Number cochain method and its equipment are shaken using intelligent contract |
CN110990808A (en) * | 2019-11-21 | 2020-04-10 | 杭州趣链科技有限公司 | Notarization number shaking method based on block chain |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111865587A (en) * | 2020-08-07 | 2020-10-30 | 腾讯科技(深圳)有限公司 | Data processing method, block link point device, electronic device, and computer program |
CN112216013A (en) * | 2020-08-31 | 2021-01-12 | 北京好扑信息科技有限公司 | Universal shaking system design based on block chain random number technology and method thereof |
CN112418856A (en) * | 2020-11-25 | 2021-02-26 | 政采云有限公司 | Number shaking method, device, block chain, equipment and computer storage medium |
CN112562168A (en) * | 2020-11-27 | 2021-03-26 | 中国联合网络通信集团有限公司 | Block chain-based online shaking method, system, equipment and storage medium |
CN112714135A (en) * | 2021-01-20 | 2021-04-27 | 福州市长乐区三互信息科技有限公司 | Block chain based activity management method |
Also Published As
Publication number | Publication date |
---|---|
CN111460482B (en) | 2024-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109067801B (en) | Identity authentication method, identity authentication device and computer readable medium | |
CN111737724B (en) | Data processing method and device, intelligent equipment and storage medium | |
CN111460482A (en) | Block chain-based number shaking method and device | |
CN107566116B (en) | Method and apparatus for digital asset weight registration | |
US20180359092A1 (en) | Method for managing a trusted identity | |
CN112311735B (en) | Credible authentication method, network equipment, system and storage medium | |
CN109243045B (en) | Voting method, voting device, computer equipment and computer readable storage medium | |
CN102624740B (en) | A kind of data interactive method and client, server | |
CN108416589A (en) | Connection method, system and the computer readable storage medium of block chain node | |
CN109905360B (en) | Data verification method and terminal equipment | |
CN108650077B (en) | Block chain based information transmission method, terminal, equipment and readable storage medium | |
CN101262342A (en) | Distributed authorization and validation method, device and system | |
JP2010148098A (en) | Method and system for transient key digital stamp | |
JP2007511810A (en) | Proof of execution using random number functions | |
US20210391991A1 (en) | Linking identities in a distributed database | |
CN111460400A (en) | Data processing method and device and computer readable storage medium | |
CN111460457A (en) | Real estate property registration supervision method, device, electronic equipment and storage medium | |
JP6742558B2 (en) | Certification system and certification program | |
CN109933987A (en) | For the key generation method of block chain network, endorsement method, storage medium, calculate equipment | |
CN112800392A (en) | Authorization method and device based on soft certificate and storage medium | |
CN100377525C (en) | Method for realizing stream medium business service | |
JP6742557B2 (en) | Authentication system | |
CN108540447A (en) | A kind of certification authentication method and system based on block chain | |
CN109818965B (en) | Personal identity verification device and method | |
Avitabile et al. | Terrorist attacks for fake exposure notifications in contact tracing systems |
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 | ||
GR01 | Patent grant |