CN110210908B - Investigation method and device by means of block chain - Google Patents

Investigation method and device by means of block chain Download PDF

Info

Publication number
CN110210908B
CN110210908B CN201910499716.3A CN201910499716A CN110210908B CN 110210908 B CN110210908 B CN 110210908B CN 201910499716 A CN201910499716 A CN 201910499716A CN 110210908 B CN110210908 B CN 110210908B
Authority
CN
China
Prior art keywords
client
investigation
questionnaire
research
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910499716.3A
Other languages
Chinese (zh)
Other versions
CN110210908A (en
Inventor
杨慧
吉建勋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ruice Technology Co Ltd
Original Assignee
Beijing Ruice Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ruice Technology Co Ltd filed Critical Beijing Ruice Technology Co Ltd
Priority to CN201910499716.3A priority Critical patent/CN110210908B/en
Publication of CN110210908A publication Critical patent/CN110210908A/en
Application granted granted Critical
Publication of CN110210908B publication Critical patent/CN110210908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0203Market surveys; Market polls

Abstract

The application discloses a research method and equipment by means of a block chain, wherein the method comprises the following steps: the investigation server receives an investigation task uplink request sent by a first client; triggering a task intelligent contract, wherein the task intelligent contract checks the balance corresponding to the first client address; receiving a research task query request sent by a third client; distributing the research task to the third client; receiving a questionnaire uplink request sent by the third client; triggering a questionnaire intelligent contract, wherein the questionnaire intelligent contract checks balance corresponding to the third client address; receiving a questionnaire query request sent by a second client; distributing a questionnaire to the second client; receiving a chain uploading request of the investigation and examination paper sent by the second client; triggering an intelligent contract for answering a paper; and triggering the transaction intelligent contract when the investigation answer sheets reach the preset number. The method of the application guarantees the benefits of the investigator and the investigator.

Description

Investigation method and device by means of block chain
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a method and an apparatus for investigating by means of blockchains.
Background
At present, a block chain technology is based on a decentralized peer-to-peer network, and open source software is used for combining a cryptography principle, time sequence data and a consensus mechanism to ensure the consistency and the persistence of each node in a distributed database, so that information can be immediately verified and traceable, but is difficult to tamper and cannot be shielded, and a set of private, efficient and safe shared value system is created.
Research is a common market activity that reflects information such as the customer's evaluation of a product or service. However, the current research is conducted on the internet, and the investigator gives the investigator some reward for answering the questionnaire, and the investigator answers the questionnaire. In this process, there are the following problems: 1, after the investigator worries to answer the questionnaire, the inquired party can not obtain the reward; 2, the investigator worries that the investigator does not answer the questionnaire after paying first; 3, the questionnaires designed by the investigators themselves are redundant and complex.
That is, how to perform research on the chain based on the traceability characteristic of the blockchain, and making the research process public and transparent becomes a problem to be solved urgently.
The above is only for the purpose of assisting understanding of the technical solutions of the present application, and does not represent an admission that the above is prior art.
Disclosure of Invention
In order to solve the problems, the application provides a research method and a device thereof by means of a block chain, wherein the research process can be made public and transparent, and the benefits of a research investigator and a researched person are guaranteed.
The present application provides in a first aspect a method of investigation by means of a blockchain, the method comprising:
the method comprises the steps that a research server receives a research task uplink request sent by a first client, wherein the research task uplink request comprises a research task price and research task time;
triggering a task intelligent contract, verifying the balance corresponding to the first client address by the task intelligent contract, and freezing the investigation task price after the balance is verified;
the investigation server receives a investigation task query request sent by a third client;
the investigation server distributes an investigation task to the third client side so that the third client side can make an investigation questionnaire according to the investigation task;
the research server receives a research questionnaire uplink request sent by the third client, wherein the research questionnaire uplink request comprises a research questionnaire price and a research questionnaire time, and the research questionnaire price comprises a research questionnaire unit price and a research questionnaire quantity;
triggering a questionnaire intelligent contract, verifying the balance corresponding to the third client address by the questionnaire intelligent contract, and freezing the price of the questionnaire after the balance passes the verification;
the investigation server receives an investigation questionnaire query request sent by a second client;
the investigation server distributes the investigation questionnaire to the second client so that the second client replies to the investigation questionnaire;
the investigation server receives a survey answer sheet chaining request sent by the second client, wherein the survey answer sheet chaining request comprises a survey answer sheet encrypted by the public key of the investigation server, so that the investigation server encrypts the survey answer sheet by using the public key of the first client, encrypts the survey answer sheet by using the public key of the second client and encrypts the survey answer sheet by using the third client;
triggering an answer sheet intelligent contract, executing the transfer of the unit price of the investigation questionnaire, encrypting the investigation answer sheet by the first client public key, encrypting the investigation answer sheet by the second client public key and encrypting the investigation answer sheet by the third client to execute a chain process;
and triggering a transaction intelligent contract when the investigation answer sheets reach a preset number, verifying the number of the investigation answer sheets by the transaction intelligent contract, and executing the transfer of the investigation task price after the verification is passed.
In one possible embodiment, the method further comprises: the investigation server receives an investigation task query request sent by the first client;
and the investigation server sends investigation task response to the first client, wherein the investigation task response comprises the investigation answer sheet encrypted by the first client public key, so that the first client decrypts the investigation answer sheet encrypted by the first client public key by using a private key.
In one possible embodiment, the research mission price includes the research questionnaire price and a service fee of the third client;
the questionnaire price includes the questionnaire unit price, the number of questionnaires, and the service fee of the research server.
In one possible embodiment, the method further comprises: the investigation server receives a investigation answer sheet purchase request of a fourth client, wherein the investigation answer sheet purchase request comprises investigation answer sheet purchase price, and the investigation answer sheet purchase price comprises investigation answer sheet unit price and investigation answer sheet quantity;
triggering a verification intelligent contract, verifying the balance corresponding to the fourth client address by the answer sheet intelligent contract, and freezing the investigation answer sheet purchase price after the verification is passed;
the investigation server sends a transaction request to the second client so that the second client sends a response of transaction confirmation to the investigation server;
the investigation server decrypts the investigation answer sheet encrypted by the investigation server public key by using a private key of the investigation server, and encrypts the investigation answer sheet by using the fourth client public key;
and triggering a transaction intelligent contract, wherein the transaction intelligent contract executes the transfer of the unit price of the investigation answer sheet and executes the chain process of the investigation answer sheet encrypted by the public key of the fourth client.
In a possible implementation manner, the encrypting the questionnaire by the second client public key specifically includes: and the public key of the second client side encrypts the investigation answer sheet according to a preset proportion.
The second aspect of the present application provides a research apparatus by means of a block chain, where the apparatus is a research server, the research server is a block chain node, and the apparatus includes a receiving unit, a processing unit, and a sending unit; wherein the content of the first and second substances,
the receiving unit is used for receiving a research task uplink request sent by a first client, wherein the research task uplink request comprises a research task price and research task time;
the processing unit triggers a task intelligent contract, the task intelligent contract checks the balance corresponding to the first client address, and after the check is passed, the investigation task price is frozen;
the receiving unit is used for receiving a research task query request sent by a third client;
the sending unit is used for distributing the research tasks to the third client so that the third client can make a research questionnaire according to the research tasks;
the receiving unit is used for receiving a questionnaire uplink request sent by the third client, wherein the questionnaire uplink request comprises questionnaire price and questionnaire time, and the questionnaire price comprises questionnaire unit price and questionnaire quantity;
the processing unit triggers an intelligent questionnaire contract, the intelligent questionnaire contract checks the balance corresponding to the third client address, and after the check is passed, the price of the investigation questionnaire is frozen;
the receiving unit is used for receiving a questionnaire query request sent by a second client;
the sending unit is used for distributing the questionnaire to the second client so that the second client replies to the questionnaire;
the receiving unit is configured to receive a survey answer sheet chaining request sent by the second client, where the survey answer sheet chaining request includes a survey answer sheet encrypted by the public key of the survey server, so that the processing unit encrypts the survey answer sheet by using the first client public key, encrypts the survey answer sheet by using the second client public key, and encrypts the survey answer sheet by using the third client;
the processing unit is used for triggering an intelligent answer sheet contract, executing the transfer of unit prices of the investigation questionnaire, encrypting the investigation answer sheet by the first client public key, encrypting the investigation answer sheet by the second client public key and encrypting the investigation answer sheet by the third client to execute a chain loading process;
and the processing unit is used for triggering a transaction intelligent contract when the investigation answer sheets reach a preset number, verifying the number of the investigation answer sheets by the transaction intelligent contract, and executing the transfer of the investigation task price after the verification is passed.
In a possible implementation manner, the receiving unit receives a research task query request sent by the first client; the sending unit sends the investigation task response to the first client, where the investigation task response includes the investigation answer sheet encrypted by the first client public key, so that the first client decrypts the investigation answer sheet encrypted by the first client public key with a private key.
In one possible embodiment, the research mission price includes the research questionnaire price and a service fee of the third client;
the questionnaire price includes the questionnaire unit price, the number of questionnaires, and the service fee of the research server.
In a possible implementation manner, the receiving unit receives a questionnaire purchase request from a fourth client, where the questionnaire purchase request includes a questionnaire purchase price, and the questionnaire purchase price includes a questionnaire unit price and a questionnaire number;
the processing unit triggers a check intelligent contract, the answer sheet intelligent contract checks the balance corresponding to the fourth client address, and after the check is passed, the investigation answer sheet purchase price is frozen;
the sending unit is used for sending a transaction request to the second client so that the second client sends a response of transaction confirmation to the research server;
the processing unit decrypts the investigation answer sheet encrypted by the public key of the investigation server by using a private key of the processing unit, and encrypts the investigation answer sheet by using the public key of the fourth client;
and the processing unit is used for triggering a transaction intelligent contract, executing the transfer of the unit price of the investigation answer sheet by the transaction intelligent contract and executing the chain process of the investigation answer sheet encrypted by the public key of the fourth client.
In a possible implementation manner, the encrypting the questionnaire by the second client public key specifically includes: and the public key of the second client side encrypts the investigation answer sheet according to a preset proportion.
The method can link the chain in the investigation process, the whole investigation process is transparent, and the benefits of the investigator and the investigated person are guaranteed; moreover, the method allows the research data to be linked up, and both the investigator and the investigator can view the research data.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application.
Fig. 1 is a schematic flow chart of an investigation method by block chains according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of another investigation method by block chains according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart illustrating a method for dealing with research and study answer sheets according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an investigation apparatus by means of a block chain according to an embodiment of the present application.
Detailed Description
In order to more clearly explain the overall concept of the present application, the following detailed description is given by way of example in conjunction with the accompanying drawings.
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the order of such use may be interchanged under appropriate circumstances such that embodiments of the invention described herein may be practiced in other orders than those illustrated or described herein.
Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The node referred to in the embodiment of the present application may be understood as an abstract machine that responds to an external specific trigger condition and performs state conversion according to a certain rule, and may be a device that can be networked according to application software, such as a mobile phone, a tablet computer, a palm computer, a personal PC, and the like.
As shown in fig. 1, a method of investigation by means of a blockchain, the method comprising steps S101-S111.
S101, the research server receives a research task uplink request sent by a first client, wherein the research task uplink request comprises a research task price and research task time.
And S102, triggering a task intelligent contract, checking the balance corresponding to the first client address by the task intelligent contract, and freezing the investigation task price after the check is passed.
And S103, the research server receives a research task query request sent by a third client.
And S104, the investigation server distributes the investigation task to the third client so that the third client can make an investigation questionnaire according to the investigation task.
And S105, the research server receives a research questionnaire uplink request sent by the third client, wherein the research questionnaire uplink request comprises a research questionnaire price and a research questionnaire time, and the research questionnaire price comprises a research questionnaire unit price and a research questionnaire quantity.
And S106, triggering an intelligent questionnaire contract, checking the balance corresponding to the third client address by the intelligent questionnaire contract, and freezing the price of the investigation questionnaire after the check is passed.
And S107, the investigation server receives the investigation questionnaire query request sent by the second client.
And S108, the investigation server distributes the investigation questionnaire to the second client so that the second client replies to the investigation questionnaire.
And S109, the investigation server receives a survey answer sheet chaining request sent by the second client, wherein the survey answer sheet chaining request comprises the survey answer sheet encrypted by the public key of the investigation server, so that the investigation server encrypts the survey answer sheet by the public key of the first client, encrypts the survey answer sheet by the public key of the second client and encrypts the survey answer sheet by the third client.
And S110, triggering an intelligent answer contract, executing the transfer of the unit price of the investigation questionnaire, encrypting the investigation answer by the first client public key, encrypting the investigation answer by the second client public key and encrypting the investigation answer by the third client to execute the uplink process.
And S111, when the investigation answer sheets reach the preset number, triggering a transaction intelligent contract, verifying the number of the investigation answer sheets by the transaction intelligent contract, and executing the transfer of the investigation task price after the verification is passed.
In one example, the method further comprises: the investigation server receives an investigation task query request sent by the first client;
and the investigation server sends investigation task response to the first client, wherein the investigation task response comprises the investigation answer sheet encrypted by the first client public key, so that the first client decrypts the investigation answer sheet encrypted by the first client public key by using a private key.
In one example, the research mission price includes the research questionnaire price and a service fee of the third client; the questionnaire price includes the questionnaire unit price, the number of questionnaires, and the service fee of the research server.
In one example, the method further comprises: the investigation server receives a investigation answer sheet purchase request of a fourth client, wherein the investigation answer sheet purchase request comprises investigation answer sheet purchase price, and the investigation answer sheet purchase price comprises investigation answer sheet unit price and investigation answer sheet quantity;
triggering a verification intelligent contract, verifying the balance corresponding to the fourth client address by the answer sheet intelligent contract, and freezing the investigation answer sheet purchase price after the verification is passed;
the investigation server sends a transaction request to the second client so that the second client sends a response of transaction confirmation to the investigation server;
the investigation server decrypts the investigation answer sheet encrypted by the investigation server public key by using a private key of the investigation server, and encrypts the investigation answer sheet by using the fourth client public key;
and triggering a transaction intelligent contract, wherein the transaction intelligent contract executes the transfer of the unit price of the investigation answer sheet and executes the chain process of the investigation answer sheet encrypted by the public key of the fourth client.
In one example, the encrypting the questionnaire by the second client public key specifically includes: and the public key of the second client side encrypts the investigation answer sheet according to a preset proportion.
It should be noted that, a user corresponding to the first client will score the questionnaire replied by the second client; the scoring content includes a survey content score. For the user corresponding to the second client, a credit score is associated with the score of the questionnaire; when the credit score of the user corresponding to the second client is too low, the second client locks the authority, and the user corresponding to the second client is not allowed to answer the questionnaire. And the user corresponding to the first client also scores the questionnaire formulated by the third client, the user credit value corresponding to the third client is related to the rating of the questionnaire, when the user credit score corresponding to the third client is too low, the authority is locked by the third client, and the user corresponding to the third client is not allowed to formulate the questionnaire in the related field.
In addition, the third client is a research engineer, who has a good field; the second client is the investigator, and also has areas of excellence or hobbies. For example: the first client is a researcher in the mobile phone industry, and a research task of the first client can be seen only by a user corresponding to a third client with a mobile phone identifier or an electronic product identifier, so that a research questionnaire is made according to the research task; and only the user corresponding to the second client with the mobile phone identification or the electronic product identification can reply the questionnaire.
The method in the application enables a researcher, a researcher and a professional researcher to participate in the three, not only solves the problem of mutual trust between the researcher and the researcher in the research process, but also solves the problem that the researcher cannot make professional questionnaires.
The investigation method of the present application is described below with reference to fig. 2 as an example, and includes steps S201 to S216.
In the application, a first client is a researcher, a second client is a researcher, a third client is a professional investigator, a professional investigation questionnaire is made, and the investigation task of the researcher can be decomposed into the investigation questionnaire; the research server is also a blockchain node.
S201, the first client sends a research mission uplink request to the research server, where the research mission uplink request includes a research mission price and a research mission time.
The task price is the cost set by the investigator for the investigation task, and the task time is the effective time set by the investigation task.
S202, triggering a task intelligent contract, checking the balance corresponding to the first client address by the task intelligent contract, freezing the price of the investigation task after the check is passed, and chaining the investigation task.
When the balance transaction is failed, the subsequent process cannot be executed; after the verification is passed, the set price of the investigation task is frozen, so that the subsequent transaction is ensured to be carried out smoothly.
S203, the research server sends a research task uplink response to the first client.
And S204, the third client sends a research task query request to the research server to query whether the research task is suitable for the third client.
And S205, the research server distributes the research task to the third client.
In this case, the third client is familiar with, liked by, or good at the domain related to the research mission, and the research server stores the domain identification of the respective client good at.
And S206, the third client sends a questionnaire uplink request to the research server, wherein the questionnaire uplink request comprises a questionnaire price and a questionnaire time, and the questionnaire price comprises a questionnaire unit price and a questionnaire quantity.
The third client is a special investigator for making questionnaires, and the investigator collects the cost of the first client and sets the unit price and the quantity of the questionnaires.
At this time, the questionnaire time is within the predetermined time range of the investigation task. For example: the survey task setting time is 10 days from the day, and the survey questionnaire response time must be within the range of the survey task setting time. And once the third client applies for the research task, the block chain node sends the research task to the third client, and then the research task is automatically marked to be picked, namely the research task is in a state that the research task can not be picked any more.
And S207, triggering an intelligent questionnaire contract, checking the balance corresponding to the address of the third client by the intelligent questionnaire contract, freezing the price of the investigation questionnaire after the check is passed, and linking the investigation questionnaire.
At this time, when the verification fails, the next process cannot be performed. The research task set price comprises the research questionnaire price and the service fee of the third client. The price of the questionnaire includes the unit price of the questionnaire, the number of questionnaires, and the service fee of the research server.
And S208, the second client sends a questionnaire query request to the research server.
And S209, distributing the questionnaire to the second client by the investigation server.
The second client is a surveyor and is also a fan of the domain related to the survey questionnaire and the survey task, and the survey server stores the domain identification of the preference of each client.
And S210, the second client sends a chain linking request of the research and study paper to the research server, wherein the chain linking request of the research and study paper comprises the research and study paper encrypted by the public key of the research server.
And S211, the investigation server encrypts the investigation answer sheet by using the first client public key, the second client public key and the third client public key respectively.
At this time, the public key of the second client encrypts the questionnaire data, which may be partial key field encryption or encryption according to a preset ratio (e.g., encrypt two thirds of the service data). The second client can also trade the research and study answer sheet data, so that a purchaser of the research and study answer sheet data cannot check the complete data without purchasing the data.
The preset ratio may be 0, that is, the second client does not encrypt the questionnaire answer sheet data.
And S212, triggering an intelligent answer sheet contract, executing the transfer of the unit price of the investigation paper by the intelligent answer sheet contract, and chaining the investigation paper encrypted by the first client public key, the second client public key and the third client public key respectively.
At the moment, one investigation answer sheet can be used, and an answer sheet intelligent contract is triggered to transfer the unit price of the investigation answer sheet for one time; or a plurality of investigation examination papers are used to trigger an intelligent contract of the examination papers, and the transfer of the unit price of a plurality of investigation examination papers is carried out at one time; that is, the number of questionnaires is equal to the number of transfers per unit price of the questionnaire. The transfer refers to transferring the unit price of the questionnaire corresponding to the address of the third client (the investigator) to the address of the second client (the investigator).
It should be noted that the service charge of the research server can also be a research answer sheet, and the transfer is performed once after the transaction intelligent contract is triggered; or transferring accounts for many times after a plurality of investigation and answer sheets trigger a transaction intelligent contract; the number of the investigation answer sheets is equal to the number of the transfer times of the service fee of the investigation server.
And S213, when the number of the investigation answer sheets reaches a preset number, triggering a transaction intelligent contract, verifying the number of the investigation answer sheets by the transaction intelligent contract, and executing the transfer of the investigation task price after the verification is passed.
And when the verification is failed, the subsequent process is not carried out. The predetermined number may be the number of questionnaires or may be other numbers that are set.
In the present application, only one second client (investigator) is taken as an example, but the present invention is not limited thereto. In addition, when the second client answers to the questionnaire, some illegal answer operations, such as: multiple choice questions, all choices being the same, or response speed being too fast, etc. When receiving a plurality of investigation answer sheets of the same investigation task, the investigation server automatically performs related data analysis, such as: analyzing the proportion of the option A and the proportion of the option B; and storing the analyzed data on the block chain in a report form.
S214, the first client sends the research task query to the research server.
S215, the investigation server sends the investigation task response to the first client, wherein the investigation task response comprises the investigation answer sheet encrypted by the public key of the first client.
S216, the first client decrypts the investigation answer sheet encrypted by the first client public key by using the private key of the first client.
The following description will be made by taking examples in which the investigator, the subject to be investigated, and the investigator must have the same or similar fields. In the above steps, the research task of S201 has a mobile phone identifier, indicating the target industry of the researcher; in S205, the research task is provided with a mobile phone identifier, which indicates that the research engineer is good at the field of making a research questionnaire; and S209, carrying the mobile phone identification in the questionnaire to indicate the hobbies and interests of the investigated person.
The following describes the transaction of the questionnaire in the present application, taking fig. 3 as an example. In the application, only the second client side has the re-trading authority of the investigation answer sheet, and the investigator have no authority to carry out re-trading on the investigation answer sheet.
The transaction flow of the questionnaire includes S301-S310.
And S301, the fourth client sends a survey answer sheet purchase request to the survey server, wherein the survey answer sheet comprises a survey answer sheet purchase price, and the survey answer sheet purchase price comprises a survey answer sheet purchase unit price and a survey answer sheet quantity.
At this time, the user corresponding to the fourth client may check the search answer sheet on the blockchain and then send a purchase request. The questionnaire purchase price also includes a transaction service fee for the survey server.
The survey answer sheet data in the application is divided into two attributes, namely, a correlation attribute and a non-correlation attribute. For example: the investigation answer sheet data are user comment contents, belong to non-associated attributes, and the comment contents of each user can be stored in the block chain; when one merchant needs to purchase the evaluation of a certain commodity, the merchant can purchase the evaluation of the commodity for a plurality of users, the operation is carried out from the block chain, the disclosure is transparent, and the benefits of the merchant and the users can be guaranteed at the same time. For example: the number of the user comment contents is the correlation attribute, the business data format of a commodity comprises the comment number, and the comment number of the commodity can be automatically superposed as long as a user comments on the commodity; another example is: the transaction frequency of the investigation answer sheet data in the application is a correlation attribute, and the attribute value is automatically increased by 1 every time the investigation answer sheet data is transacted.
And S302, triggering a verification intelligent contract, verifying the balance corresponding to the address of the fourth client by the verification intelligent contract, freezing the purchase price of the investigation answer sheet after the verification is passed, and linking the investigation answer sheet purchase request.
Checking the balance corresponding to the fourth client address, and judging whether the balance is enough to pay the fee; and when the verification fails, namely the balance corresponding to the address of the fourth client is not enough to pay the expense of the purchased research and examination paper, the subsequent steps cannot be carried out. And after the verification is passed, the purchase price of the investigation answer sheet needs to be frozen, so that the subsequent transaction of the investigation answer sheet is ensured to be successfully completed.
The link procedure of the investigation answer sheet data is not described in this application, for example: under the consensus mechanism of workload certification PoW, after packaging and verification, the nodes broadcast to all nodes for data synchronization.
S303, the research server sends a transaction request to the second client.
S304, the second client sends a transaction response to the research server, and the transaction response is to confirm the transaction request.
S305, the investigation server decrypts the investigation answer sheet encrypted by the public key of the investigation server by using the private key of the investigation server, and encrypts the investigation answer sheet by using the public key of the fourth client.
And S306, triggering a transaction intelligent contract, executing the transfer of the unit price of the investigation answer sheet by the transaction intelligent contract, and executing the chain process on the investigation data encrypted by the public key of the fourth client.
At this time, one investigation answer sheet can trigger one transaction intelligent contract to transfer the unit price of one investigation answer sheet purchase; or a plurality of investigation and examination papers trigger a transaction intelligent contract to transfer the purchase unit price of the investigation and examination papers for a plurality of times; that is, the number of questionnaires is the same as the number of transfers of the questionnaire purchase unit price.
The buyer of the investigation answer sheet data needs to possess digital currency to buy the investigation answer sheet data on the block chain; the digital money owned by the purchaser of the questionnaire data may be digital money obtained by selling the data of another type of questionnaire data as the owner of the data of another type of questionnaire. This is not explained in detail in the present application.
It should be noted that the service charge of the research server can also be a research answer sheet, and the transfer is performed once after the transaction intelligent contract is triggered; or transferring accounts for many times after a plurality of investigation and answer sheets trigger a transaction intelligent contract; the number of the investigation answer sheets is equal to the number of the transfer times of the service fee of the investigation server.
And S307, the investigation server sends the investigation answer sheet purchase response to the fourth client.
And S308, the fourth client sends a research answer sheet query request to the research server.
S309, the investigation server sends the investigation answer sheet query response to the fourth client, and the investigation answer sheet query response comprises the investigation answer sheet encrypted by the public key of the fourth client.
And S310, the fourth client decrypts the investigation answer sheet encrypted by the public key of the fourth client by using the private key of the fourth client to obtain the investigation answer sheet.
The method can link the chain in the investigation process, the whole investigation process is transparent, and the benefits of the investigator and the investigated person are guaranteed; moreover, the method allows the research data to be linked up, and both the investigator and the investigator can view the research data. In addition, the investigator who answers the questionnaire can also conduct a transaction with the investigation answer; the investigator and the investigator only have the viewing right for the investigation answer sheet, and do not have the right to trade the investigation answer sheet again.
As shown in fig. 4, the apparatus for research by means of a block chain is a research server, the research server is a block chain node, and the apparatus includes a receiving unit, a processing unit, and a transmitting unit.
The receiving unit is used for receiving a research task uplink request sent by a first client, wherein the research task uplink request comprises a research task price and research task time;
the processing unit triggers a task intelligent contract, the task intelligent contract checks the balance corresponding to the first client address, and after the check is passed, the investigation task price is frozen;
the receiving unit is used for receiving a research task query request sent by a third client;
the sending unit is used for distributing the research tasks to the third client so that the third client can make a research questionnaire according to the research tasks;
the receiving unit is used for receiving a questionnaire uplink request sent by the third client, wherein the questionnaire uplink request comprises questionnaire price and questionnaire time, and the questionnaire price comprises questionnaire unit price and questionnaire quantity;
the processing unit triggers an intelligent questionnaire contract, the intelligent questionnaire contract checks the balance corresponding to the third client address, and after the check is passed, the price of the investigation questionnaire is frozen;
the receiving unit is used for receiving a questionnaire query request sent by a second client;
the sending unit is used for distributing the questionnaire to the second client so that the second client replies to the questionnaire;
the receiving unit is configured to receive a survey answer sheet chaining request sent by the second client, where the survey answer sheet chaining request includes a survey answer sheet encrypted by the public key of the survey server, so that the processing unit encrypts the survey answer sheet by using the first client public key, encrypts the survey answer sheet by using the second client public key, and encrypts the survey answer sheet by using the third client;
the processing unit is used for triggering an intelligent answer sheet contract, executing the transfer of unit prices of the investigation questionnaire, encrypting the investigation answer sheet by the first client public key, encrypting the investigation answer sheet by the second client public key and encrypting the investigation answer sheet by the third client to execute a chain loading process;
and the processing unit is used for triggering a transaction intelligent contract when the investigation answer sheets reach a preset number, verifying the number of the investigation answer sheets by the transaction intelligent contract, and executing the transfer of the investigation task price after the verification is passed.
In one example, the receiving unit receives a research task query request sent by the first client; the sending unit sends the investigation task response to the first client, where the investigation task response includes the investigation answer sheet encrypted by the first client public key, so that the first client decrypts the investigation answer sheet encrypted by the first client public key with a private key.
In one example, the research mission price includes the research questionnaire price and a service fee of the third client; the questionnaire price includes the questionnaire unit price, the number of questionnaires, and the service fee of the research server.
In one example, the receiving unit receives a questionnaire purchase request of a fourth client, where the questionnaire purchase request includes a questionnaire purchase price, and the questionnaire purchase price includes a questionnaire unit price and a questionnaire number;
the processing unit triggers a check intelligent contract, the answer sheet intelligent contract checks the balance corresponding to the fourth client address, and after the check is passed, the investigation answer sheet purchase price is frozen;
the sending unit is used for sending a transaction request to the second client so that the second client sends a response of transaction confirmation to the research server;
the processing unit decrypts the investigation answer sheet encrypted by the public key of the investigation server by using a private key of the processing unit, and encrypts the investigation answer sheet by using the public key of the fourth client;
and the processing unit is used for triggering a transaction intelligent contract, executing the transfer of the unit price of the investigation answer sheet by the transaction intelligent contract and executing the chain process of the investigation answer sheet encrypted by the public key of the fourth client.
In one example, the encrypting the questionnaire by the second client public key specifically includes: and the public key of the second client side encrypts the investigation answer sheet according to a preset proportion.
The method can link the chain in the investigation process, the whole investigation process is transparent, and the benefits of the investigator and the investigated person are guaranteed; moreover, the method allows the research data to be linked up, and both the investigator and the investigator can view the research data. In addition, the investigator who answers the questionnaire can also conduct a transaction with the investigation answer; the investigator and the investigator only have the viewing right for the investigation answer sheet, and do not have the right to trade the investigation answer sheet again.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (6)

1. A method of investigation by block chaining, the method comprising:
the method comprises the steps that a research server receives a research task uplink request sent by a first client, wherein the research task uplink request comprises a research task price and research task time;
triggering a task intelligent contract, verifying the balance corresponding to the first client address by the task intelligent contract, and freezing the investigation task price after the balance is verified;
the investigation server receives a investigation task query request sent by a third client;
the investigation server distributes an investigation task to the third client side so that the third client side can make an investigation questionnaire according to the investigation task;
the research server receives a research questionnaire uplink request sent by the third client, wherein the research questionnaire uplink request comprises a research questionnaire price and a research questionnaire time, and the research questionnaire price comprises a research questionnaire unit price and a research questionnaire quantity;
triggering a questionnaire intelligent contract, verifying the balance corresponding to the third client address by the questionnaire intelligent contract, and freezing the price of the questionnaire after the balance passes the verification;
the investigation server receives an investigation questionnaire query request sent by a second client;
the investigation server distributes the investigation questionnaire to the second client so that the second client replies to the investigation questionnaire;
the investigation server receives a survey answer sheet chaining request sent by the second client, wherein the survey answer sheet chaining request comprises a survey answer sheet encrypted by the public key of the investigation server, so that the investigation server encrypts the survey answer sheet by using the public key of the first client, encrypts the survey answer sheet by using the public key of the second client and encrypts the survey answer sheet by using the third client;
triggering an answer sheet intelligent contract, executing the transfer of the unit price of the investigation questionnaire, encrypting the investigation answer sheet by the first client public key, encrypting the investigation answer sheet by the second client public key and encrypting the investigation answer sheet by the third client to execute a chain process;
and triggering a transaction intelligent contract when the investigation answer sheets reach a preset number, verifying the number of the investigation answer sheets by the transaction intelligent contract, and executing the transfer of the investigation task price after the verification is passed.
2. The method of claim 1, further comprising:
the investigation server receives an investigation task query request sent by the first client;
and the investigation server sends investigation task response to the first client, wherein the investigation task response comprises the investigation answer sheet encrypted by the first client public key, so that the first client decrypts the investigation answer sheet encrypted by the first client public key by using a private key.
3. The method according to claim 1, wherein the second client public key encrypts the questionnaire, specifically:
and the public key of the second client side encrypts the investigation answer sheet according to a preset proportion.
4. An investigation equipment by block chain, characterized in that the equipment is an investigation server, the investigation server is a block chain node, the equipment comprises a receiving unit, a processing unit and a transmitting unit; wherein the content of the first and second substances,
the receiving unit is used for receiving a research task uplink request sent by a first client, wherein the research task uplink request comprises a research task price and research task time;
the processing unit triggers a task intelligent contract, the task intelligent contract checks the balance corresponding to the first client address, and after the check is passed, the investigation task price is frozen;
the receiving unit is used for receiving a research task query request sent by a third client;
the sending unit is used for distributing the research tasks to the third client so that the third client can make a research questionnaire according to the research tasks;
the receiving unit is used for receiving a questionnaire uplink request sent by the third client, wherein the questionnaire uplink request comprises questionnaire price and questionnaire time, and the questionnaire price comprises questionnaire unit price and questionnaire quantity;
the processing unit triggers an intelligent questionnaire contract, the intelligent questionnaire contract checks the balance corresponding to the third client address, and after the check is passed, the price of the investigation questionnaire is frozen;
the receiving unit is used for receiving a questionnaire query request sent by a second client;
the sending unit is used for distributing the questionnaire to the second client so that the second client replies to the questionnaire;
the receiving unit is configured to receive a survey answer sheet chaining request sent by the second client, where the survey answer sheet chaining request includes a survey answer sheet encrypted by the public key of the survey server, so that the processing unit encrypts the survey answer sheet by using the first client public key, encrypts the survey answer sheet by using the second client public key, and encrypts the survey answer sheet by using the third client;
the processing unit is used for triggering an intelligent answer sheet contract, executing the transfer of unit prices of the investigation questionnaire, encrypting the investigation answer sheet by the first client public key, encrypting the investigation answer sheet by the second client public key and encrypting the investigation answer sheet by the third client to execute a chain loading process;
and the processing unit is used for triggering a transaction intelligent contract when the investigation answer sheets reach a preset number, verifying the number of the investigation answer sheets by the transaction intelligent contract, and executing the transfer of the investigation task price after the verification is passed.
5. The apparatus of claim 4,
the receiving unit is used for receiving a research task query request sent by the first client;
the sending unit sends the investigation task response to the first client, where the investigation task response includes the investigation answer sheet encrypted by the first client public key, so that the first client decrypts the investigation answer sheet encrypted by the first client public key with a private key.
6. The device according to claim 4, wherein the second client public key encrypts the questionnaire, specifically:
and the public key of the second client side encrypts the investigation answer sheet according to a preset proportion.
CN201910499716.3A 2019-06-11 2019-06-11 Investigation method and device by means of block chain Active CN110210908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910499716.3A CN110210908B (en) 2019-06-11 2019-06-11 Investigation method and device by means of block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910499716.3A CN110210908B (en) 2019-06-11 2019-06-11 Investigation method and device by means of block chain

Publications (2)

Publication Number Publication Date
CN110210908A CN110210908A (en) 2019-09-06
CN110210908B true CN110210908B (en) 2021-11-05

Family

ID=67791908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910499716.3A Active CN110210908B (en) 2019-06-11 2019-06-11 Investigation method and device by means of block chain

Country Status (1)

Country Link
CN (1) CN110210908B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9990418B1 (en) * 2017-05-19 2018-06-05 2020 Ip Llc System and method for creating an opinion and behavioral data economy
CN108710808A (en) * 2018-08-07 2018-10-26 武汉研众科技有限公司 A kind of investigation payment platform based on block chain
CN109146618A (en) * 2018-07-30 2019-01-04 杭州复杂美科技有限公司 A kind of collaborative share method and system, computer equipment and storage medium
CN109146547A (en) * 2018-07-26 2019-01-04 武汉研众科技有限公司 A kind of method of investigation and study and system based on block chain
CN109347941A (en) * 2018-10-10 2019-02-15 南京简诺特智能科技有限公司 A kind of data sharing platform and its implementation based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9990418B1 (en) * 2017-05-19 2018-06-05 2020 Ip Llc System and method for creating an opinion and behavioral data economy
CN109146547A (en) * 2018-07-26 2019-01-04 武汉研众科技有限公司 A kind of method of investigation and study and system based on block chain
CN109146618A (en) * 2018-07-30 2019-01-04 杭州复杂美科技有限公司 A kind of collaborative share method and system, computer equipment and storage medium
CN108710808A (en) * 2018-08-07 2018-10-26 武汉研众科技有限公司 A kind of investigation payment platform based on block chain
CN109347941A (en) * 2018-10-10 2019-02-15 南京简诺特智能科技有限公司 A kind of data sharing platform and its implementation based on block chain

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于区块链技术的交易及其安全性研究;王文明等;《信息网络安全》;20190510(第05期);第7-15页 *
基于区块链的智慧云制造系统安全架构;杜兰等;《信息技术与网络安全》;20181110(第11期);第38-42页 *
多区块链交易分发和事件处理的系统方案;刘雄文;《计算机科学》;20181115;第590-593页 *

Also Published As

Publication number Publication date
CN110210908A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
Xie et al. Blockchain for cloud exchange: A survey
Dhar Dwivedi et al. Blockchain and artificial intelligence for 5G‐enabled Internet of Things: Challenges, opportunities, and solutions
CN103858141B (en) Payment devices with integrated chip
CN105956923A (en) Asset transaction platform and digital certification and transaction method for assets
Schunter et al. A status report on the SEMPER framework for secure electronic commerce
US8271346B1 (en) System to format and use electronically readable identification data strings, biometric data, matrix codes and other data to link and enroll users of products and services to roles and rights and fees and prices associated with research protocols linked to said products and services
CN1233804A (en) Distributed network based electronic wallet
CN110225032B (en) Business data transaction method and equipment
CN110490640A (en) Method, apparatus and system for object distribution processor
JP4383685B2 (en) Information provision method
García-López et al. Improving the quality and quantity of functional and non‐functional requirements obtained during requirements elicitation stage for the development of e‐commerce mobile applications: an alternative reference process model
JP3622789B2 (en) General in-house personal authentication system
US20020038424A1 (en) Apparatus and method for providing security for electronic signatures
CN111126987A (en) Resource transfer information processing method and device, storage medium and electronic device
CN110223117B (en) Investigation method and device for combined block chain
CN110223118B (en) Investigation method and device realized through intelligent contract
KR102230452B1 (en) open market blockchain statistical analysis system for ship supplies
CN110210908B (en) Investigation method and device by means of block chain
CN110210240B (en) Research method and device for applying intelligent contracts
CN110213282B (en) Research method and device by means of intelligent contract
CN110232096B (en) Intelligent contract-based investigation method and equipment thereof
CN110232594B (en) Investigation method realized through block chain and equipment thereof
CN110210247B (en) Research method and device for using intelligent contract
CN110210859B (en) Investigation method and device on block chain
Munyao A Blockchain-based Drug Traceability Solution: a Case of Drug Counterfeiting in the Pharmaceutical Industry

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: No.108, 1 / F, No.9, shangdijiu street, Haidian District, Beijing 100085

Applicant after: Beijing ruice Technology Co.,Ltd.

Address before: No.108, 1 / F, No.9, shangdijiu street, Haidian District, Beijing 100085

Applicant before: BEIJING AIMORECE TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant