CN111460482B - Block chain-based number shaking method and device - Google Patents
Block chain-based number shaking method and device Download PDFInfo
- Publication number
- CN111460482B CN111460482B CN202010294635.2A CN202010294635A CN111460482B CN 111460482 B CN111460482 B CN 111460482B CN 202010294635 A CN202010294635 A CN 202010294635A CN 111460482 B CN111460482 B CN 111460482B
- Authority
- CN
- China
- Prior art keywords
- shake
- shaking
- notarization
- uplink request
- data uplink
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000007246 mechanism Effects 0.000 claims abstract description 52
- 238000005096 rolling process Methods 0.000 claims description 14
- 238000003860 storage Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 abstract description 20
- 238000012795 verification Methods 0.000 description 12
- 230000008520 organization Effects 0.000 description 10
- 230000000694 effects Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 8
- 238000012797 qualification Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000011156 evaluation Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004091 panning Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The application discloses a number shaking method and device based on a blockchain, which can ensure the authenticity, the effectiveness and the non-tamper property of all information data generated in the number shaking process, and realize the full-flow tracking of the number shaking. The method comprises the following steps: the method comprises the steps that a block chain node firstly receives a first shake data uplink request sent by a shake sponsor, wherein the first shake data uplink request is uplink after passing certification by a notarization mechanism, then receives a second shake data uplink request sent by a shake participant, wherein the second shake data uplink request is uplink after passing certification by the notarization mechanism, and then can shake numbers according to the first shake data uplink request and the second shake data uplink request to obtain a shake number result; and further, a third shake number data uplink request to be sent by the notarization mechanism can be received, wherein the third shake number data uplink request is uplink after the notarization mechanism encrypts the shake number result.
Description
Technical Field
The application relates to the technical field of blockchains, in particular to a blockchain-based number shaking method and device.
Background
The block chain is a distributed multi-centralized chain data storage system in nature, and has the characteristics of decentralization, programmable time sequence data and safety and reliability. The strong computing power formed by consensus algorithms such as workload certification of each node of the distributed system is used for resisting external attack, so that the non-falsification of the block chain data is ensured, and the safety and reliability of the data are ensured.
At present, various number-shaking technologies and applications widely influence the life and work of people, such as number-shaking arrangement examination positions, number-shaking decision of license plate qualification, number-shaking decision of winning numbers and the like. The basis of the number shaking technology is a random value algorithm, the existing random value algorithm is a pseudo-random algorithm with mathematical distribution, meanwhile, random values are generated in a computer, and the generation process of the random values is not really disclosed, but because the random value algorithm is too professional, and the number shaking program is a black box and can not verify the relationship between a random value algorithm code and the black box program, the fairness of the number shaking result is frequently challenged by participants. In addition, the existing number-shaking platforms mostly adopt a centralized database, and store the number-shaking times, the number-shaking time and the contents of mobile phones used by the user for shaking the numbers of the commodities; however, the database of the number-shaking platform has the danger of data tampering, the authenticity of the number-shaking data cannot be guaranteed, and the number-shaking times of a commodity is modified by the number-shaking operation platform, the user bad evaluation is deleted and the like. Therefore, a method capable of guaranteeing the authenticity of various shaking activities and the validity of shaking data is lacking in the prior art.
Disclosure of Invention
The main object of the embodiment of the application is to provide a number shaking method and device based on a blockchain, which can realize full-flow hasping of the number shaking, is more fair, fair and public, solves the problems of cheating and the like possibly existing in the number shaking, and improves the confidence of the number shaking.
In a first aspect, an embodiment of the present application provides a blockchain-based number shaking method, including:
receiving a first shake number data uplink request sent by a shake number sponsor, wherein the first shake number data uplink request is uplink after passing notarization authority authentication;
receiving a second shake number data uplink request sent by a shake number participant, wherein the second shake number data uplink request is uplink after passing through the certification of the notarization mechanism;
according to the first number shaking data uplink request and the second number shaking data uplink request, a number shaking result is obtained;
and receiving a third shaking data uplink request sent by the notarization mechanism, wherein the third shaking data uplink request is uplink after the notarization mechanism encrypts the shaking result.
Optionally, the shake-number sponsor, the shake-number participant and the notarization authority are blockchain nodes on a same alliance chain.
Optionally, before the receiving the first shake number data uplink request sent by the shake number sponsor, the shake number sponsor obtains a private key for encrypting the shake number data from a notarization place in advance, and the notarization structure obtains a public key for authenticating the shake number data encrypted by the private key from the notarization place in advance.
Optionally, the first shake number data uplink request includes shake number data encrypted by the shake number host with a private key; before receiving the first shake number data uplink request sent by the shake number sponsor, the method further comprises the following steps:
and authenticating the first rolling number data uplink request by the notarization structure by utilizing a public key acquired from the notarization department.
Optionally, before receiving the second shake number data uplink request sent by the shake number participant, the method further includes:
encrypting the second shake-number data uplink request by the shake-number sponsor through a private key acquired from the notarization department to obtain an encrypted second shake-number data uplink request;
and authenticating the encrypted second shaking number data uplink request by using the public key acquired from the notarization through the notarization structure.
In a second aspect, an embodiment of the present application further provides a number rocking device based on a blockchain, including:
the first receiving unit is used for receiving a first shake number data uplink request sent by a shake number sponsor, wherein the first shake number data uplink request is uplink after passing notarization agency authentication;
the second receiving unit is used for receiving a second shake number data uplink request sent by a shake number participant, wherein the second shake number data uplink request is uplink after passing through the notarization mechanism authentication;
the number shaking unit is used for carrying out number shaking according to the first number shaking data uplink request and the second number shaking data uplink request to obtain a number shaking result;
the third receiving unit is used for receiving a third number shaking data uplink request sent by the notarization mechanism, and the third number shaking data uplink request is uplink after the notarization mechanism encrypts the number shaking result.
Optionally, the shake-number sponsor, the shake-number participant and the notarization authority are blockchain nodes on a same alliance chain.
Optionally, before invoking the first receiving unit, the shake number sponsor obtains a private key for encrypting shake number data from a notarization department in advance, and the notarization structure obtains a public key for authenticating shake number data encrypted by the private key from the notarization department in advance.
Optionally, the first shake number data uplink request includes shake number data encrypted by the shake number host with a private key; the apparatus further comprises:
and the first authentication unit is used for authenticating the first shaking number data uplink request by using the public key acquired from the notarization department through the notarization structure.
Optionally, the apparatus further includes:
the encryption unit is used for encrypting the second shake-number data uplink request by the shake-number sponsor through the private key acquired from the notarization department to obtain an encrypted second shake-number data uplink request;
and the second authentication unit is used for authenticating the encrypted second shaking number data uplink request by using the public key acquired from the notarization department through the notarization structure.
The embodiment of the application also provides a number shaking device based on a block chain, which comprises: a processor, memory, system bus;
the processor and the memory are connected through the system bus;
the memory is for storing one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform any of the implementations of the blockchain-based number panning method described above.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, and when the instructions are run on terminal equipment, the terminal equipment is caused to execute any implementation mode of the block chain-based number shaking method.
According to the method and the device for the shake number based on the block chain, a block chain node firstly receives a first shake number data uplink request sent by a shake number sponsor, wherein the first shake number data uplink request is uplink after passing through certification of a notarization mechanism, then receives a second shake number data uplink request sent by a shake number participant, wherein the second shake number data uplink request is uplink after passing through certification of the notarization mechanism, and then can shake numbers according to the first shake number data uplink request and the second shake number data uplink request to obtain a shake number result; and further, a third shake number data uplink request to be sent by the notarization mechanism can be received, wherein the third shake number data uplink request is uplink after the notarization mechanism encrypts the shake number result. Therefore, the embodiment of the application realizes the shaking of the number based on the blockchain technology, and all shaking information on the blockchain passes through certification of the notarization organization, so that authenticity, effectiveness and non-tamper-evident property of all information data generated in the shaking process are ensured, the full-flow tracking of the shaking number is realized, the fairness, fairness and disclosure are improved, the problems of cheating and the like possibly existing in the shaking number are solved, and the public confidence of the shaking number is also improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a number shaking method based on a blockchain according to an embodiment of the present application;
FIG. 2 is a schematic diagram of overall interaction of a blockchain-based shake number provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a serial number rocking device based on a blockchain according to an embodiment of the present application.
Detailed Description
At present, various number-shaking technologies and applications widely influence the life and work of people, such as number-shaking arrangement examination positions, number-shaking decision license plate qualification, number-shaking decision winning numbers and the like, and the existing number-shaking platforms mostly adopt centralized databases, so that the number-shaking times of commodities, number-shaking time, mobile phones used by user numbers and the like are saved; however, the database of the number-shaking platform has the danger of data tampering, the authenticity of the number-shaking data cannot be guaranteed, and the number-shaking times of a commodity is modified by the number-shaking operation platform, the user bad evaluation is deleted and the like. Therefore, a method capable of guaranteeing the authenticity of various shaking activities and the validity of shaking data is lacking in the prior art.
In order to solve the above-mentioned drawbacks, the present application provides a method for rolling up a number based on a blockchain, in which a blockchain node first receives a first rolling up request sent by a rolling up host, where the first rolling up request is rolled up after passing certification by a notarization agency, then receives a second rolling up request sent by a rolling up participant, where the second rolling up request is rolled up after passing certification by the notarization agency, and then can roll up according to the first rolling up request and the second rolling up request to obtain a rolling up result; and further, a third shake number data uplink request to be sent by the notarization mechanism can be received, wherein the third shake number data uplink request is uplink after the notarization mechanism encrypts the shake number result. Therefore, the embodiment of the application realizes the shaking of the number based on the blockchain technology, and all shaking information on the blockchain passes through certification of the notarization organization, so that authenticity, effectiveness and non-tamper-evident property of all information data generated in the shaking process are ensured, the full-flow tracking of the shaking number is realized, the fairness, fairness and disclosure are improved, the problems of cheating and the like possibly existing in the shaking number are solved, and the public confidence of the shaking number is also improved.
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
First realityExamples
Referring to fig. 1, a flow chart of a blockchain-based number shaking method is provided in this embodiment, and the method includes the following steps:
s101: and receiving a first shake-number data uplink request sent by the shake-number sponsor, wherein the first shake-number data uplink request is uplink after passing the certification of the notarization institution.
In the embodiment, in order to realize the full-flow hasping of lottery numbers, the lottery numbers are more fair, fair and public. The public trust and influence of various shaking activities are assisted, the problems of cheating and the like of shaking are solved, and a shaking sponsor, a shaking participant and a notarization mechanism are simultaneously connected to establish a alliance chain, so that the shaking sponsor, the shaking participant and the notarization mechanism are all block chain nodes on the alliance chain.
Moreover, it should be noted that each node (such as the sponsor of the shake number and the notarization organization) on the federation chain needs to pass qualification verification at the national notarization department, and only pass verification at the national notarization department can join the federation chain.
In one possible implementation manner of the embodiment of the present application, before executing step S101, the shake-number sponsor may obtain, in advance, a private key for encrypting shake-number data from a notarization department, and the notarization structure may obtain, in advance, a public key for authenticating shake-number data encrypted by the private key from the notarization department.
Specifically, in this implementation, after the sponsor and the notarization authority pass qualification auditing at the national notarization authority, the national notarization authority issues a pair of keys to the sponsor and the notarization authority for ensuring the admission threshold and the uniqueness of the sponsor and the notarization authority on the blockchain. Wherein the pair of keys includes a private key and a public key. When the shaking number sponsor applies for the shaking number activity, the shaking number sponsor and the notarization organization simultaneously apply for the national notarization department, after the application passes, the national notarization department can issue a private key for encrypting shaking number data (shaking number participant information and shaking number information) to the shaking number sponsor, and issue a public key for decrypting and verifying the shaking number data encrypted by the private key to the notarization organization.
Thus, the node on the blockchain may receive the first shake-number data uplink request sent by the shake-number sponsor to perform the subsequent step S103. The first shake number data uplink request includes shake number data (may be shake number participant information, shake number activity information and the like) encrypted by a shake number host through a private key, and after decryption verification is performed on the encrypted shake number data through a notarization structure through a public key acquired from a notarization department, the first shake number data uplink request after 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. If the shaking number sponsor needs to shake the number again, the shaking number application needs to be carried out again and is checked by the national notarization department again, after the application passes, the national notarization department can issue a private key for encrypting shaking number data to the shaking number sponsor again and issue a public key for decrypting the shaking number data encrypted by the private key to the notarization institution.
S102: and receiving a second shake-number data uplink request sent by the shake-number participant, wherein the second shake-number data uplink request is uplink after passing the certification of the notarization institution.
In this embodiment, the number-shaking participant may query the number-shaking activity information issued by the number-shaking sponsor, such as the progress status of the number-shaking activity, the prize-exchanging information of the number-shaking winner, etc., through the number-shaking Application software (APP) installed on the terminal device or on the web page version number-shaking system.
Furthermore, the number shaking participants can sign an account online and fill in relevant sign information according to the inquired number shaking activity information. And sending the registration information to a shaking number sponsor and/or a notarization mechanism in the alliance chain in an intelligent contract mode so that the shaking number sponsor and/or the notarization mechanism can perform qualification verification on the shaking number participants, and after verification is passed, storing the registration information of the shaking number participants in a link.
Next, taking verification of registration information of the number rocker by the number rocker host as an example, the verification process is described, and the specific verification process comprises the following steps of:
step A: and encrypting the second shake-number data uplink request by using the private key acquired from the notarization department by the shake-number sponsor to obtain the encrypted second shake-number data uplink request.
In this embodiment, the second shake-number data uplink request is defined by the shake-number participant through the APP or the request for shake-number registration on the web page, where the registration information and the request information of the shake-number participant may be included. In order to ensure the authenticity, the effectiveness and the non-tamper property of all information data generated in the process of shaking numbers, after a shaking number participant puts forward a second shaking number data uplink request, firstly, a shaking number sponsor can encrypt the second shaking number data uplink request by using a private key acquired from a notarization to obtain an encrypted second shaking number data uplink request for executing a subsequent step B.
And (B) step (B): and authenticating the encrypted second shaking number data uplink request by using a public key acquired from a notarization department through a notarization structure.
And C, after the encrypted second shaking data uplink request is obtained in the step A, decrypting and verifying the encrypted second shaking data uplink request by utilizing a public key obtained from a notarization place through a notarization structure, and uplink the verified second shaking data uplink request.
Thus, the node on the blockchain may receive a second shake-number data uplink request sent by the shake-number participant to perform the subsequent step S103.
It can be seen that, in this embodiment, the notarization mechanism is an indispensable node on the federation chain, and if there is no node, all the information of the shake numbers sent by the shake number sponsor and the shake number participant cannot be linked, that is, all the shake number information needs to be linked by using the public key obtained from the notarization department by the notarization mechanism, so that the authenticity, validity and non-tamper-proof modification of all the information data generated in the shake number process are ensured.
S103: and carrying out number shaking according to the first number shaking data uplink request and the second number shaking data uplink request to obtain a number shaking result.
In this embodiment, after receiving the first shake number data uplink request sent by the shake number sponsor through step S102 and receiving the second shake number data uplink request sent by the shake number participant through step S101, the shake number may be further performed according to the first shake number data uplink request and the second shake number data uplink request on the chain, so as to obtain a shake number result.
Wherein a blockchain chunk includes a blockhead and a blockbody. The block header contains a parent block hash, version, timestamp, difficulty, random number, child block, merkel root, etc. The zone block contains Merkel root trees and transaction data. The information contained in the single transaction data includes information of a shaking number sponsor (such as personal information of the sponsor, public information, shaking number requirements and the like), information of a shaking number participant (such as personal information of the participant, requirements for participating in shaking numbers and the like), information of a notarization mechanism (such as organization codes of the notarization mechanism, corporate information, mechanism addresses, service ranges and the like), and the like.
S104: and receiving a third shaking data uplink request sent by the notarization mechanism, wherein the third shaking data uplink request is uplink after the notarization mechanism encrypts a shaking result.
In this embodiment, after the number shaking result is obtained through step S103, in order to ensure the authenticity, validity, and non-tamper ability of the number shaking result. The key obtained from the notarization needs to be used by the notarization authority to encrypt the wobble result and to uplink the encrypted wobble result (which is defined herein as the third wobble data uplink request). Therefore, the full-flow hasse of the number shaking process can be realized, and the number shaking process is more fair, fair and public.
In summary, according to the blockchain-based method, a blockchain node receives a first shake data uplink request sent by a shake host, wherein the first shake data uplink request is uplink after passing through certification by a notarization mechanism, then receives a second shake data uplink request sent by a shake participant, wherein the second shake data uplink request is uplink after passing through certification by the notarization mechanism, and then can shake numbers according to the first shake data uplink request and the second shake data uplink request to obtain a shake result; and further, a third shake number data uplink request to be sent by the notarization mechanism can be received, wherein the third shake number data uplink request is uplink after the notarization mechanism encrypts the shake number result. Therefore, the embodiment of the application realizes the shaking of the number based on the blockchain technology, and all shaking information on the blockchain passes through certification of the notarization organization, so that authenticity, effectiveness and non-tamper-evident property of all information data generated in the shaking process are ensured, the full-flow tracking of the shaking number is realized, the fairness, fairness and disclosure are improved, the problems of cheating and the like possibly existing in the shaking number are solved, and the public confidence of the shaking number is also improved.
It should be noted that, for ease of understanding, the overall interaction diagram of the blockchain-based shake number shown in fig. 2 is now combined. The implementation process of the blockchain-based number shaking method provided by the embodiment of the application is introduced.
As shown in fig. 2, the implementation procedure of the embodiment of the present application is: firstly, a alliance chain is built in advance based on a blockchain technology, a shaking host, a shaking participant, a notarization mechanism and the like are connected into the alliance chain according to a protocol (such as an intelligent contract), the shaking host and the notarization mechanism need to pass qualification checking at national notarization places before being up-linked, and after the checking passes, the national notarization places can issue a pair of secret keys to the shaking host and the notarization mechanism so as to ensure the admission threshold and the uniqueness of the shaking host and the notarization mechanism on the blockchain. Then, the shake number sponsor issues a need for shake number, and the need information is issued to the blockchain after being encrypted by the private key. After the shake number participant inquires about the shake number requirement by means of the shake number APP or webpage, online registration can be performed, corresponding information is filled in, after the shake number participant passes verification, the registration information is encrypted by the shake number participant through a private key and then is uplink. Or, after passing the verification of the notarization organization, the registration information can be linked, so that other organization nodes on the link can perform the consensus verification. After the shaking result is obtained by carrying out shaking, the shaking result can be encrypted and uplink through a notarization mechanism, all nodes on a chain are broadcasted, the shaking process is completed, the authenticity, the effectiveness and the non-tamper-resistance of all information data generated in the shaking process are ensured, the whole process of shaking is more fair, fair and public, and the specific implementation process is seen in the steps S101-S104.
Second embodiment
The present embodiment will be described with reference to a blockchain-based number rocking device, and for related content, reference is made to the above-mentioned method embodiments.
Referring to fig. 3, a schematic diagram of a serial number rocking device based on a blockchain is provided in this embodiment, where the serial number rocking device includes:
a first receiving unit 301, configured to receive a first shake-number data uplink request sent by a shake-number sponsor, where the first shake-number data uplink request is uplink after passing through notarization authority authentication;
a second receiving unit 302, configured to receive a second shake-number data uplink request sent by a shake-number participant, where the second shake-number data uplink request is uplink after passing through the notarization mechanism authentication;
a number shaking unit 303, configured to perform number shaking according to the first number shaking data uplink request and the second number shaking data uplink request, to obtain a number shaking result;
and a third receiving unit 304, configured to receive a third rolling number data uplink request sent by the notarization mechanism, where the third rolling number data uplink request is encrypted by the notarization mechanism and then is uplink.
In one implementation of this embodiment, the shake-number sponsor, the shake-number participant, and the notarization authority are blockchain nodes on the same federation chain.
In one implementation manner of this embodiment, before invoking the first receiving unit 301, the shake-number sponsor obtains, in advance, a private key for encrypting shake-number data from a notarization place, and the notarization structure obtains, in advance, a public key for authenticating shake-number data encrypted by the private key from the notarization place.
In one implementation of this embodiment, the first shake data uplink request includes shake data encrypted by the shake host using a private key; the apparatus further comprises:
and the first authentication unit is used for authenticating the first shaking number data uplink request by using the public key acquired from the notarization department through the notarization structure.
In one implementation of this embodiment, the apparatus further includes:
the encryption unit is used for encrypting the second shake-number data uplink request by the shake-number sponsor through the private key acquired from the notarization department to obtain an encrypted second shake-number data uplink request;
and the second authentication unit is used for authenticating the encrypted second shaking number data uplink request by using the public key acquired from the notarization department through the notarization structure.
In summary, in the blockchain-based number shaking device provided by the embodiment, a blockchain node firstly receives a first number shaking data uplink request sent by a number shaking host, wherein the first number shaking data uplink request is uplink after passing through certification of a notarization mechanism, then receives a second number shaking data uplink request sent by a number shaking participant, wherein the second number shaking data uplink request is uplink after passing through certification of the notarization mechanism, and then can shake numbers according to the first number shaking data uplink request and the second number shaking data uplink request to obtain a number shaking result; and further, a third shake number data uplink request to be sent by the notarization mechanism can be received, wherein the third shake number data uplink request is uplink after the notarization mechanism encrypts the shake number result. Therefore, the embodiment of the application realizes the shaking of the number based on the blockchain technology, and all shaking information on the blockchain passes through certification of the notarization organization, so that authenticity, effectiveness and non-tamper-evident property of all information data generated in the shaking process are ensured, the full-flow tracking of the shaking number is realized, the fairness, fairness and disclosure are improved, the problems of cheating and the like possibly existing in the shaking number are solved, and the public confidence of the shaking number is also improved.
Further, the embodiment of the application also provides a number shaking device based on a block chain, which comprises: a processor, memory, system bus;
the processor and the memory are connected through the system bus;
the memory is for storing one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform any of the implementations of the blockchain-based number rocking method described above.
Further, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, and when the instructions run on a terminal device, the terminal device is caused to execute any implementation method of the blockchain-based number shaking method.
From the above description of embodiments, it will be apparent to those skilled in the art that all or part of the steps of the above described example methods may be implemented in software plus necessary general purpose hardware platforms. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art 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., including several instructions to cause a computer device (which may be a personal computer, a server, or a network communication device such as a media gateway, etc.) to perform the methods described in the embodiments or some parts of the embodiments of the present application.
It should be noted that, in the present description, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different manner from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
It is further noted that relational terms such as first and second, and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like 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 blockchain-based number shaking method, comprising:
receiving a first shake number data uplink request sent by a shake number sponsor, wherein the first shake number data uplink request is uplink after passing notarization authority authentication;
receiving a second shake number data uplink request sent by a shake number participant, wherein the second shake number data uplink request is uplink after passing through the certification of the notarization mechanism; the second shake number data uplink request comprises the registration information and the request information of the shake number participants;
according to the first number shaking data uplink request and the second number shaking data uplink request, a number shaking result is obtained;
and receiving a third shaking data uplink request sent by the notarization mechanism, wherein the third shaking data uplink request is uplink after the notarization mechanism encrypts the shaking result.
2. The method of claim 1, wherein the shake-sponsor, the shake-participant, and the notarization authority are blockchain nodes on a same federation chain.
3. The method according to claim 1 or 2, wherein prior to receiving the first shake data uplink request sent by the shake host, the shake host obtains a private key for encrypting shake data from a notarization place in advance, and the notarization institution obtains a public key for authenticating shake data encrypted by the private key from the notarization place in advance.
4. The method of claim 3, wherein the first shake data uplink request includes shake data encrypted by the shake host with a private key; before receiving the first shake number data uplink request sent by the shake number sponsor, the method further comprises the following steps:
authenticating, by the notarization authority, the first rolling number data uplink request using a public key obtained from the notarization department.
5. The method of claim 3, further comprising, prior to receiving the second pan number data uplink request sent by the pan number participant:
encrypting the second shake-number data uplink request by the shake-number sponsor through a private key acquired from the notarization department to obtain an encrypted second shake-number data uplink request;
and authenticating the encrypted second shaking number data uplink request by the notarization mechanism by utilizing a public key acquired from the notarization department.
6. A blockchain-based number shaking device, comprising:
the first receiving unit is used for receiving a first shake number data uplink request sent by a shake number sponsor, wherein the first shake number data uplink request is uplink after passing notarization agency authentication;
the second receiving unit is used for receiving a second shake number data uplink request sent by a shake number participant, wherein the second shake number data uplink request is uplink after passing through the notarization mechanism authentication; the second shake number data uplink request comprises the registration information and the request information of the shake number participants;
the number shaking unit is used for carrying out number shaking according to the first number shaking data uplink request and the second number shaking data uplink request to obtain a number shaking result;
the third receiving unit is used for receiving a third number shaking data uplink request sent by the notarization mechanism, and the third number shaking data uplink request is uplink after the notarization mechanism encrypts the number shaking result.
7. The apparatus of claim 6, wherein the shake-sponsor, the shake-participant, and the notarization authority are blockchain nodes on a same federation chain.
8. The apparatus of claim 6 or 7, wherein prior to invoking the first receiving unit, the shake sponsor obtains in advance a private key for encrypting shake data from a notarization department from which the notarization institution obtains in advance a public key for authenticating shake data encrypted by the private key.
9. The apparatus of claim 8, wherein the first shake data uplink request comprises shake data encrypted by the shake host with a private key; the apparatus further comprises:
and the first authentication unit is used for authenticating the first shaking number data uplink request by the notarization mechanism by utilizing the public key acquired from the notarization department.
10. The apparatus of claim 8, wherein the apparatus further comprises:
the encryption unit is used for encrypting the second shake-number data uplink request by the shake-number sponsor through the private key acquired from the notarization department to obtain an encrypted second shake-number data uplink request;
and the second authentication unit is used for authenticating the encrypted second shaking number data uplink request by the notarization mechanism by utilizing the public key acquired from the notarization department.
11. A blockchain-based number shaking device, comprising: a processor, memory, system bus;
the processor and the memory are connected through the system bus;
the memory is for storing 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, characterized in that the computer readable storage medium has stored therein instructions, which when run on a terminal device, cause the terminal device to perform the method of any 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 CN111460482A (en) | 2020-07-28 |
CN111460482B true 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) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111865587B (en) * | 2020-08-07 | 2021-08-31 | 腾讯科技(深圳)有限公司 | 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 |
CN112562168B (en) * | 2020-11-27 | 2022-08-02 | 中国联合网络通信集团有限公司 | Block chain-based online shaking method, system, equipment and storage medium |
CN112714135B (en) * | 2021-01-20 | 2023-05-02 | 杭州安存网络科技有限公司 | Activity management method based on block chain |
Citations (6)
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102263325B1 (en) * | 2019-04-26 | 2021-06-15 | 어드밴스드 뉴 테크놀로지스 씨오., 엘티디. | How to securely execute smart contract actions in a trusted execution environment |
-
2020
- 2020-04-15 CN CN202010294635.2A patent/CN111460482B/en active Active
Patent Citations (6)
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN111460482A (en) | 2020-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111460482B (en) | Block chain-based number shaking method and device | |
CN111737724B (en) | Data processing method and device, intelligent equipment and storage medium | |
Zaghloul et al. | Bitcoin and blockchain: Security and privacy | |
CN110309634B (en) | Credible advertisement data management system based on block chain | |
KR102255287B1 (en) | Physical identity management system using One-time-password on Blockchain | |
JPH09507729A (en) | Cryptographic system and method with key escrow function | |
WO2020051710A1 (en) | System and process for managing digitized security tokens | |
CN114329529A (en) | Asset data management method and system based on block chain | |
Gayvoronskaya et al. | Blockchain | |
CN111815321A (en) | Transaction proposal processing method, device, system, storage medium and electronic device | |
CN111460457A (en) | Real estate property registration supervision method, device, electronic equipment and storage medium | |
CN111460400A (en) | Data processing method and device and computer readable storage medium | |
CN110490640A (en) | Method, apparatus and system for object distribution processor | |
CN114866323A (en) | User-controllable private data authorization sharing system and method | |
CN112448946A (en) | Log auditing method and device based on block chain | |
CN110708162A (en) | Resource acquisition method and device, computer readable medium and electronic equipment | |
CN109818965B (en) | Personal identity verification device and method | |
CN115147224A (en) | Transaction data sharing method and device based on alliance chain | |
Wang et al. | Housing rental scheme based on redactable blockchain | |
Boontaetae et al. | RDI: Real digital identity based on decentralized PKI | |
Avitabile et al. | Terrorist attacks for fake exposure notifications in contact tracing systems | |
CN113536372B (en) | Data processing method and device and electronic equipment | |
CN115643047A (en) | Block chain identity authentication method based on honest rewards | |
Li et al. | A noninteractive multireplica provable data possession scheme based on smart contract | |
CN114666064A (en) | Block chain-based digital asset management method, device, storage medium and equipment |
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 | ||
GR01 | Patent grant |