WO2022068644A1 - Target user determination method and apparatus, and device and storage medium - Google Patents

Target user determination method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2022068644A1
WO2022068644A1 PCT/CN2021/119581 CN2021119581W WO2022068644A1 WO 2022068644 A1 WO2022068644 A1 WO 2022068644A1 CN 2021119581 W CN2021119581 W CN 2021119581W WO 2022068644 A1 WO2022068644 A1 WO 2022068644A1
Authority
WO
WIPO (PCT)
Prior art keywords
signature
user
target
extracted
data
Prior art date
Application number
PCT/CN2021/119581
Other languages
French (fr)
Chinese (zh)
Inventor
廖飞强
严强
李昊轩
李辉忠
张开翔
范瑞彬
Original Assignee
深圳前海微众银行股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳前海微众银行股份有限公司 filed Critical 深圳前海微众银行股份有限公司
Publication of WO2022068644A1 publication Critical patent/WO2022068644A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/588Random number generators, i.e. based on natural stochastic processes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Definitions

  • the present application relates to data processing technology, and in particular, to a target user determination method, apparatus, device and storage medium.
  • the process of lottery is usually as follows: the user obtains the lottery with the real name, and the lottery number is generated by the lottery organizer using a random value algorithm. The user who matches the winning number will be the winning user.
  • the above-mentioned lottery number is generated by the lottery organizer, and its randomness is questionable. It is possible that the lottery organizer tampered with the lottery number. The odds of winning certain draws. Therefore, it is difficult for the existing lottery mechanism to prove itself to be fair and just. In addition, existing users need to participate in the lottery with their real names, and the user's private information may be known to other personnel, which may be illegally used and bring some adverse effects to users.
  • the present application provides a target user determination method, apparatus, device and storage medium.
  • an embodiment of the present application provides a method for determining a target user, the method comprising:
  • An object to be extracted is determined according to the at least one signature, a target user corresponding to the object to be extracted is determined according to the lottery number, and a notification message is sent to the target user.
  • the acquiring the data to be processed in the blockchain includes:
  • the preset time can be set according to the actual situation, and the data to be processed is obtained through the preset time to ensure certain fairness, openness and uncertainty.
  • the data stored in the blockchain is not easy to be tampered with, which further improves the fairness and openness of subsequent processing results.
  • the determining the object to be extracted according to the at least one signature includes:
  • the object to be extracted is determined according to the target signature.
  • the obtaining the target signature according to the at least one signature includes:
  • the target signature is obtained according to the at least one signature.
  • the obtaining the target signature according to the at least one signature includes:
  • the at least one signature determines a preset number of signatures with the latest acquisition moment in the at least one signature, wherein the preset number is less than or equal to the number of the at least one signature;
  • the obtaining the target signature according to the at least one signature includes:
  • the target signature is obtained by summing or multiplying the at least one signature.
  • the embodiment of the present application obtains the target signature by summing or multiplying the acquired signatures, thereby enhancing the randomness of the target signature, thereby improving the fairness and impartiality of the subsequent processing result.
  • the determining the object to be extracted according to the target signature includes:
  • the to-be-extracted object is determined according to the target signature and the number of the to-be-participated users.
  • the determining the target user corresponding to the object to be extracted according to the lottery number includes:
  • the target user corresponding to the to-be-extracted object is determined.
  • the determining the object to be extracted according to the target signature and the number of the users to be participated includes:
  • the object to be extracted is determined.
  • the blockchain stores the correspondence between the lottery number corresponding to the user to be participated and the hash value of the random number corresponding to the user to be participated.
  • the number of users to be involved is also considered, that is, the object to be extracted is determined according to the target signature and the number of users to be involved, so that according to the lottery
  • the corresponding relationship between the number and the above-mentioned users to be involved is determined, and the target users corresponding to the above-mentioned objects to be extracted are determined to ensure that each user extraction will have a user selected, and there will be no invalid extraction process, which is suitable for application.
  • the security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the to-be-extracted objects, thereby ensuring that subsequent determinations based on the above-mentioned objects to be extracted are guaranteed.
  • the accuracy of the target user improves the fairness and impartiality in the user extraction process.
  • the embodiment of the present application does not need to know the real information of the user to be participated, but only needs to know the random number corresponding to the user to be participated, so as to protect the user's privacy information and avoid User privacy information is used illegally.
  • the method further includes:
  • the query request carries a random number corresponding to the user to be queried
  • Whether the user to be queried is the target user is determined according to the hash value of the random number corresponding to the user to be queried and the hash value of the random number corresponding to the target user.
  • the data request includes a random number corresponding to the user to be participated, so that the random number is uploaded to the blockchain to determine the lottery number corresponding to the user to participate, and obtained from the blockchain
  • Data to be processed send the data to be processed to at least one signature terminal for signature, obtain at least one signature, and then, according to the at least one signature, determine the object to be extracted, and determine the object corresponding to the object to be extracted according to the above-mentioned lottery number.
  • Target user send a notification message to the target user.
  • the security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the to-be-extracted objects, thereby ensuring the accuracy of subsequent target users determined based on the above-mentioned objects to be extracted , improve the fairness and impartiality in the user extraction process, and the embodiment of the present application does not need to know the real information of the users to be involved, but only needs to know the random numbers corresponding to the users to be involved, so as to protect the user's private information and prevent the user's private information from being illegal. use.
  • an embodiment of the present application provides an apparatus for determining a target user, the apparatus comprising:
  • a first obtaining module obtaining a data request, where the data request includes a random number corresponding to the user to be participated;
  • the uploading module is used to upload the random number to the blockchain, and the random number is used to instruct the blockchain to determine the lottery number corresponding to the user to be participated according to the upload sequence of the random number;
  • the second acquiring module is configured to acquire the data to be processed in the blockchain, and send the data to be processed to at least one signature terminal, where the data to be processed is used to instruct the at least one signature terminal to Process the data for signature and obtain at least one signature;
  • the determining module is configured to determine the object to be extracted according to the at least one signature, determine the target user corresponding to the object to be extracted according to the lottery number, and send a notification message to the target user.
  • the second obtaining module is specifically used for:
  • the determining module is specifically used for:
  • the object to be extracted is determined according to the target signature.
  • the determining module is specifically used for:
  • the target signature is obtained according to the at least one signature.
  • the determining module is specifically used for:
  • the at least one signature determines a preset number of signatures with the latest acquisition moment in the at least one signature, wherein the preset number is less than or equal to the number of the at least one signature;
  • the determining module is specifically used for:
  • the target signature is obtained by summing or multiplying the at least one signature.
  • the determining module is specifically used for:
  • the to-be-extracted object is determined according to the target signature and the number of the to-be-participated users.
  • the determining module is specifically used for:
  • the target user corresponding to the to-be-extracted object is determined.
  • the determining module is specifically used for:
  • the object to be extracted is determined.
  • the blockchain stores the correspondence between the lottery number corresponding to the user to be participated and the hash value of the random number corresponding to the user to be participated.
  • the above device further includes: a query module, configured to obtain a query request after the determination module determines a target user corresponding to the object to be extracted according to the lottery number, and the query request carries a random number corresponding to the user to be queried ;
  • Whether the user to be queried is the target user is determined according to the hash value of the random number corresponding to the user to be queried and the hash value of the random number corresponding to the target user.
  • an embodiment of the present application provides a device for determining a target user, including:
  • the computer program is stored in the memory and configured to be executed by the processor, the computer program comprising instructions for performing the method of the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program causes a server to execute the method described in the first aspect.
  • the target user determination method, device, device and storage medium provided by the embodiments of the present application, the method obtains a data request, the data request includes a random number corresponding to the user to be involved, thereby uploading the random number to the blockchain to determine The lottery number corresponding to the user to be participated, and obtain the data to be processed from the blockchain, send the data to be processed to at least one signature terminal for signature, obtain at least one signature, and then, according to the at least one signature, determine the object to be extracted , and according to the lottery number, determine the target user corresponding to the object to be extracted, and send a notification message to the target user.
  • the security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the to-be-extracted objects, thereby ensuring the accuracy of subsequent target users determined based on the above-mentioned objects to be extracted , improve the fairness and impartiality in the user extraction process, and the embodiment of the present application does not need to know the real information of the users to be involved, but only needs to know the random numbers corresponding to the users to be involved, so as to protect the user's private information and prevent the user's private information from being illegal. use.
  • FIG. 1 is a schematic diagram of the architecture of a target user determination system provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a method for determining a target user according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of another target user determination system architecture provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another target user determination method provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an apparatus for determining a target user according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of another apparatus for determining a target user provided by an embodiment of the present application.
  • FIG. 7A is a possible basic hardware architecture diagram of a target user determination device provided by an embodiment of the present application.
  • FIG. 7B is another possible basic hardware architecture diagram of the target user determination device provided by the embodiment of the present application.
  • the process of lottery is usually as follows: the user obtains the lottery with the real name, and the lottery number is generated by the lottery organizer using a random value algorithm. The user who matches the winning number will be the winning user.
  • the above-mentioned lottery number is generated by the lottery organizer, and its randomness is questionable. It is possible that the lottery organizer tampered with the lottery number. The odds of winning certain draws. Exemplarily, taking the lottery to determine the winning unit as an example, the lottery organizer knows the lottery numbers of each unit participating in the bidding. If for some reason, the chance of winning the lottery of unit A is to be increased, the lottery lottery The lottery organizer can conduct a lottery on the lottery numbers of each unit. Adjustment, for example, changing the lottery numbers of multiple units in the above-mentioned units to the lottery of unit A, thereby increasing the chance of winning the lottery of unit A. Therefore, it is difficult for the existing lottery mechanism to prove itself to be fair and just.
  • unit A participates in the bidding with its real name.
  • unit A provides some relatively confidential information of the company to participate in the bidding, which may lead to the disclosure of the above-mentioned information of unit A.
  • Candidate A participates in the lottery with his real name.
  • Candidate A provides his real name, student number, or even ID number, etc., which may lead to the disclosure of the above information of Candidate A.
  • the embodiment of the present application proposes a method for determining a target user, which uploads the random number corresponding to the user to be participated to the blockchain to determine the lottery number, so as to determine the to-be-extracted based on the data stored in the blockchain and multiple signature terminals.
  • object and based on the lottery number, determine the target user corresponding to the object to be extracted, and send a notification message to the target user.
  • the security of the object to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the object to be extracted, thereby ensuring the accuracy of the subsequent target user determined based on the object to be extracted.
  • the embodiment of the present application does not need to know the real information of the users to be involved, but only needs to know the random numbers corresponding to the users to be involved, so as to protect the user's private information and prevent the user's private information from being illegal. use.
  • FIG. 1 is a schematic diagram of an architecture of a target user determination system provided by an embodiment of the present application.
  • the winning unit is determined by lottery as an example.
  • the above architecture includes a processing device 11 and at least one signature terminal.
  • the at least one signature terminal includes the first signature terminal 121 , the second signature terminal 122 and the third signature terminal 123 as an example.
  • the processing device 11 can be understood as the server of the lottery organizer, and executes the whole lottery process.
  • the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the target user determination architecture.
  • the above architecture may include more or less components than shown in the figure, or combine some components, or separate some components, or arrange different components, depending on the actual application. The scene is determined, and there is no restriction here.
  • the components shown in Figure 1 may be implemented in hardware, software, or a combination of software and hardware.
  • the processing device 11 first obtains a data request, which includes a random number corresponding to the user to be participated, and then uploads the random number to the blockchain to determine the lottery number corresponding to the user to participate, and then retrieves the random number from the blockchain.
  • the data to be processed is obtained from the above, and the data to be processed is sent to the above at least one signature terminal.
  • the above-mentioned data to be processed can be any data that needs to be processed, for example, the above-mentioned data to be processed is data related to each of the above-mentioned winning units, or is irrelevant to each of the above-mentioned winning units The data.
  • the processing device 11 sends the above-mentioned data to be processed to the above-mentioned at least one signature terminal, that is, the above-mentioned first signature terminal 121 , the second signature terminal 122 and the third signature terminal 123 .
  • the first signature terminal 121, the second signature terminal 122 and the third signature terminal 123 respectively sign the above data to be processed.
  • the first signature terminal 121, the second signature terminal 122 and the third signature terminal 123 can respectively generate private keys sk1, sk2 and sk3 locally, and then use the generated private keys.
  • the signature algorithm sign can be determined according to the actual situation, for example, RSA, ECDSA signature algorithm or national secret signature algorithm is used.
  • the processing device 11 obtains the signatures of the above-mentioned first signature terminal 121, the second signature terminal 122 and the third signature terminal 123 on the above-mentioned data to be processed, thereby, according to these signatures, determine the object to be extracted, and according to the above-mentioned lottery number, determine the same as the above-mentioned.
  • the target user corresponding to the object to be extracted sends a notification message to the target user.
  • the security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the objects to be extracted, thereby ensuring that the target users determined based on the above-mentioned objects to be extracted, such as winning the bid.
  • the accuracy of the unit is improved, and the fairness and impartiality in the user extraction process are improved.
  • the embodiment of the present application does not need to know the real information of the users to participate, but only needs to know the random numbers corresponding to the users to participate, so as to protect user privacy information and avoid users Private information is used illegally.
  • system architecture and business scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute limitations on the technical solutions provided by the embodiments of the present application.
  • the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
  • FIG. 2 is a schematic flowchart of a method for determining a target user provided by an embodiment of the present application.
  • An embodiment of the present application provides a method for determining a target user. The method can be applied to the process of determining the target user, and the method can be executed by any The target user determines the method of the apparatus to execute, and the apparatus may be implemented by software and/or hardware.
  • the target user determination method provided by the embodiment of the present application includes the following steps:
  • S201 Obtain a data request, where the data request includes a random number corresponding to the user to be participated.
  • the execution subject is the processing device 11 in FIG. 1 .
  • the to-be-participated user sends a data request to the processing device 11 , for example, the to-be-participated user sends a random number r to the processing device 11 .
  • the above random number r may be a pseudo-random number locally generated by each user to be involved, and is generated by the user independently.
  • the pseudo-random number may be a sequence of random numbers uniformly distributed in [0,1]. Exemplarily, as shown in FIG. 3 , in FIG.
  • the above-mentioned users to participate include user 1, user 2, user 3, user 4 and user 5 as an example
  • the above-mentioned at least one signature terminal 12 includes the first signature terminal 121
  • the second signature terminal 122 and the third signature terminal 123 are taken as an example.
  • S202 Upload the random number to the blockchain, where the random number is used to instruct the blockchain to determine the lottery number corresponding to the user to be participated according to the upload sequence of the random number.
  • the blockchain after receiving the random numbers corresponding to the above-mentioned users to be participated, the blockchain can generate a lottery number for each of the users to be participated according to the chaining sequence, for example, there are the above-mentioned five users to be participated, User 1 is the first on the chain, and the above blockchain generates a lottery number for the user, such as 0. User 2 is the second on the chain, the above blockchain will generate a lottery number for the user, such as 1. If subsequent users 3, 4 and 5 are listed in sequence, the above blockchain will generate a lottery number for these users in sequence, such as 2, 3 and 4.
  • the above-mentioned blockchain may store the correspondence between the lottery numbers of the users to be participated and the users to be participated, for example, store the correspondence between the lottery number 0 of the user 1 and the user 1.
  • the blockchain can also store the hash value of the random number.
  • each to-be-participated user generates a random number r, calculates its hash value, for example, uses the one-way hash algorithm SHA3 to generate the hash value SHA3(r), and uploads it to the above-mentioned blockchain.
  • the above-mentioned blockchain can store the corresponding relationship between the lottery number of the user to be participated and the hash value of the user to be participated.
  • the random number corresponding to user 1 is r1
  • the hash value of the random number is SHA3(r1).
  • the above blockchain stores the correspondence between user 1's lottery number 0 and user 1's hash value SHA3(r1).
  • the embodiment of the present application does not need to know the real information of the user to be participated, but only needs to know the random number corresponding to the user to be participated, so as to protect the user's private information and prevent the user's private information from being illegally used.
  • S203 Acquire the data to be processed in the blockchain, and send the data to be processed to at least one signature terminal, where the data to be processed is used to instruct the at least one signature terminal to sign the data to be processed to obtain at least one signature.
  • the above-mentioned data to be processed may be any data that needs to be processed, for example, the above-mentioned data to be processed is data related to the above-mentioned users to be participated, or, the above-mentioned data to be participated User irrelevant data.
  • the above-mentioned acquisition of the data to be processed from the blockchain may include: the processing device 11 determines a target block according to a preset time and the time identifier of each block in the above-mentioned blockchain, and thus, according to the target block to obtain the data to be processed above.
  • the above preset time can be set according to the actual situation, for example, time t.
  • the above-mentioned blockchain divides the generated data into block records according to a certain time interval, and each block can be set with a corresponding time mark according to the time of generation.
  • the processing device 11 determines the target block according to a preset time, such as time t, and the time flags set by each of the above blocks. In this way, the processing device 11 can obtain the data stored in the above-mentioned target block as the above-mentioned data to be processed, so as to ensure certain fairness, openness and uncertainty.
  • the data stored in the blockchain is not easy to be tampered with, which further improves the fairness and openness of subsequent processing results.
  • the number of the above-mentioned at least one signature terminal may be determined according to the actual situation. For example, in FIG. 1 , there are three signature terminals, a first signature terminal 121 , a second signature terminal 122 and a third signature terminal 123 .
  • the processing device 11 After obtaining the data to be processed from the blockchain, the processing device 11 sends the data to be processed to the at least one signature terminal.
  • the at least one signature terminal signs the data to be processed.
  • the first signature terminal 121, the second signature terminal 122 and the third signature terminal 123 respectively sign the above data to be processed.
  • the above-mentioned data to be processed is m
  • the signature algorithm sign may use RSA, ECDSA signature algorithm, or national secret signature algorithm.
  • S204 Determine the object to be extracted according to the at least one signature, determine a target user corresponding to the object to be extracted according to the lottery number, and send a notification message to the target user.
  • the above-mentioned processing device 11 obtains the above-mentioned at least one signature from the above-mentioned at least one signature terminal, obtains a target signature according to the above-mentioned at least one signature, and determines the above-mentioned object to be extracted according to the target signature.
  • the above-mentioned processing device 11 may perform processing such as a statistical merging algorithm such as summation or multiplication on the above-mentioned at least one signature to obtain the target signature.
  • processing such as a statistical merging algorithm such as summation or multiplication on the above-mentioned at least one signature to obtain the target signature.
  • the embodiment of the present application obtains the target signature by summing or multiplying the acquired signatures, thereby enhancing the randomness of the target signature, thereby improving the fairness and impartiality of the subsequent processing result.
  • the processing device 11 performs the above-mentioned user extraction process for many times, thereby causing unfairness and injustice in the result of subsequent determination. Multiple results, selecting a certain result from the multiple results as the final result, that is, tampering with the result.
  • a preset time period is set as the signature window, for example, T time length is set as the signature window period.
  • the processing device 11 judges whether the signature time of the at least one signature is within the preset time period, that is, whether it is within the T time length, wherein the signature time is based on the time at which the data to be processed is sent to the at least one signature terminal. and the moment of obtaining the above at least one signature is determined.
  • the above-mentioned signature time is equal to the subtraction result of the above-mentioned time when the above-mentioned at least one signature is obtained and the above-mentioned time when the above-mentioned data to be processed is sent to the at least one signature terminal. If the signature time of the aforementioned at least one signature is within the aforementioned preset time period, that is, within the aforementioned T time length, the processing device 11 obtains the aforementioned target signature according to the aforementioned at least one signature; otherwise, the processing device 11 may stop the operation and proceed to Relevant prompts are provided so that relevant personnel can deal with them in a timely manner.
  • a signature threshold may also be set, for example, the number of signatures obtained at the latest time may be set.
  • the processing device 11 may, according to the moment at which the at least one signature is obtained, determine a preset number of signatures with the latest acquisition time among the at least one signature, wherein the preset number is less than or Equal to the number of at least one signature above. Therefore, the processing device 11 obtains the above-mentioned target signature according to the above-mentioned preset number of signatures.
  • the processing device 11 determines the two signatures with the latest acquisition time among the above three signatures according to the time of acquiring the above three signatures.
  • the above-mentioned signatures s2 and s3 are obtained to obtain the above-mentioned target signature.
  • the above-mentioned processing device 11 may perform summation or accumulation of the above-mentioned preset number of signatures, for example, sum or accumulation of the above-mentioned signatures s2 and s3, etc., to obtain the target signature.
  • the security of the above-mentioned target signature in the embodiment of the present application is guaranteed by multiple signature terminals, blockchain, time window mechanism and signature threshold.
  • Each signing terminal generates an independent private key, so the signature value generated by each signing terminal will be different.
  • the signing terminal cannot calculate the signature in advance, and it is difficult to predict.
  • the time window mechanism and the signature threshold it is impossible to predict in advance which signature values provided by which several signature terminals will constitute the final target signature. Therefore, no single party can know the above target signature in advance to ensure the fairness of subsequent processing.
  • the blockchain stores the correspondence between the lottery number corresponding to the user to be participated and the hash value of the random number corresponding to the user to be participated.
  • the processing device 11 may also obtain a query request, where the query request carries a random number corresponding to the user to be queried.
  • the processing device 11 can calculate the hash value of the random number corresponding to the user to be queried according to the above query request, and determine the hash value of the random number corresponding to the target user according to the above corresponding relationship, and further, according to the above to be queried.
  • the hash value of the random number corresponding to the user and the hash value of the random number corresponding to the target user determine whether the user to be queried is the target user.
  • the processing device 11 provides a query function after determining the target user.
  • the user determines whether he is selected by querying the target user. For example, the user inputs its random number r, and the processing device 11 calculates the hash value of the random number, for example, using SHA3 hash to calculate SHA3(r), and then compares and confirms with the hash value of the random number corresponding to the above target user, If it is, the user is the target user, otherwise it is not.
  • the data request includes a random number corresponding to the user to be participated, so that the random number is uploaded to the blockchain to determine the lottery number corresponding to the user to participate, and obtained from the blockchain
  • Data to be processed send the data to be processed to at least one signature terminal for signature, obtain at least one signature, and then, according to the at least one signature, determine the object to be extracted, and determine the object corresponding to the object to be extracted according to the above-mentioned lottery number.
  • Target user send a notification message to the target user.
  • the security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the to-be-extracted objects, thereby ensuring the accuracy of subsequent target users determined based on the above-mentioned objects to be extracted , improve the fairness and impartiality in the user extraction process, and the embodiment of the present application does not need to know the real information of the users to be participated, but only needs to know the random numbers corresponding to the users to participate, so as to protect the user's private information and avoid the illegal user's private information. use.
  • FIG. 4 is a schematic flowchart of another target user determination method proposed by an embodiment of the present application. As shown in Figure 4, the method includes:
  • S401 Obtain a data request, where the data request includes a random number corresponding to the user to be participated.
  • S402 Upload the random number to the blockchain, where the random number is used to instruct the blockchain to determine the lottery number corresponding to the user to be participated according to the upload sequence of the random number.
  • S403 Acquire the data to be processed in the blockchain, and send the data to be processed to at least one signature terminal, where the data to be processed is used to instruct the at least one signature terminal to sign the data to be processed to obtain at least one signature.
  • steps S401-S403 are implemented in the same manner as the above-mentioned steps S201-S203, and are not repeated here.
  • S404 Obtain a target signature according to the at least one signature, and calculate the remainder of the target signature to the number of users to be participating.
  • the execution subject as the above-mentioned processing device 11 as an example.
  • the above-mentioned number of users to participate is N
  • the above-mentioned target signature is S.
  • the processing means 11 calculates the remainder of S to N.
  • the processing device 11 calculates the remainder of S to N, and the remainder can be any one of 0, 1, 2, 3 and 4.
  • the processing device 11 may use the above-mentioned remainder as the above-mentioned extraction object.
  • S406 Determine a target user corresponding to the object to be extracted according to the correspondence between the lottery number and the user to be participated, and send a notification message to the target user.
  • the above-mentioned blockchain can generate a lottery number for each to-be-participated user according to the chaining sequence, for example, user 1 is the first to be on the chain, Then the above blockchain generates a lottery number, such as 0, for the user. User 2 is the second on the chain, the above blockchain will generate a lottery number for the user, such as 1. If subsequent users 3, 4 and 5 are listed in sequence, the above blockchain will generate a lottery number for these users in sequence, such as 2, 3 and 4.
  • the above-mentioned blockchain can store the correspondence between the lottery numbers of the users to be participated and the users to be participated, for example, store the correspondence between the lottery number 0 of the user 1 and the user 1.
  • the processing device 11 extracts objects based on the above. For example, 0, 1, 2, 3, and 4, as well as the correspondence between the lottery numbers and the users to be participated, wherein the labels of the users to be participated are as above, and can be the above 0, 1, 2, 3, and 4.
  • the target user corresponding to the object to be extracted above sends a notification message to the target user.
  • the number of users to be involved is also considered, that is, the object to be extracted is determined according to the target signature and the number of users to be involved, so that according to the lottery
  • the corresponding relationship between the number and the above-mentioned users to be involved is determined, and the target users corresponding to the above-mentioned objects to be extracted are determined to ensure that each user extraction will have a user selected, and there will be no invalid extraction process, which is suitable for application.
  • the security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the to-be-extracted objects, thereby ensuring that subsequent determinations based on the above-mentioned objects to be extracted are guaranteed.
  • the accuracy of the target user improves the fairness and impartiality in the user extraction process.
  • the embodiment of the present application does not need to know the real information of the user to be participated, but only needs to know the random number corresponding to the user to be participated, so as to protect the user's privacy information and avoid User privacy information is used illegally.
  • FIG. 5 is a schematic structural diagram of an apparatus for determining a target user provided by an embodiment of the present application.
  • the apparatus for determining a target user 50 includes: a first acquiring module 501 , an uploading module 502 , a second acquiring module 503 and a determining module 504 .
  • the device for determining the target user here may be the above-mentioned processing device itself, or a chip or an integrated circuit that implements the functions of the processing device. It should be noted here that the division of the first acquisition module, the upload module, the second acquisition module and the determination module is only a division of logical functions, and the two may be physically integrated or independent.
  • the first obtaining module 501 obtains a data request, where the data request includes a random number corresponding to the user to be participated.
  • the uploading module 502 is configured to upload the random number to the blockchain, where the random number is used to instruct the blockchain to determine the lottery number corresponding to the user to be participated according to the upload sequence of the random number.
  • the second obtaining module 503 is configured to obtain the data to be processed in the blockchain, send the data to be processed to at least one signature terminal, and the data to be processed is used to instruct the at least one signature terminal to The data to be processed is signed, and at least one signature is obtained.
  • the determining module 504 is configured to determine the object to be extracted according to the at least one signature, determine the target user corresponding to the object to be extracted according to the lottery number, and send a notification message to the target user.
  • FIG. 6 is a schematic structural diagram of another apparatus for determining a target user provided by an embodiment of the present application on the basis of the embodiment in FIG. 5 .
  • the above-mentioned target user determination apparatus 50 further includes: a query module 505 .
  • the second obtaining module 503 is specifically configured to:
  • the determining module 504 is specifically configured to:
  • the object to be extracted is determined according to the target signature.
  • the determining module 504 is specifically configured to:
  • the target signature is obtained according to the at least one signature.
  • the determining module 504 is specifically configured to:
  • the at least one signature determines a preset number of signatures with the latest acquisition moment in the at least one signature, wherein the preset number is less than or equal to the number of the at least one signature;
  • the determining module 504 is specifically configured to:
  • the target signature is obtained by summing or multiplying the at least one signature.
  • the determining module 504 is specifically configured to:
  • the to-be-extracted object is determined according to the target signature and the number of the to-be-participated users.
  • the determining module 504 is specifically configured to:
  • the target user corresponding to the to-be-extracted object is determined.
  • the determining module 504 is specifically configured to:
  • the object to be extracted is determined.
  • the blockchain stores the correspondence between the lottery number corresponding to the user to be participated and the hash value of the random number corresponding to the user to be participated.
  • the query module 505 is configured to obtain a query request after the determination module determines the target user corresponding to the object to be extracted according to the lottery number, and the query request carries a random number corresponding to the user to be queried;
  • Whether the user to be queried is the target user is determined according to the hash value of the random number corresponding to the user to be queried and the hash value of the random number corresponding to the target user.
  • FIGS. 7A and 7B respectively schematically provide a possible basic hardware architecture of the target user determination device described in this application.
  • the target user determination device includes at least one processor 701 and a communication interface 703 . Further optionally, a memory 702 and a bus 704 may also be included.
  • the number of processors 701 may be one or more, and FIGS. 7A and 7B only illustrate one of the processors 701 .
  • the processor 701 may be a central processing unit (Central Processing Unit (CPU), Graphics Processing Unit (GPU), or Digital Signal Process (DSP). If the target user determines that the device has multiple processors 701, the types of the multiple processors 701 may be different, or may be the same.
  • the multiple processors 701 of the target user determination device may also be integrated into a multi-core processor.
  • the memory 702 stores computer instructions and data; the memory 702 can store computer instructions and data required to implement the above target user determination method provided by the present application, for example, the memory 702 stores instructions for implementing the steps of the above target user determination method.
  • the memory 702 may be any one or any combination of the following storage media: non-volatile memory (eg, read only memory (ROM), solid state drive (SSD), hard disk (HDD), optical disk), volatile memory.
  • Communication interface 703 may provide information input/output for the at least one processor. It may also include any one or any combination of the following devices: a network interface (such as an Ethernet interface), a wireless network card, and other devices with network access functions.
  • a network interface such as an Ethernet interface
  • a wireless network card such as an Ethernet card
  • the communication interface 703 may also be used for data communication between the target user determination device and other computing devices or terminals.
  • bus 704 is represented by a thick line in FIGS. 7A and 7B.
  • a bus 704 may connect the processor 701 with the memory 702 and the communication interface 703 .
  • the processor 701 can access the memory 702, and can also use the communication interface 703 to perform data interaction with other computing devices or terminals.
  • the target user determination device executes the computer instructions in the memory 702, so that the target user determination device implements the above target user determination method provided in this application, or the target user determination device deploys the above target user determination device.
  • the memory 702 may include a first obtaining module 501 , an uploading module 502 , a second obtaining module 503 , and a determining module 504 .
  • the inclusion here only involves that the functions of the first obtaining module, the uploading module, the second obtaining module and the determining module can be implemented respectively when the instructions stored in the memory are executed, and are not limited to physical structures.
  • the memory 702 may further include a query module 505 .
  • the inclusion here only involves that the functions of the first obtaining module, the uploading module, the second obtaining module, the determining module and the querying module can be implemented respectively when the instructions stored in the memory are executed, and are not limited to physical structures.
  • the above-mentioned target user determination device can be implemented as a hardware module, or as a circuit unit, in addition to being implemented by software as in the above-mentioned FIG. 7A and FIG. 7B .
  • the present application provides a computer-readable storage medium, and the computer program product includes computer instructions, and the computer instructions instruct a computing device to execute the above target user determination method provided by the present application.
  • the present application provides a chip comprising at least one processor and a communication interface, wherein the communication interface provides information input and/or output for the at least one processor. Further, the chip may also include at least one memory for storing computer instructions. The at least one processor is configured to invoke and execute the computer instructions to execute the above target user determination method provided by the present application.
  • the disclosed apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Bioethics (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Medical Informatics (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Provided are a target user determination method and apparatus, and a device and a storage medium. The method comprises: uploading to a blockchain random numbers corresponding to users waiting to participate, so as to determine lottery numbers; then, on the basis of data stored in the blockchain and a plurality of signature terminals, determining an object to be drawn; and on the basis of the lottery numbers, determining a target user corresponding to the object to be drawn, and sending a notification message to the target user. The security of an object to be drawn is ensured by a blockchain and a plurality of signature terminals, such that no party, such as a lottery organizer, can tamper with the object to be drawn. Therefore, the accuracy of a target user that is subsequently determined on the basis of the object to be drawn is ensured, and the fairness and impartiality of a user drawing process are improved. Furthermore, in the embodiments of the present application, there is no need for real information of users waiting to participate to be known, only random numbers corresponding to the users waiting to participate need to be known, thereby protecting the users' private information and avoiding illegal use of the user's private information.

Description

目标用户确定方法、装置、设备及存储介质Target user determination method, device, device and storage medium
本申请要求于2020年09月30日提交中国专利局、申请号为2020110635478、申请名称为“目标用户确定方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 2020110635478 and the application name "target user determination method, device, equipment and storage medium" filed with the China Patent Office on September 30, 2020, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及数据处理技术,尤其涉及一种目标用户确定方法、装置、设备及存储介质。The present application relates to data processing technology, and in particular, to a target user determination method, apparatus, device and storage medium.
背景技术Background technique
随着经济技术的不断发展,各类摇号技术和应用广泛影响着人们的生活和工作,例如摇号确定中标单位,摇号安排考试考位,摇号决定上车牌资格,摇号分配经济适用房等。With the continuous development of economy and technology, various lottery technologies and applications have widely affected people's life and work, such as lottery to determine winning bidders, lottery to arrange examination seats, lottery to determine license plate qualifications, lottery to allocate affordable housing, etc.
相关技术中,摇号的过程通常是:用户实名获取签号,中签号码由摇号组织方采用随机值算法产生。与中签号码匹配上的用户,将是中签用户。In the related art, the process of lottery is usually as follows: the user obtains the lottery with the real name, and the lottery number is generated by the lottery organizer using a random value algorithm. The user who matches the winning number will be the winning user.
然而,上述中签号码的产生由摇号组织方产生,其产生的随机性存疑,有可能摇号组织方篡改中签号码,例如摇号组织方知道待抽取的签号,对这些签号进行修改,增加或降低某些签号的中签几率。因此,现有摇号机制难以自证公平、公正。另外,现有用户需实名参与摇号,用户隐私信息可能会被其他人员获知,从而被非法使用,给用户带来一些不良影响。However, the above-mentioned lottery number is generated by the lottery organizer, and its randomness is questionable. It is possible that the lottery organizer tampered with the lottery number. The odds of winning certain draws. Therefore, it is difficult for the existing lottery mechanism to prove itself to be fair and just. In addition, existing users need to participate in the lottery with their real names, and the user's private information may be known to other personnel, which may be illegally used and bring some adverse effects to users.
技术解决方案technical solutions
为解决现有技术中存在的问题,本申请提供一种目标用户确定方法、装置、设备及存储介质。In order to solve the problems existing in the prior art, the present application provides a target user determination method, apparatus, device and storage medium.
第一方面,本申请实施例提供一种目标用户确定方法,所述方法包括:In a first aspect, an embodiment of the present application provides a method for determining a target user, the method comprising:
获取数据请求,所述数据请求中包括待参与用户对应的随机数;Obtain a data request, where the data request includes a random number corresponding to the user to be involved;
将所述随机数上传至区块链,所述随机数用于指示所述区块链根据所述随机数的上传顺序,确定所述待参与用户对应的抽签号;uploading the random number to the blockchain, where the random number is used to instruct the blockchain to determine the lottery number corresponding to the user to be participated according to the upload sequence of the random number;
获取所述区块链中的待处理数据,将所述待处理数据发送至至少一个签名终端,所述待处理数据用于指示所述至少一个签名终端对所述待处理数据进行签名,获得至少一个签名;Acquire the data to be processed in the blockchain, send the data to be processed to at least one signature terminal, and the data to be processed is used to instruct the at least one signature terminal to sign the data to be processed, and obtain at least one signature terminal. a signature;
根据所述至少一个签名,确定待抽取对象,并根据所述抽签号,确定与所述待抽取对象对应的目标用户,向所述目标用户发送通知消息。An object to be extracted is determined according to the at least one signature, a target user corresponding to the object to be extracted is determined according to the lottery number, and a notification message is sent to the target user.
在一种可能的实现方式中,所述获取所述区块链中的待处理数据,包括:In a possible implementation manner, the acquiring the data to be processed in the blockchain includes:
根据预设时刻和所述区块链中各个区块的时刻标识,确定目标区块;Determine the target block according to the preset time and the time identification of each block in the blockchain;
根据所述目标区块中存放的数据,获取所述待处理数据。Acquire the data to be processed according to the data stored in the target block.
其中,预设时刻可以根据实际情况设置,通过预设时刻获取待处理数据,保证一定的公平、公开和不确定性。另外,区块链中存放的数据不易被篡改,进一步提高后续处理结果的公平、公开性。Among them, the preset time can be set according to the actual situation, and the data to be processed is obtained through the preset time to ensure certain fairness, openness and uncertainty. In addition, the data stored in the blockchain is not easy to be tampered with, which further improves the fairness and openness of subsequent processing results.
在一种可能的实现方式中,所述根据所述至少一个签名,确定待抽取对象,包括:In a possible implementation manner, the determining the object to be extracted according to the at least one signature includes:
根据所述至少一个签名,获得目标签名;obtaining a target signature according to the at least one signature;
根据所述目标签名,确定所述待抽取对象。The object to be extracted is determined according to the target signature.
在一种可能的实现方式中,所述根据所述至少一个签名,获得目标签名,包括:In a possible implementation manner, the obtaining the target signature according to the at least one signature includes:
判断所述至少一个签名的签名时间是否在预设时间段内,其中,所述签名时间根据所述将所述待处理数据发送至至少一个签名终端的时刻和获得所述至少一个签名的时刻确定;Judging whether the signature time of the at least one signature is within a preset time period, wherein the signature time is determined according to the time when the data to be processed is sent to the at least one signature terminal and the time when the at least one signature is obtained ;
若所述至少一个签名的签名时间在所述预设时间段内,则根据所述至少一个签名,获得所述目标签名。If the signature time of the at least one signature is within the preset time period, the target signature is obtained according to the at least one signature.
在一种可能的实现方式中,所述根据所述至少一个签名,获得目标签名,包括:In a possible implementation manner, the obtaining the target signature according to the at least one signature includes:
根据获得所述至少一个签名的时刻,确定所述至少一个签名中获得时刻最晚的预设数目个签名,其中,所述预设数目小于或等于所述至少一个签名的数目;According to the moment when the at least one signature is obtained, determine a preset number of signatures with the latest acquisition moment in the at least one signature, wherein the preset number is less than or equal to the number of the at least one signature;
根据所述预设数目个签名,获得所述目标签名。Obtain the target signature according to the preset number of signatures.
在一种可能的实现方式中,所述根据所述至少一个签名,获得目标签名,包括:In a possible implementation manner, the obtaining the target signature according to the at least one signature includes:
对所述至少一个签名进行求和或累乘,获得所述目标签名。The target signature is obtained by summing or multiplying the at least one signature.
本申请实施例通过对获取的签名进行求和或累乘,获得目标签名,增强目标签名的随机性,从而,提高了后续处理结果的公平、公正性。The embodiment of the present application obtains the target signature by summing or multiplying the acquired signatures, thereby enhancing the randomness of the target signature, thereby improving the fairness and impartiality of the subsequent processing result.
在一种可能的实现方式中,所述根据所述目标签名,确定所述待抽取对象,包括:In a possible implementation manner, the determining the object to be extracted according to the target signature includes:
根据所述目标签名和所述待参与用户的数目,确定所述待抽取对象。The to-be-extracted object is determined according to the target signature and the number of the to-be-participated users.
在一种可能的实现方式中,所述根据所述抽签号,确定与所述待抽取对象对应的目标用户,包括:In a possible implementation manner, the determining the target user corresponding to the object to be extracted according to the lottery number includes:
根据所述抽签号和所述待参与用户的对应关系,确定与所述待抽取对象对应的目标用户。According to the correspondence between the lottery number and the to-be-participated user, the target user corresponding to the to-be-extracted object is determined.
在一种可能的实现方式中,所述根据所述目标签名和所述待参与用户的数目,确定所述待抽取对象,包括:In a possible implementation manner, the determining the object to be extracted according to the target signature and the number of the users to be participated includes:
计算所述目标签名对所述待参与用户的数目的余数;Calculate the remainder of the target signature to the number of users to be involved;
根据所述余数,确定所述待抽取对象。According to the remainder, the object to be extracted is determined.
在一种可能的实现方式中,所述区块链存放所述待参与用户对应的抽签号与所述待参与用户对应的随机数的哈希值的对应关系。In a possible implementation manner, the blockchain stores the correspondence between the lottery number corresponding to the user to be participated and the hash value of the random number corresponding to the user to be participated.
本申请实施例在根据上述目标签名,确定上述待抽取对象时,还考虑上述待参与用户的数目,即根据上述目标签名和上述待参与用户的数目,确定上述待抽取对象,从而,根据上述抽签号和上述待参与用户的对应关系,确定与上述待抽取对象对应的目标用户,保证每一个进行用户抽取都会有一个用户被选中,不会出现抽取过程无效的情况,适合应用。另外,本申请实施例中上述待抽取对象的安全性由区块链和多个签名终端保证,使得任何一方,例如摇号组织方无法篡改待抽取对象,从而,保证后续基于上述待抽取对象确定的目标用户的准确性,提高用户抽取过程中的公平、公正性,而且,本申请实施例无需知道待参与用户的真实信息,只需知道待参与用户对应的随机数,从而保护用户隐私信息,避免用户隐私信息被非法使用。In this embodiment of the present application, when determining the object to be extracted according to the target signature, the number of users to be involved is also considered, that is, the object to be extracted is determined according to the target signature and the number of users to be involved, so that according to the lottery The corresponding relationship between the number and the above-mentioned users to be involved is determined, and the target users corresponding to the above-mentioned objects to be extracted are determined to ensure that each user extraction will have a user selected, and there will be no invalid extraction process, which is suitable for application. In addition, in the embodiments of the present application, the security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the to-be-extracted objects, thereby ensuring that subsequent determinations based on the above-mentioned objects to be extracted are guaranteed. The accuracy of the target user improves the fairness and impartiality in the user extraction process. Moreover, the embodiment of the present application does not need to know the real information of the user to be participated, but only needs to know the random number corresponding to the user to be participated, so as to protect the user's privacy information and avoid User privacy information is used illegally.
在所述根据所述抽签号,确定与所述待抽取对象对应的目标用户之后,还包括:After the target user corresponding to the object to be extracted is determined according to the lottery number, the method further includes:
获取查询请求,所述查询请求携带待查询用户对应的随机数;obtaining a query request, where the query request carries a random number corresponding to the user to be queried;
根据所述查询请求,计算所述待查询用户对应的随机数的哈希值,并根据所述对应关系,确定所述目标用户对应的随机数的哈希值;Calculate the hash value of the random number corresponding to the user to be queried according to the query request, and determine the hash value of the random number corresponding to the target user according to the corresponding relationship;
根据所述待查询用户对应的随机数的哈希值和所述目标用户对应的随机数的哈希值,确定所述待查询用户是否为所述目标用户。Whether the user to be queried is the target user is determined according to the hash value of the random number corresponding to the user to be queried and the hash value of the random number corresponding to the target user.
本申请实施例,通过获取数据请求,该数据请求中包括待参与用户对应的随机数,从而,将该随机数上传至区块链确定待参与用户对应的抽签号,并从区块链上获取待处理数据,将该待处理数据发送至至少一个签名终端进行签名,获得至少一个签名,进而,根据该至少一个签名,确定待抽取对象,并根据上述抽签号,确定与上述待抽取对象对应的目标用户,向目标用户发送通知消息。其中,上述待抽取对象的安全性由区块链和多个签名终端保证,使得任何一方,例如摇号组织方无法篡改待抽取对象,从而,保证后续基于上述待抽取对象确定的目标用户的准确性,提高用户抽取过程中的公平、公正性,而且,本申请实施例无需知道待参与用户的真实信息,只需知道待参与用户对应的随机数,从而保护用户隐私信息,避免用户隐私信息被非法使用。In the embodiment of the present application, by obtaining a data request, the data request includes a random number corresponding to the user to be participated, so that the random number is uploaded to the blockchain to determine the lottery number corresponding to the user to participate, and obtained from the blockchain Data to be processed, send the data to be processed to at least one signature terminal for signature, obtain at least one signature, and then, according to the at least one signature, determine the object to be extracted, and determine the object corresponding to the object to be extracted according to the above-mentioned lottery number. Target user, send a notification message to the target user. The security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the to-be-extracted objects, thereby ensuring the accuracy of subsequent target users determined based on the above-mentioned objects to be extracted , improve the fairness and impartiality in the user extraction process, and the embodiment of the present application does not need to know the real information of the users to be involved, but only needs to know the random numbers corresponding to the users to be involved, so as to protect the user's private information and prevent the user's private information from being illegal. use.
第二方面,本申请实施例提供一种目标用户确定装置,所述装置包括:In a second aspect, an embodiment of the present application provides an apparatus for determining a target user, the apparatus comprising:
第一获取模块,获取数据请求,所述数据请求中包括待参与用户对应的随机数;a first obtaining module, obtaining a data request, where the data request includes a random number corresponding to the user to be participated;
上传模块,用于将所述随机数上传至区块链,所述随机数用于指示所述区块链根据所述随机数的上传顺序,确定所述待参与用户对应的抽签号;The uploading module is used to upload the random number to the blockchain, and the random number is used to instruct the blockchain to determine the lottery number corresponding to the user to be participated according to the upload sequence of the random number;
第二获取模块,用于获取所述区块链中的待处理数据,将所述待处理数据发送至至少一个签名终端,所述待处理数据用于指示所述至少一个签名终端对所述待处理数据进行签名,获得至少一个签名;The second acquiring module is configured to acquire the data to be processed in the blockchain, and send the data to be processed to at least one signature terminal, where the data to be processed is used to instruct the at least one signature terminal to Process the data for signature and obtain at least one signature;
确定模块,用于根据所述至少一个签名,确定待抽取对象,并根据所述抽签号,确定与所述待抽取对象对应的目标用户,向所述目标用户发送通知消息。The determining module is configured to determine the object to be extracted according to the at least one signature, determine the target user corresponding to the object to be extracted according to the lottery number, and send a notification message to the target user.
在一种可能的实现方式中,所述第二获取模块,具体用于:In a possible implementation manner, the second obtaining module is specifically used for:
根据预设时刻和所述区块链中各个区块的时刻标识,确定目标区块;Determine the target block according to the preset time and the time identification of each block in the blockchain;
根据所述目标区块中存放的数据,获取所述待处理数据。Acquire the data to be processed according to the data stored in the target block.
在一种可能的实现方式中,所述确定模块,具体用于:In a possible implementation manner, the determining module is specifically used for:
根据所述至少一个签名,获得目标签名;obtaining a target signature according to the at least one signature;
根据所述目标签名,确定所述待抽取对象。The object to be extracted is determined according to the target signature.
在一种可能的实现方式中,所述确定模块,具体用于:In a possible implementation manner, the determining module is specifically used for:
判断所述至少一个签名的签名时间是否在预设时间段内,其中,所述签名时间根据所述将所述待处理数据发送至至少一个签名终端的时刻和获得所述至少一个签名的时刻确定;Judging whether the signature time of the at least one signature is within a preset time period, wherein the signature time is determined according to the time when the data to be processed is sent to the at least one signature terminal and the time when the at least one signature is obtained ;
若所述至少一个签名的签名时间在所述预设时间段内,则根据所述至少一个签名,获得所述目标签名。If the signature time of the at least one signature is within the preset time period, the target signature is obtained according to the at least one signature.
在一种可能的实现方式中,所述确定模块,具体用于:In a possible implementation manner, the determining module is specifically used for:
根据获得所述至少一个签名的时刻,确定所述至少一个签名中获得时刻最晚的预设数目个签名,其中,所述预设数目小于或等于所述至少一个签名的数目;According to the moment when the at least one signature is obtained, determine a preset number of signatures with the latest acquisition moment in the at least one signature, wherein the preset number is less than or equal to the number of the at least one signature;
根据所述预设数目个签名,获得所述目标签名。Obtain the target signature according to the preset number of signatures.
在一种可能的实现方式中,所述确定模块,具体用于:In a possible implementation manner, the determining module is specifically used for:
对所述至少一个签名进行求和或累乘,获得所述目标签名。The target signature is obtained by summing or multiplying the at least one signature.
在一种可能的实现方式中,所述确定模块,具体用于:In a possible implementation manner, the determining module is specifically used for:
根据所述目标签名和所述待参与用户的数目,确定所述待抽取对象。The to-be-extracted object is determined according to the target signature and the number of the to-be-participated users.
在一种可能的实现方式中,所述确定模块,具体用于:In a possible implementation manner, the determining module is specifically used for:
根据所述抽签号和所述待参与用户的对应关系,确定与所述待抽取对象对应的目标用户。According to the correspondence between the lottery number and the to-be-participated user, the target user corresponding to the to-be-extracted object is determined.
在一种可能的实现方式中,所述确定模块,具体用于:In a possible implementation manner, the determining module is specifically used for:
计算所述目标签名对所述待参与用户的数目的余数;Calculate the remainder of the target signature to the number of users to be involved;
根据所述余数,确定所述待抽取对象。According to the remainder, the object to be extracted is determined.
在一种可能的实现方式中,所述区块链存放所述待参与用户对应的抽签号与所述待参与用户对应的随机数的哈希值的对应关系。In a possible implementation manner, the blockchain stores the correspondence between the lottery number corresponding to the user to be participated and the hash value of the random number corresponding to the user to be participated.
上述装置还包括:查询模块,用于在所述确定模块根据所述抽签号,确定与所述待抽取对象对应的目标用户之后,获取查询请求,所述查询请求携带待查询用户对应的随机数;The above device further includes: a query module, configured to obtain a query request after the determination module determines a target user corresponding to the object to be extracted according to the lottery number, and the query request carries a random number corresponding to the user to be queried ;
根据所述查询请求,计算所述待查询用户对应的随机数的哈希值,并根据所述对应关系,确定所述目标用户对应的随机数的哈希值;Calculate the hash value of the random number corresponding to the user to be queried according to the query request, and determine the hash value of the random number corresponding to the target user according to the corresponding relationship;
根据所述待查询用户对应的随机数的哈希值和所述目标用户对应的随机数的哈希值,确定所述待查询用户是否为所述目标用户。Whether the user to be queried is the target user is determined according to the hash value of the random number corresponding to the user to be queried and the hash value of the random number corresponding to the target user.
第三方面,本申请实施例提供一种目标用户确定设备,包括:In a third aspect, an embodiment of the present application provides a device for determining a target user, including:
处理器;processor;
存储器;以及memory; and
计算机程序;Computer program;
其中,所述计算机程序被存储在所述存储器中,并且被配置为由所述处理器执行,所述计算机程序包括用于执行如第一方面所述的方法的指令。Wherein the computer program is stored in the memory and configured to be executed by the processor, the computer program comprising instructions for performing the method of the first aspect.
第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序使得服务器执行第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program causes a server to execute the method described in the first aspect.
本申请实施例提供的目标用户确定方法、装置、设备及存储介质,该方法通过获取数据请求,该数据请求中包括待参与用户对应的随机数,从而,将该随机数上传至区块链确定待参与用户对应的抽签号,并从区块链上获取待处理数据,将该待处理数据发送至至少一个签名终端进行签名,获得至少一个签名,进而,根据该至少一个签名,确定待抽取对象,并根据上述抽签号,确定与上述待抽取对象对应的目标用户,向目标用户发送通知消息。其中,上述待抽取对象的安全性由区块链和多个签名终端保证,使得任何一方,例如摇号组织方无法篡改待抽取对象,从而,保证后续基于上述待抽取对象确定的目标用户的准确性,提高用户抽取过程中的公平、公正性,而且,本申请实施例无需知道待参与用户的真实信息,只需知道待参与用户对应的随机数,从而保护用户隐私信息,避免用户隐私信息被非法使用。The target user determination method, device, device and storage medium provided by the embodiments of the present application, the method obtains a data request, the data request includes a random number corresponding to the user to be involved, thereby uploading the random number to the blockchain to determine The lottery number corresponding to the user to be participated, and obtain the data to be processed from the blockchain, send the data to be processed to at least one signature terminal for signature, obtain at least one signature, and then, according to the at least one signature, determine the object to be extracted , and according to the lottery number, determine the target user corresponding to the object to be extracted, and send a notification message to the target user. The security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the to-be-extracted objects, thereby ensuring the accuracy of subsequent target users determined based on the above-mentioned objects to be extracted , improve the fairness and impartiality in the user extraction process, and the embodiment of the present application does not need to know the real information of the users to be involved, but only needs to know the random numbers corresponding to the users to be involved, so as to protect the user's private information and prevent the user's private information from being illegal. use.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本申请实施例提供的一种目标用户确定系统架构示意图;1 is a schematic diagram of the architecture of a target user determination system provided by an embodiment of the present application;
图2为本申请实施例提供的一种目标用户确定方法的流程示意图;2 is a schematic flowchart of a method for determining a target user according to an embodiment of the present application;
图3为本申请实施例提供的另一种目标用户确定系统架构示意图;3 is a schematic diagram of another target user determination system architecture provided by an embodiment of the present application;
图4为本申请实施例提供的另一种目标用户确定方法的流程示意图;4 is a schematic flowchart of another target user determination method provided by an embodiment of the present application;
图5为本申请实施例提供的一种目标用户确定装置的结构示意图;5 is a schematic structural diagram of an apparatus for determining a target user according to an embodiment of the present application;
图6为本申请实施例提供的另一种目标用户确定装置的结构示意图;FIG. 6 is a schematic structural diagram of another apparatus for determining a target user provided by an embodiment of the present application;
图7A为本申请实施例提供的目标用户确定设备的一种可能的基本硬件架构图;7A is a possible basic hardware architecture diagram of a target user determination device provided by an embodiment of the present application;
图7B为本申请实施例提供的目标用户确定设备的另一种可能的基本硬件架构图。FIG. 7B is another possible basic hardware architecture diagram of the target user determination device provided by the embodiment of the present application.
本发明的实施方式Embodiments of the present invention
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。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. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”及“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
现有各类摇号技术和应用广泛影响着人们的生活和工作,例如摇号确定中标单位,摇号安排考试考位,摇号决定上车牌资格,摇号分配经济适用房等。相关技术中,摇号的过程通常是:用户实名获取签号,中签号码由摇号组织方采用随机值算法产生。与中签号码匹配上的用户,将是中签用户。Various existing lottery technologies and applications have widely affected people's life and work, such as lottery to determine winning bidders, lottery to arrange exam seats, lottery to determine license plate qualifications, and lottery to allocate affordable housing, etc. In the related art, the process of lottery is usually as follows: the user obtains the lottery with the real name, and the lottery number is generated by the lottery organizer using a random value algorithm. The user who matches the winning number will be the winning user.
然而,上述中签号码的产生由摇号组织方产生,其产生的随机性存疑,有可能摇号组织方篡改中签号码,例如摇号组织方知道待抽取的签号,对这些签号进行修改,增加或降低某些签号的中签几率。示例性的,以摇号确定中标单位为例,摇号组织方知道参与竞标的各个单位的签号,如果出于某些原因,要增加单位甲的中签几率,则可以对上述各个单位的签号进行调整,例如将上述各个单位中多个单位的签号改为单位甲的中签,从而,增加单位甲的中签几率。因此,现有摇号机制难以自证公平、公正。另外,现有用户需实名参与摇号,用户隐私信息可能会被其他人员获知,从而被非法使用,给用户带来一些不良影响。示例性的,在上述摇号确定中标单位过程中,单位甲实名参与竞标,例如单位甲提供企业一些较为机密信息参与竞标,可能导致单位甲的上述信息被泄露。或者,以摇号安排考试考位为例,考生A实名参与摇号,例如考生A提供真实姓名、学号,甚至身份证号等,可能导致考生A的上述信息被泄露。However, the above-mentioned lottery number is generated by the lottery organizer, and its randomness is questionable. It is possible that the lottery organizer tampered with the lottery number. The odds of winning certain draws. Exemplarily, taking the lottery to determine the winning unit as an example, the lottery organizer knows the lottery numbers of each unit participating in the bidding. If for some reason, the chance of winning the lottery of unit A is to be increased, the lottery lottery The lottery organizer can conduct a lottery on the lottery numbers of each unit. Adjustment, for example, changing the lottery numbers of multiple units in the above-mentioned units to the lottery of unit A, thereby increasing the chance of winning the lottery of unit A. Therefore, it is difficult for the existing lottery mechanism to prove itself to be fair and just. In addition, existing users need to participate in the lottery with their real names, and the user's private information may be known to other personnel, which may be illegally used and bring some adverse effects to users. Exemplarily, in the process of determining the winning unit through the lottery, unit A participates in the bidding with its real name. For example, unit A provides some relatively confidential information of the company to participate in the bidding, which may lead to the disclosure of the above-mentioned information of unit A. Or, taking the lottery arrangement for exam seats as an example, Candidate A participates in the lottery with his real name. For example, Candidate A provides his real name, student number, or even ID number, etc., which may lead to the disclosure of the above information of Candidate A.
因此,本申请实施例提出一种目标用户确定方法,将待参与用户对应的随机数上传至区块链确定抽签号,从而,基于区块链中存储的数据以及多个签名终端,确定待抽取对象,并基于上述抽签号,确定与待抽取对象对应的目标用户,向目标用户发送通知消息。其中,该待抽取对象的安全性由区块链和多个签名终端保证,使得任何一方,例如摇号组织方无法篡改待抽取对象,从而,保证后续基于上述待抽取对象确定的目标用户的准确性,提高用户抽取过程中的公平、公正性,而且,本申请实施例无需知道待参与用户的真实信息,只需知道待参与用户对应的随机数,从而保护用户隐私信息,避免用户隐私信息被非法使用。Therefore, the embodiment of the present application proposes a method for determining a target user, which uploads the random number corresponding to the user to be participated to the blockchain to determine the lottery number, so as to determine the to-be-extracted based on the data stored in the blockchain and multiple signature terminals. object, and based on the lottery number, determine the target user corresponding to the object to be extracted, and send a notification message to the target user. Among them, the security of the object to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the object to be extracted, thereby ensuring the accuracy of the subsequent target user determined based on the object to be extracted. , improve the fairness and impartiality in the user extraction process, and the embodiment of the present application does not need to know the real information of the users to be involved, but only needs to know the random numbers corresponding to the users to be involved, so as to protect the user's private information and prevent the user's private information from being illegal. use.
可选地,图1为本申请实施例提供的一种目标用户确定系统架构示意图。在图1中,以摇号确定中标单位为例。上述架构包括处理装置11和至少一个签名终端。这里,该至少一个签名终端以包括第一签名终端121、第二签名终端122和第三签名终端123为例。处理装置11可以理解为摇号组织方的服务器,执行整个摇号过程。Optionally, FIG. 1 is a schematic diagram of an architecture of a target user determination system provided by an embodiment of the present application. In Figure 1, the winning unit is determined by lottery as an example. The above architecture includes a processing device 11 and at least one signature terminal. Here, the at least one signature terminal includes the first signature terminal 121 , the second signature terminal 122 and the third signature terminal 123 as an example. The processing device 11 can be understood as the server of the lottery organizer, and executes the whole lottery process.
可以理解的是,本申请实施例示意的结构并不构成对目标用户确定架构的具体限定。在本申请另一些可行的实施方式中,上述架构可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置,具体可根据实际应用场景确定,在此不做限制。图1所示的部件可以以硬件,软件,或软件与硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the target user determination architecture. In some other feasible embodiments of the present application, the above architecture may include more or less components than shown in the figure, or combine some components, or separate some components, or arrange different components, depending on the actual application. The scene is determined, and there is no restriction here. The components shown in Figure 1 may be implemented in hardware, software, or a combination of software and hardware.
在具体实现过程中,处理装置11首先获取数据请求,该数据请求中包括待参与用户对应的随机数,然后将该随机数上传区块链确定待参与用户对应的抽签号,再从区块链上获取待处理数据,将待处理数据发送至上述至少一个签名终端。其中,为了提高上述摇号确定中标单位的随机性,上述待处理数据可以为任意需要处理的数据,例如上述待处理数据为与上述各个中标单位相关的数据,或者,为与上述各个中标单位不相关的数据。In the specific implementation process, the processing device 11 first obtains a data request, which includes a random number corresponding to the user to be participated, and then uploads the random number to the blockchain to determine the lottery number corresponding to the user to participate, and then retrieves the random number from the blockchain. The data to be processed is obtained from the above, and the data to be processed is sent to the above at least one signature terminal. Wherein, in order to improve the randomness of the above-mentioned lottery to determine the winning unit, the above-mentioned data to be processed can be any data that needs to be processed, for example, the above-mentioned data to be processed is data related to each of the above-mentioned winning units, or is irrelevant to each of the above-mentioned winning units The data.
处理装置11将上述待处理数据发送至上述至少一个签名终端,即上述第一签名终端121、第二签名终端122和第三签名终端123。第一签名终端121、第二签名终端122和第三签名终端123分别对上述待处理数据进行签名。示例性的,以上述待处理数据为m为例,第一签名终端121、第二签名终端122和第三签名终端123可以分别在本地生成私钥sk1, sk2和sk3,然后利用生成的私钥对上述待处理数据为m进行签名,即计算s1=sign(sk1, m),s2=sign(sk2,m)和s3=sign(sk3, m)。其中,签名算法sign可以根据实际情况确定,例如采用RSA、ECDSA签名算法或者国密签名算法等。处理装置11获取上述第一签名终端121、第二签名终端122和第三签名终端123对上述待处理数据的签名,从而,根据这些签名,确定待抽取对象,并根据上述抽签号,确定与上述待抽取对象对应的目标用户,向目标用户发送通知消息。这里,上述待抽取对象的安全性由区块链和多个签名终端保证,使得任何一方,例如摇号组织方无法篡改待抽取对象,从而,保证后续基于上述待抽取对象确定的目标用户,例如中标单位的准确性,提高用户抽取过程中的公平、公正性,而且,本申请实施例无需知道待参与用户的真实信息,只需知道待参与用户对应的随机数,从而保护用户隐私信息,避免用户隐私信息被非法使用。The processing device 11 sends the above-mentioned data to be processed to the above-mentioned at least one signature terminal, that is, the above-mentioned first signature terminal 121 , the second signature terminal 122 and the third signature terminal 123 . The first signature terminal 121, the second signature terminal 122 and the third signature terminal 123 respectively sign the above data to be processed. Exemplarily, taking the data to be processed as m as an example, the first signature terminal 121, the second signature terminal 122 and the third signature terminal 123 can respectively generate private keys sk1, sk2 and sk3 locally, and then use the generated private keys. Sign the above data to be processed as m, that is, calculate s1=sign(sk1, m), s2=sign(sk2, m) and s3=sign(sk3, m). Among them, the signature algorithm sign can be determined according to the actual situation, for example, RSA, ECDSA signature algorithm or national secret signature algorithm is used. The processing device 11 obtains the signatures of the above-mentioned first signature terminal 121, the second signature terminal 122 and the third signature terminal 123 on the above-mentioned data to be processed, thereby, according to these signatures, determine the object to be extracted, and according to the above-mentioned lottery number, determine the same as the above-mentioned. The target user corresponding to the object to be extracted sends a notification message to the target user. Here, the security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the objects to be extracted, thereby ensuring that the target users determined based on the above-mentioned objects to be extracted, such as winning the bid The accuracy of the unit is improved, and the fairness and impartiality in the user extraction process are improved. Moreover, the embodiment of the present application does not need to know the real information of the users to participate, but only needs to know the random numbers corresponding to the users to participate, so as to protect user privacy information and avoid users Private information is used illegally.
另外,本申请实施例描述的系统架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。In addition, the system architecture and business scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute limitations on the technical solutions provided by the embodiments of the present application. With the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
下面以几个实施例为例对本申请的技术方案进行描述,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present application are described below by taking several embodiments as examples, and the same or similar concepts or processes may not be repeated in some embodiments.
图2为本申请实施例提供的一种目标用户确定方法的流程示意图,本申请实施例提供了一种目标用户确定方法,该方法可以应用于目标用户确定的处理,且该方法可以由任意执行目标用户确定方法的装置来执行,该装置可以通过软件和/或硬件实现。如图2所示,在图1所示系统架构的基础上,本申请实施例提供的目标用户确定方法包括如下步骤:2 is a schematic flowchart of a method for determining a target user provided by an embodiment of the present application. An embodiment of the present application provides a method for determining a target user. The method can be applied to the process of determining the target user, and the method can be executed by any The target user determines the method of the apparatus to execute, and the apparatus may be implemented by software and/or hardware. As shown in FIG. 2, on the basis of the system architecture shown in FIG. 1, the target user determination method provided by the embodiment of the present application includes the following steps:
S201:获取数据请求,该数据请求中包括待参与用户对应的随机数。S201: Obtain a data request, where the data request includes a random number corresponding to the user to be participated.
这里,以执行主体为图1中处理装置11为例。待参与用户发送数据请求至处理装置11,例如待参与用户发送一随机数r至处理装置11。上述随机数r可以是每个待参与用户本地生成的一个伪随机数,由用户独自生成。该伪随机数可以是在[0,1]均匀分布的随机数序列。示例性的,图3所示,在图3中以上述待参与用户包括用户1、用户2、用户3、用户4和用户5为例,上述至少一个签名终端12以包括第一签名终端121、第二签名终端122和第三签名终端123为例。Here, it is taken as an example that the execution subject is the processing device 11 in FIG. 1 . The to-be-participated user sends a data request to the processing device 11 , for example, the to-be-participated user sends a random number r to the processing device 11 . The above random number r may be a pseudo-random number locally generated by each user to be involved, and is generated by the user independently. The pseudo-random number may be a sequence of random numbers uniformly distributed in [0,1]. Exemplarily, as shown in FIG. 3 , in FIG. 3 , the above-mentioned users to participate include user 1, user 2, user 3, user 4 and user 5 as an example, the above-mentioned at least one signature terminal 12 includes the first signature terminal 121, The second signature terminal 122 and the third signature terminal 123 are taken as an example.
S202:将上述随机数上传至区块链,上述随机数用于指示上述区块链根据上述随机数的上传顺序,确定上述待参与用户对应的抽签号。S202: Upload the random number to the blockchain, where the random number is used to instruct the blockchain to determine the lottery number corresponding to the user to be participated according to the upload sequence of the random number.
在本申请实施例中,上述区块链在接收上述待参与用户对应的随机数后,可以根据其上链顺序,为每一个待参与用户生成一个抽签号,例如有上述五个待参与用户,用户1第一个上链,则上述区块链为该用户生成一个抽签号,例如0。用户2第二个上链,则上述区块链为该用户生成一个抽签号,例如1。如果后续用户3、4和5依次上链,则上述区块链为这些用户依次生成一个抽签号,例如2、3和4。In the embodiment of the present application, after receiving the random numbers corresponding to the above-mentioned users to be participated, the blockchain can generate a lottery number for each of the users to be participated according to the chaining sequence, for example, there are the above-mentioned five users to be participated, User 1 is the first on the chain, and the above blockchain generates a lottery number for the user, such as 0. User 2 is the second on the chain, the above blockchain will generate a lottery number for the user, such as 1. If subsequent users 3, 4 and 5 are listed in sequence, the above blockchain will generate a lottery number for these users in sequence, such as 2, 3 and 4.
另外,上述区块链可以存储上述待参与用户的抽签号与待参与用户的对应关系,例如存储用户1的抽签号0与用户1的对应关系。In addition, the above-mentioned blockchain may store the correspondence between the lottery numbers of the users to be participated and the users to be participated, for example, store the correspondence between the lottery number 0 of the user 1 and the user 1.
处理装置11将上述随机数上传至区块链后,该区块链还可以存放上述随机数的哈希值。示例性的,每个待参与用户生成一个随机数r,计算其哈希值,例如利用单向哈希算法SHA3产生哈希值SHA3(r),并上传至上述区块链。After the processing device 11 uploads the random number to the blockchain, the blockchain can also store the hash value of the random number. Exemplarily, each to-be-participated user generates a random number r, calculates its hash value, for example, uses the one-way hash algorithm SHA3 to generate the hash value SHA3(r), and uploads it to the above-mentioned blockchain.
上述区块链可以存储上述待参与用户的抽签号与待参与用户的哈希值的对应关系,例如用户1对应的随机数为r1,该随机数的哈希值为SHA3(r1)。上述区块链存储用户1的抽签号0与用户1的哈希值SHA3(r1)的对应关系。The above-mentioned blockchain can store the corresponding relationship between the lottery number of the user to be participated and the hash value of the user to be participated. For example, the random number corresponding to user 1 is r1, and the hash value of the random number is SHA3(r1). The above blockchain stores the correspondence between user 1's lottery number 0 and user 1's hash value SHA3(r1).
这里,本申请实施例无需知道待参与用户的真实信息,只需知道待参与用户对应的随机数,从而保护用户隐私信息,避免用户隐私信息被非法使用。Here, the embodiment of the present application does not need to know the real information of the user to be participated, but only needs to know the random number corresponding to the user to be participated, so as to protect the user's private information and prevent the user's private information from being illegally used.
S203:获取上述区块链中的待处理数据,将该待处理数据发送至至少一个签名终端,该待处理数据用于指示上述至少一个签名终端对该待处理数据进行签名,获得至少一个签名。S203: Acquire the data to be processed in the blockchain, and send the data to be processed to at least one signature terminal, where the data to be processed is used to instruct the at least one signature terminal to sign the data to be processed to obtain at least one signature.
其中,为了提高本申请实施例中目标用户确定的随机性,上述待处理数据可以为任意需要处理的数据,例如上述待处理数据为与上述待参与用户相关的数据,或者,为与上述待参与用户不相关的数据。Wherein, in order to improve the randomness of the target user determination in the embodiment of the present application, the above-mentioned data to be processed may be any data that needs to be processed, for example, the above-mentioned data to be processed is data related to the above-mentioned users to be participated, or, the above-mentioned data to be participated User irrelevant data.
示例性的,上述从区块链上获取待处理数据,可以包括:处理装置11根据预设时刻和上述区块链中各个区块的时刻标识,确定目标区块,从而,根据该目标区块中存放的数据,获取上述待处理数据。Exemplarily, the above-mentioned acquisition of the data to be processed from the blockchain may include: the processing device 11 determines a target block according to a preset time and the time identifier of each block in the above-mentioned blockchain, and thus, according to the target block to obtain the data to be processed above.
这里,上述预设时刻可以根据实际情况设置,例如t时刻。上述区块链将产生的数据按照一定的时间间隔,分成一个个的区块记录,各个区块上可以根据产生时刻设置相应的时刻标识。处理装置11根据预设时刻,例如t时刻,以及上述各个区块设置的时刻标识,确定目标区块。这样,处理装置11可以获取上述目标区块中存放的数据,作为上述待处理数据,保证一定的公平、公开和不确定性。另外,区块链中存放的数据不易被篡改,进一步提高后续处理结果的公平、公开性。Here, the above preset time can be set according to the actual situation, for example, time t. The above-mentioned blockchain divides the generated data into block records according to a certain time interval, and each block can be set with a corresponding time mark according to the time of generation. The processing device 11 determines the target block according to a preset time, such as time t, and the time flags set by each of the above blocks. In this way, the processing device 11 can obtain the data stored in the above-mentioned target block as the above-mentioned data to be processed, so as to ensure certain fairness, openness and uncertainty. In addition, the data stored in the blockchain is not easy to be tampered with, which further improves the fairness and openness of subsequent processing results.
其中,上述至少一个签名终端的数目可以根据实际情况确定,例如图1中设有第一签名终端121、第二签名终端122和第三签名终端123三个签名终端。The number of the above-mentioned at least one signature terminal may be determined according to the actual situation. For example, in FIG. 1 , there are three signature terminals, a first signature terminal 121 , a second signature terminal 122 and a third signature terminal 123 .
上述处理装置11在从上述区块链上获取上述待处理数据后,将上述待处理数据发送至上述至少一个签名终端。上述至少一个签名终端对上述待处理数据进行签名。示例性的,以上述三个签名终端为例,第一签名终端121、第二签名终端122和第三签名终端123分别对上述待处理数据进行签名。例如上述待处理数据为m,第一签名终端121、第二签名终端122和第三签名终端123分别在本地生成私钥sk1, sk2和sk3,然后利用生成的私钥对上述待处理数据为m进行签名,即计算s1=sign(sk1, m),s2=sign(sk2, m)和s3=sign(sk3, m)。其中,签名算法sign可以采用RSA、ECDSA签名算法或者国密签名算法等。After obtaining the data to be processed from the blockchain, the processing device 11 sends the data to be processed to the at least one signature terminal. The at least one signature terminal signs the data to be processed. Exemplarily, taking the above three signature terminals as an example, the first signature terminal 121, the second signature terminal 122 and the third signature terminal 123 respectively sign the above data to be processed. For example, the above-mentioned data to be processed is m, the first signature terminal 121, the second signature terminal 122 and the third signature terminal 123 respectively generate private keys sk1, sk2 and sk3 locally, and then use the generated private key to the above-mentioned data to be processed as m To sign, that is to calculate s1=sign(sk1, m), s2=sign(sk2, m) and s3=sign(sk3, m). Among them, the signature algorithm sign may use RSA, ECDSA signature algorithm, or national secret signature algorithm.
S204:根据上述至少一个签名,确定待抽取对象,并根据上述抽签号,确定与上述待抽取对象对应的目标用户,向该目标用户发送通知消息。S204: Determine the object to be extracted according to the at least one signature, determine a target user corresponding to the object to be extracted according to the lottery number, and send a notification message to the target user.
示例性的,上述处理装置11从上述至少一个签名终端获取上述至少一个签名,并根据上述至少一个签名,获得目标签名,根据该目标签名,确定上述待抽取对象。Exemplarily, the above-mentioned processing device 11 obtains the above-mentioned at least one signature from the above-mentioned at least one signature terminal, obtains a target signature according to the above-mentioned at least one signature, and determines the above-mentioned object to be extracted according to the target signature.
其中,上述处理装置11可以对上述至少一个签名进行求和或累乘等统计归并算法等处理,获得目标签名。Wherein, the above-mentioned processing device 11 may perform processing such as a statistical merging algorithm such as summation or multiplication on the above-mentioned at least one signature to obtain the target signature.
这里,本申请实施例通过对获取的签名进行求和或累乘,获得目标签名,增强目标签名的随机性,从而,提高了后续处理结果的公平、公正性。Here, the embodiment of the present application obtains the target signature by summing or multiplying the acquired signatures, thereby enhancing the randomness of the target signature, thereby improving the fairness and impartiality of the subsequent processing result.
另外,为了避免在用户抽取过程中,处理装置11多次执行上述用户抽取过程,从而,导致后续确定的结果存在不公平、不公正的问题,例如,处理装置多次执行上述用户抽取过程,得到多个结果,从多个结果中选择某一次的结果作为最终结果,即对结果进行了篡改。本申请实施例设置一预设时间段作为签名窗口,例如设置T时间长度作为签名窗口期。处理装置11判断上述至少一个签名的签名时间是否在上述预设时间段内,即判断是否在上述T时间长度内,其中,上述签名时间根据上述将上述待处理数据发送至至少一个签名终端的时刻和获得上述至少一个签名的时刻确定。例如上述签名时间等于上述获得上述至少一个签名的时刻与上述将上述待处理数据发送至至少一个签名终端的时刻的相减结果。如果上述至少一个签名的签名时间在上述预设时间段内,即在上述T时间长度内,则处理装置11根据上述至少一个签名,获得上述目标签名,否则,处理装置11可以停止操作,并进行相应提示,以便相关人员能够及时处理。In addition, in order to avoid that during the user extraction process, the processing device 11 performs the above-mentioned user extraction process for many times, thereby causing unfairness and injustice in the result of subsequent determination. Multiple results, selecting a certain result from the multiple results as the final result, that is, tampering with the result. In this embodiment of the present application, a preset time period is set as the signature window, for example, T time length is set as the signature window period. The processing device 11 judges whether the signature time of the at least one signature is within the preset time period, that is, whether it is within the T time length, wherein the signature time is based on the time at which the data to be processed is sent to the at least one signature terminal. and the moment of obtaining the above at least one signature is determined. For example, the above-mentioned signature time is equal to the subtraction result of the above-mentioned time when the above-mentioned at least one signature is obtained and the above-mentioned time when the above-mentioned data to be processed is sent to the at least one signature terminal. If the signature time of the aforementioned at least one signature is within the aforementioned preset time period, that is, within the aforementioned T time length, the processing device 11 obtains the aforementioned target signature according to the aforementioned at least one signature; otherwise, the processing device 11 may stop the operation and proceed to Relevant prompts are provided so that relevant personnel can deal with them in a timely manner.
在本申请实施例中,为了进一步提高上述获得的目标签名的随机性,还可以设置签名阈值,例如设置获得时刻最晚的签名的数目。处理装置11在根据上述至少一个签名,获得目标签名时,可以根据获得上述至少一个签名的时刻,确定上述至少一个签名中获得时刻最晚的预设数目个签名,其中,该预设数目小于或等于上述至少一个签名的数目。从而,处理装置11根据上述预设数目个签名,获得上述目标签名。示例性的,以上述第一签名终端121、第二签名终端122和第三签名终端123分别对上述待处理数据m进行签名,即计算s1=sign(sk1, m),s2=sign(sk2, m)和s3=sign(sk3, m)为例,处理装置11根据获取上述三个签名的时刻,确定上述三个签名中获得时刻最晚的两个签名,例如s2和s3是最晚获取的两个签名,则处理装置11根据上述签名s2和s3,获得上述目标签名。In this embodiment of the present application, in order to further improve the randomness of the obtained target signature, a signature threshold may also be set, for example, the number of signatures obtained at the latest time may be set. When obtaining the target signature according to the at least one signature, the processing device 11 may, according to the moment at which the at least one signature is obtained, determine a preset number of signatures with the latest acquisition time among the at least one signature, wherein the preset number is less than or Equal to the number of at least one signature above. Therefore, the processing device 11 obtains the above-mentioned target signature according to the above-mentioned preset number of signatures. Exemplarily, the above-mentioned first signature terminal 121, the second signature terminal 122 and the third signature terminal 123 are used to respectively sign the above-mentioned data m to be processed, that is, calculate s1=sign(sk1, m), s2=sign(sk2, m) and s3=sign(sk3, m) For example, the processing device 11 determines the two signatures with the latest acquisition time among the above three signatures according to the time of acquiring the above three signatures. The above-mentioned signatures s2 and s3 are obtained to obtain the above-mentioned target signature.
其中,上述处理装置11可以对上述预设数目个签名进行求和或累乘等,例如对上述签名s2和s3进行求和或累乘等,获得目标签名。The above-mentioned processing device 11 may perform summation or accumulation of the above-mentioned preset number of signatures, for example, sum or accumulation of the above-mentioned signatures s2 and s3, etc., to obtain the target signature.
这里,本申请实施例上述目标签名的安全性由多个签名终端、区块链、时间窗口机制和签名阈值保证。每个签名终端产生一个独立私钥,因此每个签名终端产生的签名值将不同。通过对区块链t时刻确定的目标区块上的数据进行签名,使得签名终端无法提前计算签名,并难以预测。最后通过时间窗口机制和签名阈值,使得无法提前预测最终的目标签名由哪个几个签名终端提供的签名值构成。因此没有任何单一方可以提前获知上述目标签名,保证后续处理的公平性Here, the security of the above-mentioned target signature in the embodiment of the present application is guaranteed by multiple signature terminals, blockchain, time window mechanism and signature threshold. Each signing terminal generates an independent private key, so the signature value generated by each signing terminal will be different. By signing the data on the target block determined at time t of the blockchain, the signing terminal cannot calculate the signature in advance, and it is difficult to predict. Finally, through the time window mechanism and the signature threshold, it is impossible to predict in advance which signature values provided by which several signature terminals will constitute the final target signature. Therefore, no single party can know the above target signature in advance to ensure the fairness of subsequent processing.
在本申请实施例中,区块链存放待参与用户对应的抽签号与待参与用户对应的随机数的哈希值的对应关系。处理装置11在确定与上述待抽取对象对应的目标用户之后,还可以获取查询请求,该查询请求携带待查询用户对应的随机数。从而,处理装置11可以根据上述查询请求,计算上述待查询用户对应的随机数的哈希值,并根据上述对应关系,确定上述目标用户对应的随机数的哈希值,进而,根据上述待查询用户对应的随机数的哈希值和上述目标用户对应的随机数的哈希值,确定上述待查询用户是否为上述目标用户。In the embodiment of the present application, the blockchain stores the correspondence between the lottery number corresponding to the user to be participated and the hash value of the random number corresponding to the user to be participated. After determining the target user corresponding to the object to be extracted, the processing device 11 may also obtain a query request, where the query request carries a random number corresponding to the user to be queried. Therefore, the processing device 11 can calculate the hash value of the random number corresponding to the user to be queried according to the above query request, and determine the hash value of the random number corresponding to the target user according to the above corresponding relationship, and further, according to the above to be queried The hash value of the random number corresponding to the user and the hash value of the random number corresponding to the target user determine whether the user to be queried is the target user.
这里,处理装置11在确定目标用户后,提供查询功能。用户通过查询目标用户,确定自己是否被抽中。例如,用户输入其随机数r,处理装置11计算该随机数的哈希值,例如利用SHA3哈希计算SHA3(r),然后与上述目标用户对应的随机数的哈希值进行比对确认,如果是则该用户为目标用户,否则就不是。Here, the processing device 11 provides a query function after determining the target user. The user determines whether he is selected by querying the target user. For example, the user inputs its random number r, and the processing device 11 calculates the hash value of the random number, for example, using SHA3 hash to calculate SHA3(r), and then compares and confirms with the hash value of the random number corresponding to the above target user, If it is, the user is the target user, otherwise it is not.
本申请实施例,通过获取数据请求,该数据请求中包括待参与用户对应的随机数,从而,将该随机数上传至区块链确定待参与用户对应的抽签号,并从区块链上获取待处理数据,将该待处理数据发送至至少一个签名终端进行签名,获得至少一个签名,进而,根据该至少一个签名,确定待抽取对象,并根据上述抽签号,确定与上述待抽取对象对应的目标用户,向目标用户发送通知消息。其中,上述待抽取对象的安全性由区块链和多个签名终端保证,使得任何一方,例如摇号组织方无法篡改待抽取对象,从而,保证后续基于上述待抽取对象确定的目标用户的准确性,提高用户抽取过程中的公平、公正性,而且,本申请实施例无需知道待参与用户的真实信息,只需知道待参与用户对应的随机数,从而保护用户隐私信息,避免用户隐私信息被非法使用。In the embodiment of the present application, by obtaining a data request, the data request includes a random number corresponding to the user to be participated, so that the random number is uploaded to the blockchain to determine the lottery number corresponding to the user to participate, and obtained from the blockchain Data to be processed, send the data to be processed to at least one signature terminal for signature, obtain at least one signature, and then, according to the at least one signature, determine the object to be extracted, and determine the object corresponding to the object to be extracted according to the above-mentioned lottery number. Target user, send a notification message to the target user. The security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the to-be-extracted objects, thereby ensuring the accuracy of subsequent target users determined based on the above-mentioned objects to be extracted , improve the fairness and impartiality in the user extraction process, and the embodiment of the present application does not need to know the real information of the users to be participated, but only needs to know the random numbers corresponding to the users to participate, so as to protect the user's private information and avoid the illegal user's private information. use.
另外,在本申请实施例在根据上述目标签名,确定上述待抽取对象时,还考虑上述待参与用户的数目,即根据上述目标签名和上述待参与用户的数目,确定上述待抽取对象,从而,根据上述抽签号和上述待参与用户的对应关系,确定与上述待抽取对象对应的目标用户。图4为本申请实施例提出的另一种目标用户确定方法的流程示意图。如图4所示,该方法包括:In addition, in this embodiment of the present application, when determining the object to be extracted according to the target signature, the number of users to be involved is also considered, that is, the object to be extracted is determined according to the target signature and the number of users to be involved, so that, According to the correspondence between the lottery numbers and the users to be participated, the target users corresponding to the objects to be extracted are determined. FIG. 4 is a schematic flowchart of another target user determination method proposed by an embodiment of the present application. As shown in Figure 4, the method includes:
S401:获取数据请求,该数据请求中包括待参与用户对应的随机数。S401: Obtain a data request, where the data request includes a random number corresponding to the user to be participated.
S402:将上述随机数上传至区块链,上述随机数用于指示上述区块链根据上述随机数的上传顺序,确定上述待参与用户对应的抽签号。S402: Upload the random number to the blockchain, where the random number is used to instruct the blockchain to determine the lottery number corresponding to the user to be participated according to the upload sequence of the random number.
S403:获取上述区块链中的待处理数据,将该待处理数据发送至至少一个签名终端,上述待处理数据用于指示上述至少一个签名终端对上述待处理数据进行签名,获得至少一个签名。S403: Acquire the data to be processed in the blockchain, and send the data to be processed to at least one signature terminal, where the data to be processed is used to instruct the at least one signature terminal to sign the data to be processed to obtain at least one signature.
其中,步骤S401-S403与上述步骤S201-S203的实现方式相同,此处不再赘述。Wherein, steps S401-S403 are implemented in the same manner as the above-mentioned steps S201-S203, and are not repeated here.
S404:根据上述至少一个签名,获得目标签名,计算该目标签名对上述待参与用户的数目的余数。S404: Obtain a target signature according to the at least one signature, and calculate the remainder of the target signature to the number of users to be participating.
示例性的,以执行主体为上述处理装置11为例。例如,上述待参与用户的数目为N,上述目标签名为S。处理装置11计算S对N的余数。以上述五个待参与用户:用户1、用户2、用户3、用户4和用户5为例。处理装置11计算S对N的余数,可以得到余数为0、1、2、3和4中任意一个。Illustratively, take the execution subject as the above-mentioned processing device 11 as an example. For example, the above-mentioned number of users to participate is N, and the above-mentioned target signature is S. The processing means 11 calculates the remainder of S to N. Take the above five to-be-participated users: User 1, User 2, User 3, User 4, and User 5 as examples. The processing device 11 calculates the remainder of S to N, and the remainder can be any one of 0, 1, 2, 3 and 4.
S405:根据上述余数,确定上述抽取对象。S405: Determine the extraction object according to the remainder.
这里,处理装置11可以将上述余数作为上述抽取对象。Here, the processing device 11 may use the above-mentioned remainder as the above-mentioned extraction object.
S406:根据上述抽签号和上述待参与用户的对应关系,确定与上述待抽取对象对应的目标用户,向该目标用户发送通知消息。S406: Determine a target user corresponding to the object to be extracted according to the correspondence between the lottery number and the user to be participated, and send a notification message to the target user.
示例性的,上述提到,上述区块链在接收上述待参与用户的随机数后,可以根据其上链顺序,为每一个待参与用户生成一个抽签号,例如用户1第一个上链,则上述区块链为该用户生成一个抽签号,例如0。用户2第二个上链,则上述区块链为该用户生成一个抽签号,例如1。如果后续用户3、4和5依次上链,则上述区块链为这些用户依次生成一个抽签号,例如2、3和4。上述区块链可以存储上述待参与用户的抽签号与待参与用户的对应关系,例如存储用户1的抽签号0与用户1的对应关系。Exemplarily, as mentioned above, after receiving the random numbers of the above-mentioned users to be participating, the above-mentioned blockchain can generate a lottery number for each to-be-participated user according to the chaining sequence, for example, user 1 is the first to be on the chain, Then the above blockchain generates a lottery number, such as 0, for the user. User 2 is the second on the chain, the above blockchain will generate a lottery number for the user, such as 1. If subsequent users 3, 4 and 5 are listed in sequence, the above blockchain will generate a lottery number for these users in sequence, such as 2, 3 and 4. The above-mentioned blockchain can store the correspondence between the lottery numbers of the users to be participated and the users to be participated, for example, store the correspondence between the lottery number 0 of the user 1 and the user 1.
处理装置11根据上述抽取对象。例如0、1、2、3、4,以及上述抽签号和上述待参与用户的对应关系,其中,上述待参与用户的标签如上述,可以为上述0、1、2、3、4,确定与上述待抽取对象对应的目标用户,向该目标用户发送通知消息。The processing device 11 extracts objects based on the above. For example, 0, 1, 2, 3, and 4, as well as the correspondence between the lottery numbers and the users to be participated, wherein the labels of the users to be participated are as above, and can be the above 0, 1, 2, 3, and 4. The target user corresponding to the object to be extracted above sends a notification message to the target user.
本申请实施例在根据上述目标签名,确定上述待抽取对象时,还考虑上述待参与用户的数目,即根据上述目标签名和上述待参与用户的数目,确定上述待抽取对象,从而,根据上述抽签号和上述待参与用户的对应关系,确定与上述待抽取对象对应的目标用户,保证每一个进行用户抽取都会有一个用户被选中,不会出现抽取过程无效的情况,适合应用。另外,本申请实施例中上述待抽取对象的安全性由区块链和多个签名终端保证,使得任何一方,例如摇号组织方无法篡改待抽取对象,从而,保证后续基于上述待抽取对象确定的目标用户的准确性,提高用户抽取过程中的公平、公正性,而且,本申请实施例无需知道待参与用户的真实信息,只需知道待参与用户对应的随机数,从而保护用户隐私信息,避免用户隐私信息被非法使用。In this embodiment of the present application, when determining the object to be extracted according to the target signature, the number of users to be involved is also considered, that is, the object to be extracted is determined according to the target signature and the number of users to be involved, so that according to the lottery The corresponding relationship between the number and the above-mentioned users to be involved is determined, and the target users corresponding to the above-mentioned objects to be extracted are determined to ensure that each user extraction will have a user selected, and there will be no invalid extraction process, which is suitable for application. In addition, in the embodiments of the present application, the security of the above-mentioned objects to be extracted is guaranteed by the blockchain and multiple signature terminals, so that any party, such as the lottery organizer, cannot tamper with the to-be-extracted objects, thereby ensuring that subsequent determinations based on the above-mentioned objects to be extracted are guaranteed. The accuracy of the target user improves the fairness and impartiality in the user extraction process. Moreover, the embodiment of the present application does not need to know the real information of the user to be participated, but only needs to know the random number corresponding to the user to be participated, so as to protect the user's privacy information and avoid User privacy information is used illegally.
对应于上文实施例的目标用户确定方法,图5为本申请实施例提供的目标用户确定装置的结构示意图。为了便于说明,仅示出了与本申请实施例相关的部分。图5为本申请实施例提供的一种目标用户确定装置的结构示意图,该目标用户确定装置50包括:第一获取模块501、上传模块502、第二获取模块503以及确定模块504。这里的目标用户确定装置可以是上述处理装置本身,或者是实现处理装置的功能的芯片或者集成电路。这里需要说明的是,第一获取模块、上传模块、第二获取模块以及确定模块的划分只是一种逻辑功能的划分,物理上两者可以是集成的,也可以是独立的。Corresponding to the method for determining a target user in the above embodiment, FIG. 5 is a schematic structural diagram of an apparatus for determining a target user provided by an embodiment of the present application. For the convenience of description, only the parts related to the embodiments of the present application are shown. 5 is a schematic structural diagram of an apparatus for determining a target user according to an embodiment of the present application. The apparatus for determining a target user 50 includes: a first acquiring module 501 , an uploading module 502 , a second acquiring module 503 and a determining module 504 . The device for determining the target user here may be the above-mentioned processing device itself, or a chip or an integrated circuit that implements the functions of the processing device. It should be noted here that the division of the first acquisition module, the upload module, the second acquisition module and the determination module is only a division of logical functions, and the two may be physically integrated or independent.
其中,第一获取模块501,获取数据请求,所述数据请求中包括待参与用户对应的随机数。The first obtaining module 501 obtains a data request, where the data request includes a random number corresponding to the user to be participated.
上传模块502,用于将所述随机数上传至区块链,所述随机数用于指示所述区块链根据所述随机数的上传顺序,确定所述待参与用户对应的抽签号。The uploading module 502 is configured to upload the random number to the blockchain, where the random number is used to instruct the blockchain to determine the lottery number corresponding to the user to be participated according to the upload sequence of the random number.
第二获取模块503,用于获取所述区块链中的待处理数据,将所述待处理数据发送至至少一个签名终端,所述待处理数据用于指示所述至少一个签名终端对所述待处理数据进行签名,获得至少一个签名。The second obtaining module 503 is configured to obtain the data to be processed in the blockchain, send the data to be processed to at least one signature terminal, and the data to be processed is used to instruct the at least one signature terminal to The data to be processed is signed, and at least one signature is obtained.
确定模块504,用于根据所述至少一个签名,确定待抽取对象,并根据所述抽签号,确定与所述待抽取对象对应的目标用户,向所述目标用户发送通知消息。The determining module 504 is configured to determine the object to be extracted according to the at least one signature, determine the target user corresponding to the object to be extracted according to the lottery number, and send a notification message to the target user.
本申请实施例提供的装置,可用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,本申请实施例此处不再赘述。The apparatuses provided in the embodiments of the present application can be used to implement the technical solutions of the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again in the embodiments of the present application.
图6为本申请实施例在图5实施例的基础上,提供的另一种目标用户确定装置的结构示意图。上述目标用户确定装置50还包括:查询模块505。FIG. 6 is a schematic structural diagram of another apparatus for determining a target user provided by an embodiment of the present application on the basis of the embodiment in FIG. 5 . The above-mentioned target user determination apparatus 50 further includes: a query module 505 .
在一种可能的实现方式中,所述第二获取模块503,具体用于:In a possible implementation manner, the second obtaining module 503 is specifically configured to:
根据预设时刻和所述区块链中各个区块的时刻标识,确定目标区块;Determine the target block according to the preset time and the time identification of each block in the blockchain;
根据所述目标区块中存放的数据,获取所述待处理数据。Acquire the data to be processed according to the data stored in the target block.
在一种可能的实现方式中,所述确定模块504,具体用于:In a possible implementation manner, the determining module 504 is specifically configured to:
根据所述至少一个签名,获得目标签名;obtaining a target signature according to the at least one signature;
根据所述目标签名,确定所述待抽取对象。The object to be extracted is determined according to the target signature.
在一种可能的实现方式中,所述确定模块504,具体用于:In a possible implementation manner, the determining module 504 is specifically configured to:
判断所述至少一个签名的签名时间是否在预设时间段内,其中,所述签名时间根据所述将所述待处理数据发送至至少一个签名终端的时刻和获得所述至少一个签名的时刻确定;Judging whether the signature time of the at least one signature is within a preset time period, wherein the signature time is determined according to the time when the data to be processed is sent to the at least one signature terminal and the time when the at least one signature is obtained ;
若所述至少一个签名的签名时间在所述预设时间段内,则根据所述至少一个签名,获得所述目标签名。If the signature time of the at least one signature is within the preset time period, the target signature is obtained according to the at least one signature.
在一种可能的实现方式中,所述确定模块504,具体用于:In a possible implementation manner, the determining module 504 is specifically configured to:
根据获得所述至少一个签名的时刻,确定所述至少一个签名中获得时刻最晚的预设数目个签名,其中,所述预设数目小于或等于所述至少一个签名的数目;According to the moment when the at least one signature is obtained, determine a preset number of signatures with the latest acquisition moment in the at least one signature, wherein the preset number is less than or equal to the number of the at least one signature;
根据所述预设数目个签名,获得所述目标签名。Obtain the target signature according to the preset number of signatures.
在一种可能的实现方式中,所述确定模块504,具体用于:In a possible implementation manner, the determining module 504 is specifically configured to:
对所述至少一个签名进行求和或累乘,获得所述目标签名。The target signature is obtained by summing or multiplying the at least one signature.
在一种可能的实现方式中,所述确定模块504,具体用于:In a possible implementation manner, the determining module 504 is specifically configured to:
根据所述目标签名和所述待参与用户的数目,确定所述待抽取对象。The to-be-extracted object is determined according to the target signature and the number of the to-be-participated users.
在一种可能的实现方式中,所述确定模块504,具体用于:In a possible implementation manner, the determining module 504 is specifically configured to:
根据所述抽签号和所述待参与用户的对应关系,确定与所述待抽取对象对应的目标用户。According to the correspondence between the lottery number and the to-be-participated user, the target user corresponding to the to-be-extracted object is determined.
在一种可能的实现方式中,所述确定模块504,具体用于:In a possible implementation manner, the determining module 504 is specifically configured to:
计算所述目标签名对所述待参与用户的数目的余数;Calculate the remainder of the target signature to the number of users to be involved;
根据所述余数,确定所述待抽取对象。According to the remainder, the object to be extracted is determined.
在一种可能的实现方式中,所述区块链存放所述待参与用户对应的抽签号与所述待参与用户对应的随机数的哈希值的对应关系。In a possible implementation manner, the blockchain stores the correspondence between the lottery number corresponding to the user to be participated and the hash value of the random number corresponding to the user to be participated.
查询模块505,用于在所述确定模块根据所述抽签号,确定与所述待抽取对象对应的目标用户之后,获取查询请求,所述查询请求携带待查询用户对应的随机数;The query module 505 is configured to obtain a query request after the determination module determines the target user corresponding to the object to be extracted according to the lottery number, and the query request carries a random number corresponding to the user to be queried;
根据所述查询请求,计算所述待查询用户对应的随机数的哈希值,并根据所述对应关系,确定所述目标用户对应的随机数的哈希值;Calculate the hash value of the random number corresponding to the user to be queried according to the query request, and determine the hash value of the random number corresponding to the target user according to the corresponding relationship;
根据所述待查询用户对应的随机数的哈希值和所述目标用户对应的随机数的哈希值,确定所述待查询用户是否为所述目标用户。Whether the user to be queried is the target user is determined according to the hash value of the random number corresponding to the user to be queried and the hash value of the random number corresponding to the target user.
本申请实施例提供的装置,可用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,本申请实施例此处不再赘述。The apparatuses provided in the embodiments of the present application can be used to implement the technical solutions of the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again in the embodiments of the present application.
可选地,图7A和7B分别示意性地提供本申请所述目标用户确定设备的一种可能的基本硬件架构。Optionally, FIGS. 7A and 7B respectively schematically provide a possible basic hardware architecture of the target user determination device described in this application.
参见图7A和7B,目标用户确定设备包括至少一个处理器701以及通信接口703。进一步可选的,还可以包括存储器702和总线704。Referring to FIGS. 7A and 7B , the target user determination device includes at least one processor 701 and a communication interface 703 . Further optionally, a memory 702 and a bus 704 may also be included.
其中,目标用户确定设备中,处理器701的数量可以是一个或多个,图7A和7B仅示意了其中一个处理器701。可选地,处理器701,可以是中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)或者数字信号处理(Digital Signal Process,DSP)。如果目标用户确定设备具有多个处理器701,多个处理器701的类型可以不同,或者可以相同。可选地,目标用户确定设备的多个处理器701还可以集成为多核处理器。Wherein, in the target user determination device, the number of processors 701 may be one or more, and FIGS. 7A and 7B only illustrate one of the processors 701 . Optionally, the processor 701 may be a central processing unit (Central Processing Unit (CPU), Graphics Processing Unit (GPU), or Digital Signal Process (DSP). If the target user determines that the device has multiple processors 701, the types of the multiple processors 701 may be different, or may be the same. Optionally, the multiple processors 701 of the target user determination device may also be integrated into a multi-core processor.
存储器702存储计算机指令和数据;存储器702可以存储实现本申请提供的上述目标用户确定方法所需的计算机指令和数据,例如,存储器702存储用于实现上述目标用户确定方法的步骤的指令。存储器702可以是以下存储介质的任一种或任一种组合:非易失性存储器(例如只读存储器(ROM)、固态硬盘(SSD)、硬盘(HDD)、光盘),易失性存储器。The memory 702 stores computer instructions and data; the memory 702 can store computer instructions and data required to implement the above target user determination method provided by the present application, for example, the memory 702 stores instructions for implementing the steps of the above target user determination method. The memory 702 may be any one or any combination of the following storage media: non-volatile memory (eg, read only memory (ROM), solid state drive (SSD), hard disk (HDD), optical disk), volatile memory.
通信接口703可以为所述至少一个处理器提供信息输入/输出。也可以包括以下器件的任一种或任一种组合:网络接口(例如以太网接口)、无线网卡等具有网络接入功能的器件。Communication interface 703 may provide information input/output for the at least one processor. It may also include any one or any combination of the following devices: a network interface (such as an Ethernet interface), a wireless network card, and other devices with network access functions.
可选的,通信接口703还可以用于目标用户确定设备与其它计算设备或者终端进行数据通信。Optionally, the communication interface 703 may also be used for data communication between the target user determination device and other computing devices or terminals.
进一步可选的,图7A和7B用一条粗线表示总线704。总线704可以将处理器701与存储器702和通信接口703连接。这样,通过总线704,处理器701可以访问存储器702,还可以利用通信接口703与其它计算设备或者终端进行数据交互。Further optionally, the bus 704 is represented by a thick line in FIGS. 7A and 7B. A bus 704 may connect the processor 701 with the memory 702 and the communication interface 703 . In this way, through the bus 704, the processor 701 can access the memory 702, and can also use the communication interface 703 to perform data interaction with other computing devices or terminals.
在本申请中,目标用户确定设备执行存储器702中的计算机指令,使得目标用户确定设备实现本申请提供的上述目标用户确定方法,或者使得目标用户确定设备部署上述的目标用户确定装置。In this application, the target user determination device executes the computer instructions in the memory 702, so that the target user determination device implements the above target user determination method provided in this application, or the target user determination device deploys the above target user determination device.
从逻辑功能划分来看,示例性的,如图7A所示,存储器702中可以包括第一获取模块501、上传模块502、第二获取模块503以及确定模块504。这里的包括仅仅涉及存储器中所存储的指令被执行时可以分别实现第一获取模块、上传模块、第二获取模块以及确定模块的功能,而不限定是物理上的结构。From the perspective of logical function division, exemplarily, as shown in FIG. 7A , the memory 702 may include a first obtaining module 501 , an uploading module 502 , a second obtaining module 503 , and a determining module 504 . The inclusion here only involves that the functions of the first obtaining module, the uploading module, the second obtaining module and the determining module can be implemented respectively when the instructions stored in the memory are executed, and are not limited to physical structures.
示例性的,如图7B所示,存储器702中还可以包括查询模块505。这里的包括仅仅涉及存储器中所存储的指令被执行时可以分别实现第一获取模块、上传模块、第二获取模块、确定模块以及查询模块的功能,而不限定是物理上的结构。Exemplarily, as shown in FIG. 7B , the memory 702 may further include a query module 505 . The inclusion here only involves that the functions of the first obtaining module, the uploading module, the second obtaining module, the determining module and the querying module can be implemented respectively when the instructions stored in the memory are executed, and are not limited to physical structures.
另外,上述的目标用户确定设备除了可以像上述图7A和图7B通过软件实现外,也可以作为硬件模块,或者作为电路单元,通过硬件实现。In addition, the above-mentioned target user determination device can be implemented as a hardware module, or as a circuit unit, in addition to being implemented by software as in the above-mentioned FIG. 7A and FIG. 7B .
本申请提供一种计算机可读存储介质,所述计算机程序产品包括计算机指令,所述计算机指令指示计算设备执行本申请提供的上述目标用户确定方法。The present application provides a computer-readable storage medium, and the computer program product includes computer instructions, and the computer instructions instruct a computing device to execute the above target user determination method provided by the present application.
本申请提供一种芯片,包括至少一个处理器和通信接口,所述通信接口为所述至少一个处理器提供信息输入和/或输出。进一步,所述芯片还可以包含至少一个存储器,所述存储器用于存储计算机指令。所述至少一个处理器用于调用并运行该计算机指令,以执行本申请提供的上述目标用户确定方法。The present application provides a chip comprising at least one processor and a communication interface, wherein the communication interface provides information input and/or output for the at least one processor. Further, the chip may also include at least one memory for storing computer instructions. The at least one processor is configured to invoke and execute the computer instructions to execute the above target user determination method provided by the present application.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units.

Claims (10)

  1. 一种目标用户确定方法,其特征在于,包括:A method for determining target users, comprising:
    获取数据请求,所述数据请求中包括待参与用户对应的随机数;Obtain a data request, where the data request includes a random number corresponding to the user to be involved;
    将所述随机数上传至区块链,所述随机数用于指示所述区块链根据所述随机数的上传顺序,确定所述待参与用户对应的抽签号;uploading the random number to the blockchain, where the random number is used to instruct the blockchain to determine the lottery number corresponding to the user to be participated according to the upload sequence of the random number;
    获取所述区块链中的待处理数据,将所述待处理数据发送至至少一个签名终端,所述待处理数据用于指示所述至少一个签名终端对所述待处理数据进行签名,获得至少一个签名;Acquire the data to be processed in the blockchain, send the data to be processed to at least one signature terminal, and the data to be processed is used to instruct the at least one signature terminal to sign the data to be processed, and obtain at least one signature terminal. a signature;
    根据所述至少一个签名,确定待抽取对象,并根据所述抽签号,确定与所述待抽取对象对应的目标用户,向所述目标用户发送通知消息。An object to be extracted is determined according to the at least one signature, a target user corresponding to the object to be extracted is determined according to the lottery number, and a notification message is sent to the target user.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述区块链中的待处理数据,包括:The method according to claim 1, wherein the acquiring the data to be processed in the blockchain comprises:
    根据预设时刻和所述区块链中各个区块的时刻标识,确定目标区块;Determine the target block according to the preset time and the time identification of each block in the blockchain;
    根据所述目标区块中存放的数据,获取所述待处理数据。Acquire the data to be processed according to the data stored in the target block.
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据所述至少一个签名,确定待抽取对象,包括:The method according to claim 1 or 2, wherein the determining the object to be extracted according to the at least one signature comprises:
    根据所述至少一个签名,获得目标签名;obtaining a target signature according to the at least one signature;
    根据所述目标签名,确定所述待抽取对象。The object to be extracted is determined according to the target signature.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述至少一个签名,获得目标签名,包括:The method according to claim 3, wherein the obtaining the target signature according to the at least one signature comprises:
    判断所述至少一个签名的签名时间是否在预设时间段内,其中,所述签名时间根据所述将所述待处理数据发送至至少一个签名终端的时刻和获得所述至少一个签名的时刻确定;Judging whether the signature time of the at least one signature is within a preset time period, wherein the signature time is determined according to the time when the data to be processed is sent to the at least one signature terminal and the time when the at least one signature is obtained ;
    若所述至少一个签名的签名时间在所述预设时间段内,则根据所述至少一个签名,获得所述目标签名。If the signature time of the at least one signature is within the preset time period, the target signature is obtained according to the at least one signature.
  5. 根据权利要求3所述的方法,其特征在于,所述根据所述至少一个签名,获得目标签名,包括:The method according to claim 3, wherein the obtaining the target signature according to the at least one signature comprises:
    根据获得所述至少一个签名的时刻,确定所述至少一个签名中获得时刻最晚的预设数目个签名,其中,所述预设数目小于或等于所述至少一个签名的数目;According to the moment when the at least one signature is obtained, determine a preset number of signatures with the latest acquisition moment in the at least one signature, wherein the preset number is less than or equal to the number of the at least one signature;
    根据所述预设数目个签名,获得所述目标签名。Obtain the target signature according to the preset number of signatures.
  6. 根据权利要求3所述的方法,其特征在于,所述根据所述至少一个签名,获得目标签名,包括:The method according to claim 3, wherein the obtaining the target signature according to the at least one signature comprises:
    对所述至少一个签名进行求和或累乘,获得所述目标签名。The target signature is obtained by summing or multiplying the at least one signature.
  7. 根据权利要求3至6中任一项所述的方法,其特征在于,所述根据所述目标签名,确定所述待抽取对象,包括:The method according to any one of claims 3 to 6, wherein the determining the object to be extracted according to the target signature comprises:
    根据所述目标签名和所述待参与用户的数目,确定所述待抽取对象。The to-be-extracted object is determined according to the target signature and the number of the to-be-participated users.
  8. 根据权利要求7所述的方法,其特征在于,所述根据所述抽签号,确定与所述待抽取对象对应的目标用户,包括:The method according to claim 7, wherein determining the target user corresponding to the object to be extracted according to the lottery number comprises:
    根据所述抽签号和所述待参与用户的对应关系,确定与所述待抽取对象对应的目标用户。According to the correspondence between the lottery number and the to-be-participated user, the target user corresponding to the to-be-extracted object is determined.
  9. 根据权利要求7或8所述的方法,其特征在于,所述根据所述目标签名和所述待参与用户的数目,确定所述待抽取对象,包括:The method according to claim 7 or 8, wherein the determining the object to be extracted according to the target signature and the number of the users to be participated includes:
    计算所述目标签名对所述待参与用户的数目的余数;Calculate the remainder of the target signature to the number of users to be involved;
    根据所述余数,确定所述待抽取对象。According to the remainder, the object to be extracted is determined.
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述区块链存放所述待参与用户对应的抽签号与所述待参与用户对应的随机数的哈希值的对应关系;The method according to any one of claims 1 to 9, wherein the blockchain stores the correspondence between the lottery number corresponding to the user to be participated and the hash value of the random number corresponding to the user to participate relation;
    在所述根据所述抽签号,确定与所述待抽取对象对应的目标用户之后,还包括:After the target user corresponding to the object to be extracted is determined according to the lottery number, the method further includes:
    获取查询请求,所述查询请求携带待查询用户对应的随机数;obtaining a query request, where the query request carries a random number corresponding to the user to be queried;
    根据所述查询请求,计算所述待查询用户对应的随机数的哈希值,并根据所述对应关系,确定所述目标用户对应的随机数的哈希值;Calculate the hash value of the random number corresponding to the user to be queried according to the query request, and determine the hash value of the random number corresponding to the target user according to the corresponding relationship;
    根据所述待查询用户对应的随机数的哈希值和所述目标用户对应的随机数的哈希值,确定所述待查询用户是否为所述目标用户。Whether the user to be queried is the target user is determined according to the hash value of the random number corresponding to the user to be queried and the hash value of the random number corresponding to the target user.
PCT/CN2021/119581 2020-09-30 2021-09-22 Target user determination method and apparatus, and device and storage medium WO2022068644A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011063547.8A CN112162726A (en) 2020-09-30 2020-09-30 Target user determination method, device, equipment and storage medium
CN202011063547.8 2020-09-30

Publications (1)

Publication Number Publication Date
WO2022068644A1 true WO2022068644A1 (en) 2022-04-07

Family

ID=73862222

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119581 WO2022068644A1 (en) 2020-09-30 2021-09-22 Target user determination method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN112162726A (en)
WO (1) WO2022068644A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115906182A (en) * 2023-01-05 2023-04-04 中国联合网络通信集团有限公司 Data comparison processing method, device, equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162726A (en) * 2020-09-30 2021-01-01 深圳前海微众银行股份有限公司 Target user determination method, device, equipment and storage medium
CN113157743A (en) * 2021-04-28 2021-07-23 中国工商银行股份有限公司 Data processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050255910A1 (en) * 2004-05-13 2005-11-17 Via Technologies, Inc. Prizewinner generating system and method and recording medium
CN107103097A (en) * 2017-05-22 2017-08-29 中链科技有限公司 Drawing method and terminal device based on block chain technology
CN107862782A (en) * 2017-10-27 2018-03-30 链家网(北京)科技有限公司 Drawing method and device based on ether mill block chain
CN109918044A (en) * 2019-02-26 2019-06-21 太原理工大学 A kind of lot/sort method based on block chain technology
CN112162726A (en) * 2020-09-30 2021-01-01 深圳前海微众银行股份有限公司 Target user determination method, device, equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015222904A (en) * 2014-05-23 2015-12-10 株式会社サイバー創研 System and method for rfid tag authentication
KR101829729B1 (en) * 2016-11-03 2018-03-29 주식회사 코인플러그 Method for certifying a user by using mobile id through blockchain and merkle tree structure related thereto, and terminal and server using the same
CN108363561B (en) * 2017-12-29 2020-11-20 北京欧链科技有限公司 Data screening method and device based on block chain
JP2020127688A (en) * 2019-02-12 2020-08-27 株式会社Core 33 Lottery system
CN110113167B (en) * 2019-04-01 2021-10-22 广州杰赛科技股份有限公司 Information protection method and system of intelligent terminal and readable storage medium
CN110968644A (en) * 2019-11-29 2020-04-07 腾讯科技(深圳)有限公司 Data processing method and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050255910A1 (en) * 2004-05-13 2005-11-17 Via Technologies, Inc. Prizewinner generating system and method and recording medium
CN107103097A (en) * 2017-05-22 2017-08-29 中链科技有限公司 Drawing method and terminal device based on block chain technology
CN107862782A (en) * 2017-10-27 2018-03-30 链家网(北京)科技有限公司 Drawing method and device based on ether mill block chain
CN109918044A (en) * 2019-02-26 2019-06-21 太原理工大学 A kind of lot/sort method based on block chain technology
CN112162726A (en) * 2020-09-30 2021-01-01 深圳前海微众银行股份有限公司 Target user determination method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115906182A (en) * 2023-01-05 2023-04-04 中国联合网络通信集团有限公司 Data comparison processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112162726A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
WO2022068644A1 (en) Target user determination method and apparatus, and device and storage medium
RU2652443C1 (en) Voters votes quantity collected by electronic voting determining system and method
CN113434269B (en) Distributed privacy calculation method and device based on block chain
WO2021239059A1 (en) Key rotation method, device, electronic apparatus, and medium
CN111556120B (en) Data processing method and device based on block chain, storage medium and equipment
WO2021046668A1 (en) Blockchain system, information transmission method, system and apparatus, and computer medium
CN111008863B (en) Lottery drawing method and system based on block chain
WO2020082883A1 (en) Object selection method and device and electronic device
CN111797430B (en) Data verification method, device, server and storage medium
CN109493054B (en) Multi-chain information management method, device, storage medium and block chain identity analyzer
CN112732297B (en) Method and device for updating federal learning model, electronic equipment and storage medium
CN112104626A (en) Block chain-based data access verification method and device, electronic equipment and medium
CN114884697A (en) Data encryption and decryption method based on state cryptographic algorithm and related equipment
CN110958107A (en) Electronic voting method, device and storage medium based on block chain
WO2022105518A1 (en) Electronic voting method and device
CN117574403A (en) Photovoltaic embedded system access control method and system based on trusted computing
CN112287318A (en) Cross-application program login method, device, equipment and medium
CN114697132B (en) Method, device, equipment and storage medium for intercepting repeated access request attack
CN111683070B (en) Data transmission method and device based on identity encryption and storage medium
CN109698750A (en) Block generation method, device, equipment and the readable storage medium storing program for executing of block chain
CN114827354A (en) Identity authentication information display method and device, electronic equipment and readable storage medium
CN114125158A (en) Anti-harassment method, device, equipment and storage medium based on trusted telephone
CN112685706A (en) Request authentication method and related equipment
CN113949508B (en) Process data processing method and device based on random number consensus mechanism
CN115809482B (en) Data aggregation calculation method, device, medium and equipment based on random number confusion

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21874305

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03/07/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21874305

Country of ref document: EP

Kind code of ref document: A1