Questionnaire method and device based on blockchain and homomorphic encryption and medium
By using blockchain and homomorphic encryption technology, the problem of low information security in electronic questionnaire surveys has been solved, user information privacy protection and cheating prevention have been achieved, and the security and traceability of questionnaire transmission have been improved.
Patent Information
- Application Number
- CN202111435934.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2041-11-26
AI Technical Summary
Existing electronic questionnaire survey methods suffer from low security, with user information easily leaked during transmission and unable to prevent cheating.
The system employs a blockchain-based and homomorphic encryption approach. The questionnaire filling module encrypts the responses, the blockchain smart contract module transmits the encrypted information, and the system decrypts the responses in the provision module, ensuring information security and immutability.
It achieves privacy protection for user information, prevents questionnaire providers from knowing the specific content filled in, prevents cheating, and improves the security and traceability of information transmission.
Smart Images

Figure CN114117491B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of questionnaire survey, and particularly relates to a questionnaire method and device based on blockchain and homomorphic encryption and a medium. BACKGROUND
[0002] At present, with the development of big data, electronic questionnaire has become an important way of market survey. In order to protect the privacy information of the surveyed person, an anonymous form is generally adopted, but when the system collects the questionnaire, the information of the user is exposed to the collection system, and there is a technical problem of low security, and after collecting the questionnaire, the surveyed person cannot confirm whether his / her questionnaire is truly counted, and there is a technical problem that the cheating of the collection system cannot be ruled out.
[0003] Therefore, the prior art needs to be improved. SUMMARY
[0004] The main purpose of the present application is to provide a questionnaire method and device based on blockchain and homomorphic encryption and a medium, so as to at least solve the technical problem of low security in the existing electronic questionnaire survey method.
[0005] In a first aspect, the present application provides a questionnaire method based on blockchain and homomorphic encryption, applied to a user information processing system having a questionnaire filling module, a blockchain smart contract module and a questionnaire providing module, and the method comprises the following steps:
[0006] The questionnaire filling module obtains the reply information of the user on the electronic questionnaire;
[0007] The questionnaire filling module encrypts the reply information to obtain ciphertext information corresponding to the reply information;
[0008] The questionnaire filling module sends the ciphertext information to the blockchain smart contract module;
[0009] The blockchain smart contract module sends the ciphertext information to the questionnaire providing module based on a preset smart contract rule.
[0010] In a second aspect, the present application provides an electronic device comprising a memory, a processor and a bus;
[0011] The bus is used to realize the connection and communication between the memory and the processor;
[0012] The processor is used to execute the computer program stored in the memory;
[0013] When the processor executes the computer program, the steps in the message processing method of the first aspect are realized.
[0014] In a third aspect, the present application provides a computer readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the message processing method according to the first aspect.
[0015] The present application provides a questionnaire method and device based on blockchain and homomorphic encryption and medium, wherein the reply information of a user on an electronic questionnaire is acquired through a questionnaire filling module, the questionnaire filling module performs encryption processing on the reply information to obtain ciphertext information corresponding to the reply information, the questionnaire filling module sends the ciphertext information to a blockchain smart contract module, and the blockchain smart contract module sends the ciphertext information to a questionnaire providing module based on a preset smart contract rule. Thus, the questionnaire filling module, the blockchain smart contract module and the questionnaire providing module assist in separating result statistics and result decryption, prevent the filling information of the user from being known by the questionnaire provider, thus protecting the privacy information of the user and effectively improving the security of the reply information of the user in the transmission process. Meanwhile, based on the blockchain smart contract setting, the ciphertext information cannot be tampered with and is traceable, and cheating is prevented. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0017] Figure 1 The structure schematic diagram of the user information processing system in the present application;
[0018] Figure 2 The flowchart of the questionnaire method based on blockchain and homomorphic encryption provided by the first embodiment of the present application;
[0019] Figure 3 The schematic diagram of the text reply information in the present application;
[0020] Figure 4 The flowchart of the questionnaire method based on blockchain and homomorphic encryption provided by the second embodiment of the present application;
[0021] Figure 5 The flowchart of the questionnaire method based on blockchain and homomorphic encryption provided by the third embodiment of the present application;
[0022] Figure 6 The module connection schematic diagram in the electronic device provided by the fourth embodiment of the present application.
[0023] The objectives, functional characteristics and advantages of the present application will be further illustrated in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0024] It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
[0025] It should be noted that related terms such as "first", "second", etc. can be used to describe various components, but these terms do not limit the components. These terms are only used to distinguish one component from another component. For example, without departing from the scope of the present application, a first component can be referred to as a second component, and a second component can similarly be referred to as a first component. The term "and / or" refers to a combination of any one or more of the related terms and the described terms.
[0026] As shown in Figures 1-2 The blockchain and homomorphic encryption-based questionnaire method of the present application is applied to a user information processing system having a questionnaire filling module, a blockchain smart contract module and a questionnaire providing module. The blockchain and homomorphic encryption-based questionnaire method includes:
[0027] Step S201, the questionnaire filling module obtains the reply information of the user on the electronic questionnaire;
[0028] Specifically, the electronic questionnaire can be a simulated questionnaire having a plurality of survey questions (the simulated questionnaire can be displayed on the questionnaire filling module), and the user can answer in the questionnaire filling module to generate the reply information, wherein the questionnaire filling module can be a mobile terminal.
[0029] Step S202, the questionnaire filling module encrypts the reply information to obtain ciphertext information corresponding to the reply information;
[0030] Step S203, the questionnaire filling module sends the ciphertext information to the blockchain smart contract module;
[0031] Step S204, the blockchain smart contract module sends the ciphertext information to the questionnaire providing module based on a preset smart contract rule; wherein the questionnaire providing module can be a client.
[0032] In the embodiment, the blockchain smart contract module represents a blockchain integrated with a contract module, which can be a program (for example, the program is a piece of pre-written computer code) running on the blockchain, the code is stored in the blockchain, and once called by a user, the computing code starts to execute immediately through the blockchain virtual execution environment. That is, when the blockchain smart contract module receives the ciphertext information, the ciphertext information is sent to the questionnaire providing module based on the preset smart contract rule (automatic sending rule). As can be seen, the blockchain smart contract module has the characteristics of having to be executed, not being tampered with, and being traceable. Therefore, the transmission process of the ciphertext information between the blockchain smart contract module, the questionnaire filling module, and the questionnaire providing module can guarantee that the ciphertext information cannot be tampered with and has traceable characteristics, preventing cheating.
[0033] When the user fills in the reply information on the electronic questionnaire, the questionnaire filling module obtains the reply information of the user on the electronic questionnaire, and encrypts the reply information to obtain ciphertext information corresponding to the reply information. The questionnaire filling module sends the ciphertext information to the blockchain smart contract module, and the blockchain smart contract module sends the ciphertext information to the questionnaire providing module based on a preset smart contract rule. Thus, the questionnaire filling module, the blockchain smart contract module, and the questionnaire providing module assist in separating result statistics and result decryption, prevent the filling information of the user from being obtained by the questionnaire provider, and separate encryption and decryption, which protects the privacy information of the user,
[0034] Specifically, after separating the result statistics and the result decryption, the questionnaire is counted using homomorphic addition, so that the specific content of the questionnaire is kept secret, and the specific content of the statistical result is kept secret. The homomorphic statistical result is sent to the questionnaire provider; the questionnaire provider decrypts the homomorphic statistical result to obtain the statistical result without knowing the content filled by each questionnaire filler. The privacy of the filler is completely protected. The questionnaire provider cannot modify the content of the survey, and the survey result is guaranteed to be free of cheating.
[0035] The security of the reply information of the user in the transmission process is effectively improved. At the same time, based on the blockchain smart contract setting, the ciphertext information is guaranteed to be not tampered with and has traceable characteristics, preventing cheating.
[0036] In the embodiment, the reply information includes option reply information and text reply information, and the step of the questionnaire filling module encrypting the reply information to obtain ciphertext information corresponding to the reply information includes: the questionnaire filling module performing first encryption processing on the option reply information to obtain first ciphertext information, and performing second encryption processing on the text reply information to obtain second ciphertext information; wherein the first ciphertext information and the second ciphertext information constitute the ciphertext information.
[0037] Specifically, the option reply information can refer to Table 1 below, and the electronic questionnaire can have multiple items, and each item needs to be checked by the user, and the selection of the user for each item represents the option reply information.
[0038] Table 1
[0039]
[0040] The survey optional item is an option designed by the designer, and the option is selected by the surveyee, the selection code is 1, and the non-selection code is 0, and the final statistical result of the option is the sum of the selection results of all surveyees. That is, the option reply information is coded information (the coded information is binary coded information, which generally includes binary 0 and binary 1).
[0041] For example, the questionnaire designer first determines the items to be investigated, designs the style of the questionnaire according to the items to be investigated, and arranges the survey items in order on the questionnaire. For example, there are n survey items, and each item has m options, so the questionnaire has N = n * m options. The questionnaire designer sets the way to extract the options according to the position of the survey items on the questionnaire. According to the way to extract the options, the intelligent contract is designed to count each item. For example, the first option of the first item is extracted, that is, the first row and the first column of the questionnaire table are extracted. If the surveyee selects this option, the selection of the surveyee on this option is 1; if the surveyee does not select this option, the selection of the surveyee on this option is 0. The extraction result of the whole questionnaire is a 01 sequence with a length of N, m = 0110...01.
[0042] Specifically, the text reply information is as shown in Figure 3 The electronic questionnaire can have multiple events (for example, events of how to dispose of garbage), and the text reply information is the text information replied by the user for each event.
[0043] When the questionnaire filling module obtains the option reply information and the text reply information, different encryption processing is performed on different reply information, so that the ciphertext information composed of the first ciphertext information and the second ciphertext information is obtained, and the security of the user reply information is improved based on the different encryption processing of different reply information. For example, the questionnaire is divided into option reply information and text reply information, and GSW homomorphic encryption and elliptic curve ECC encryption are used for privacy protection, respectively.
[0044] Figure 4 The questionnaire filling module performs the first encryption processing on the option reply information to obtain the first ciphertext information, and the questionnaire filling module performs the second encryption processing on the text reply information to obtain the second ciphertext information.
[0045] Step S401: The questionnaire filling module generates a set of selection parameters based on the answer information.
[0046] In this embodiment, the parameter set s = (n, q, x, m) is selected, where n represents the dimension of the lattice, q represents the modulus, x represents the error distribution, and m = O(nlogq). The parameter N = (n+1)*l, the modulus, the dimension of the lattice, and the error distribution can all be obtained from the option response information. Wherein, n, q, and χ represent preset security parameters (the specific values of these security parameters are preset by the questionnaire setter). Generally speaking, the more digits in the specific value, the higher the security level and the more difficult it is to be cracked.
[0047] Step S402: The questionnaire filling module generates the first private key based on the set of selected parameters;
[0048] In this embodiment, the selected parameters Generate the first private key make in, Indicates the first private key One parameter is predefined. Z is a finite group, Zq = {0, 1, ..., q-1}, meaning it can only take q integer values. It contains n numbers, each of which is an integer (modulo q) that takes the value from 0 to q-1.
[0049] Step S403: The questionnaire filling module generates a first public key based on a preset first selection uniform distribution matrix;
[0050] In this embodiment, based on a preset first selection uniform distribution matrix Error vector calculate Generate the first public key We know the first public key A and the first private key. There is a relationship:
[0051] In step S404, the questionnaire filling module performs GSW homomorphic encryption on each response information in the option response information according to the first public key and the preset second uniform distribution matrix to obtain multiple first actual ciphertext information, and obtains the first ciphertext information based on the multiple first actual ciphertext information; wherein, each response information is the response information corresponding to each bit in the option response information.
[0052] In this embodiment, plaintext m∈Z q Based on the second-choice uniform distribution matrix R∈{0,1} N×m Calculate the first actual encrypted information wherein, Flatten is a calculation rule (fifth calculation formula described later), BitDecomp is an operation rule (second calculation formula described later). For example, the first ciphertext information includes C1 and C2. Generally, the plaintext is a string. N is a unit matrix, which is an N*N matrix, only the diagonal line is 1, and the rest is 0.
[0053] Specifically, the GSW homomorphic encryption of the technical solution can only encrypt one bit each time, and the RAO_GSW homomorphic scheme that can encrypt multiple bits at a time can be used, so that the designer can use one public key and private key. The GSW homomorphic encryption can also use the second generation RLWE (Ring-based LWE) to replace it.
[0054] Figure 5 The method for filling out a questionnaire based on a blockchain and homomorphic encryption of the third embodiment of the application is shown, and the second encryption processing includes elliptic curve ECC encryption processing. The step of the questionnaire filling module performing second encryption processing on the text reply information to obtain second ciphertext information includes:
[0055] In step S501, the questionnaire filling module determines the coordinate value information corresponding to a base point based on a preset elliptic curve expression;
[0056] Specifically, the preset elliptic curve expression Ep(a, b) can be y 2 =x 3 +ax+b, the base point G can be a point on the elliptic curve corresponding to the elliptic curve expression, and the coordinate value information of the base point G is (x, y);
[0057] In step S502, the questionnaire filling module generates a second public key based on the coordinate value information and a second private key; specifically, the second public key pk = the second private key sk*base point G.
[0058] In step S503, the questionnaire filling module generates a random number based on the text reply information and the elliptic curve expression; specifically, the text reply information m is encoded into the elliptic curve expression Ep(a, b) to generate a random number r.
[0059] In step S504, the questionnaire filling module performs elliptic curve ECC encryption processing on each piece of reply information in the text reply information based on the random number and the second public key to obtain multiple second actual ciphertext information, wherein the multiple second actual ciphertext information constitutes the second ciphertext information.
[0060] Specifically, the second actual ciphertext information includes C3 and C4, where C3 = m + r * pk, and C4 = r * G. The above embodiment realizes elliptic curve ECC encryption processing on the text reply information through steps S501-S504, and has the characteristics of small calculation amount and high security strength.
[0061] In the embodiment, the step in which the blockchain smart contract module sends the ciphertext information to the questionnaire providing module based on the preset smart contract rule includes: the blockchain smart contract module performs homomorphic addition operation on the first ciphertext information to obtain first to-be-sent ciphertext information, the blockchain smart contract module performs random shuffling processing on the plurality of second actual ciphertext information in the second ciphertext information to obtain second to-be-sent ciphertext information, and the blockchain smart contract module sends the first to-be-sent ciphertext information and the second to-be-sent ciphertext information to the questionnaire providing module.
[0062] The homomorphic addition operation includes a first calculation formula, which is as follows:
[0063]
[0064] Specifically, in the first encryption processing process, the second calculation formula is Let wherein, Each of the k numbers is an integer taking one of 0 to q-1.
[0065] The third calculation formula is wherein a i,j The jth bit of the binary expansion of a i
[0066] BitDecomp is the inverse operation of BitComp, and for
[0067] The fourth calculation formula is
[0068] The fifth calculation formula is After the Flatten operation, a {0, 1} sequence {0, 1} of length N is obtained N (the first to-be-sent ciphertext information). The second calculation formula, the third calculation formula, the fourth calculation formula, and the fifth calculation formula are operation rules in the first encryption processing.
[0069] Specifically, the first encrypted information is subjected to homomorphic addition, and the resulting first encrypted information to be sent can be processed on an untrusted third-party platform without compromising privacy. Furthermore, the second encrypted information is randomly scrambled. Because this second encrypted information is encrypted before scrambling, the designers cannot distinguish which respondent's opinion it represents, thus protecting the respondent's privacy and image.
[0070] In this embodiment, the user information processing system also has a statistical announcement module;
[0071] After the blockchain smart contract module sends the first and second encrypted messages to the questionnaire providing module, the process further includes: the questionnaire providing module using a first private key to decrypt the first and second encrypted messages to be sent, respectively, to obtain overall statistical information and actual text response information related to the option response information; wherein, the order of the actual text response information is different from the order of the text response information; the questionnaire providing module sends the overall statistical information and the actual text response information to the statistical announcement module.
[0072] Specifically, when the questionnaire module decrypts the first piece of encrypted information to be sent, the decryption process is as follows: The first l coordinates are 1, 2, ..., 2 l-1 ,v i =2 i ∈(q / 4,q / 2],C i For the i-th row of C, calculate Obtain overall statistical information
[0073] When the questionnaire delivery module decrypts the second encrypted message to be sent, the decryption process is as follows: After receiving the second encrypted message (C3, C4), the questionnaire delivery module calculates C3 - sk * C4 to obtain the actual text response information. The statistics and announcement module can display overall statistical information and the actual text response information.
[0074] Before the step of obtaining the reply information of the user on the electronic questionnaire by the questionnaire filling module, the method further comprises: the questionnaire filling module receives a questionnaire request instruction of the user; wherein the questionnaire request instruction carries user registration information; the questionnaire filling module sends the questionnaire request instruction to the questionnaire providing module; the questionnaire providing module detects whether the user has not replied to the questionnaire according to the user registration information; when the questionnaire providing module detects that the user has not replied to the questionnaire, the questionnaire providing module sends the electronic questionnaire to the questionnaire filling module. Specifically, before the user replies, the user needs to input the questionnaire request instruction (the questionnaire request instruction can carry the user registration information of the user, such as the identity card information), so that the questionnaire providing module can detect whether the user has not replied to the questionnaire by verifying the user registration information, and when the questionnaire providing module detects that the user has not replied to the questionnaire, the questionnaire providing module sends the electronic questionnaire to the questionnaire filling module.
[0075] In the embodiment, the questionnaire request instruction further carries a questionnaire type, and before the step of sending the electronic questionnaire to the questionnaire filling module by the questionnaire providing module, the method further comprises: the questionnaire providing module obtains a corresponding electronic questionnaire and a reply time limit according to the questionnaire type; and the questionnaire providing module displays the electronic questionnaire and the reply time limit in the same display interface. That is, the questionnaire providing module of the application can provide different types of electronic questionnaires for the user, and different types of electronic questionnaires correspond to different reply time limits. By displaying in the same display interface, the user who is answering can be prompted to avoid timeout.
[0076] Figure 6 An electronic device provided by a fourth embodiment of the application is shown, which can be used to implement the blockchain and homomorphic encryption based questionnaire method in any of the preceding embodiments. The electronic device comprises:
[0077] The memory 601, the processor 602, the bus 603, and the computer program stored in the memory 601 and executable on the processor 602 are connected through the bus 603. When the processor 602 executes the computer program, the blockchain and homomorphic encryption based questionnaire method in the preceding embodiments is implemented. The number of processors can be one or more.
[0078] The memory 601 can be a high-speed random access memory (RAM, Random Access Memory) memory, or a non-volatile memory such as a disk memory. The memory 601 is used to store executable program codes, and the processor 602 is coupled with the memory 601.
[0079] Further, the embodiments of the present application further provide a computer readable storage medium, which can be arranged in the electronic device in the above embodiments, and the computer readable storage medium can be a memory.
[0080] The computer readable storage medium stores a computer program, and the program is executed by the processor to implement the blockchain and homomorphic encryption based questionnaire method in the above embodiments. Further, the computer readable storage medium can be a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk or an optical disk, and various media capable of storing program codes.
[0081] In the several embodiments provided in the present application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are merely schematic, for example, the division of the modules is only a logical function division, and actual implementation can have another division manner, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed modules can be indirect coupling or communication connection through some interfaces, devices or modules, and can be electrical, mechanical or other forms.
[0082] The modules illustrated as separate components can or can not be physically separate, and the components illustrated as modules can or can not be physical modules, that is, can be located in one place, or can be distributed to a plurality of network modules. Part or all of the modules can be selected according to actual needs to achieve the purpose of the present embodiment.
[0083] In addition, the functional modules in each of the embodiments of the present application can be integrated in one processing module, or each module can exist physically independently, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of a software functional module.
[0084] The integrated module, if implemented in the form of a software function module and sold or used as an independent product, can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a readable storage medium, including a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned readable storage medium includes various media that can store program codes, such as U disk, mobile hard disk, ROM, RAM, magnetic disk, or optical disk, etc.
[0085] It should be noted that, for the foregoing method embodiments, in order to facilitate description, they are all expressed as a combination of a series of actions, but those skilled in the art should know that the present application is not limited by the order of the described actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily essential to the present application.
[0086] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0087] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation using the content of the specification and drawings of the present application, or directly or indirectly applied to other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A survey method based on blockchain and homomorphic encryption, characterized in that, The method is applied to a user information processing system with a questionnaire filling module, a blockchain smart contract module and a questionnaire providing module, and comprises the following steps: The questionnaire filling module acquires reply information of a user on the electronic questionnaire; wherein the reply information comprises option reply information and text reply information; The questionnaire filling module performs first encryption processing on the option reply information to obtain first ciphertext information; wherein the first encryption processing comprises GSW homomorphic encryption processing; The questionnaire filling module performs elliptic curve ECC encryption processing on each piece of reply information in the text reply information according to a random number and a second public key to obtain a plurality of second actual ciphertext information; wherein the plurality of second actual ciphertext information constitutes second ciphertext information, and the first ciphertext information and the second ciphertext information constitute ciphertext information; The questionnaire filling module sends the ciphertext information to the blockchain smart contract module; The blockchain smart contract module performs homomorphic addition operation on the first ciphertext information to obtain first to-be-sent ciphertext information; The blockchain smart contract module performs random shuffling processing on the plurality of second actual ciphertext information in the second ciphertext information to obtain second to-be-sent ciphertext information; The blockchain smart contract module sends the first to-be-sent ciphertext information and the second to-be-sent ciphertext information to the questionnaire providing module.
2. The questionnaire method based on blockchain and homomorphic encryption according to claim 1, wherein the step of performing first encryption processing on the option reply information by the questionnaire filling module to obtain first ciphertext information comprises: The questionnaire filling module generates a selection parameter set according to the option reply information; The questionnaire filling module generates a first private key according to the selection parameter set; The questionnaire filling module generates a first public key according to a preset first selection uniform distribution matrix; The questionnaire filling module performs GSW homomorphic encryption processing on each piece of reply information in the option reply information according to the first public key and a preset second selection uniform distribution matrix to obtain a plurality of first actual ciphertext information, and obtains the first ciphertext information according to the plurality of first actual ciphertext information; wherein each piece of reply information is the reply information corresponding to each bit of the option reply information.
3. The questionnaire method based on blockchain and homomorphic encryption according to claim 2, wherein before the step of performing elliptic curve ECC encryption processing on each piece of reply information in the text reply information according to a random number and a second public key by the questionnaire filling module, the method further comprises: The questionnaire filling module determines coordinate value information corresponding to a base point based on a preset elliptic curve expression; The questionnaire filling module generates a second public key according to the coordinate value information and a second private key; The questionnaire filling module generates a random number according to the text reply information and the elliptic curve expression. The user information processing system further has a statistical announcement module; After the step of sending the first to-be-sent ciphertext information and the second to-be-sent ciphertext information to the questionnaire providing module by the blockchain smart contract module, the method further comprises: 4.The survey method based on blockchain and homomorphic encryption of claim 3, wherein, The questionnaire providing module decrypts the first to-be-sent ciphertext information by using the first private key and decrypts the second to-be-sent ciphertext information by using the second private key to obtain overall statistical information related to the option reply information and actual text reply information; wherein, the actual text reply information is sorted differently from the text reply information; The questionnaire providing module sends the overall statistical information and the actual text reply information to the statistical announcement module.
5. The blockchain and homomorphic encryption based survey method of any one of claims 1 to 4, wherein, Before the step of obtaining the reply information of the user on the electronic questionnaire by the questionnaire filling module, the method further comprises: The questionnaire filling module receives a questionnaire request instruction of the user; wherein, the questionnaire request instruction carries user registration information; The questionnaire filling module sends the questionnaire request instruction to the questionnaire providing module; The questionnaire providing module detects whether the user has not replied to the questionnaire according to the user registration information; When the questionnaire providing module detects that the user has not replied to the questionnaire, the questionnaire providing module sends an electronic questionnaire to the questionnaire filling module. 6.The blockchain and homomorphic encryption based survey method of claim 5, wherein, The questionnaire request instruction further carries a questionnaire type; Before the step of sending the electronic questionnaire to the questionnaire filling module by the questionnaire providing module, the method further comprises: The questionnaire providing module obtains a corresponding electronic questionnaire and a reply time limit according to the questionnaire type; The questionnaire providing module displays the electronic questionnaire and the reply time limit in the same display interface.
7. An electronic device, comprising: The computer device comprises a memory, a processor and a bus; The bus is used to realize the connection and communication between the memory and the processor; The processor is used to execute a computer program stored in the memory; The processor executes the computer program to realize the steps in the method of any one of claims 1 to 6.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps in the method of any one of claims 1 to 6.
Citation Information
Patent Citations
Data transmission method and device based on alliance chain
CN109587132A
Electronic voting system
CN110400410A
K-out-of-m anonymous voting method based on alliance chain
CN112995136A