CN110210247A - A kind of method of investigation and study and its equipment using intelligent contract - Google Patents

A kind of method of investigation and study and its equipment using intelligent contract Download PDF

Info

Publication number
CN110210247A
CN110210247A CN201910499719.7A CN201910499719A CN110210247A CN 110210247 A CN110210247 A CN 110210247A CN 201910499719 A CN201910499719 A CN 201910499719A CN 110210247 A CN110210247 A CN 110210247A
Authority
CN
China
Prior art keywords
investigation
test paper
client
public key
questionnaire
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910499719.7A
Other languages
Chinese (zh)
Other versions
CN110210247B (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 Ai Morui Strategic Technology Co Ltd
Original Assignee
Beijing Ai Morui Strategic 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 Ai Morui Strategic Technology Co Ltd filed Critical Beijing Ai Morui Strategic Technology Co Ltd
Priority to CN201910499719.7A priority Critical patent/CN110210247B/en
Publication of CN110210247A publication Critical patent/CN110210247A/en
Application granted granted Critical
Publication of CN110210247B publication Critical patent/CN110210247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)

Abstract

This application discloses a kind of method of investigation and study and its equipment using intelligent contract, block chain node receives the investigation questionnaire cochain request that the first client is sent;Questionnaire intelligence contract is triggered, the questionnaire intelligence contract verifies the corresponding remaining sum of first client address, after verification passes through, freezes the investigation questionnaire price;The block chain node receives the investigation test paper cochain request that investigation server is sent, and the investigation test paper cochain request includes the investigation test paper of the first client public key encryption and the investigation test paper of the second client public key encryption;Triggering is traded intelligent contract, and the intelligent contract of trading executes transferring accounts for the investigation questionnaire unit price, and the investigation test paper of the investigation test paper of first client public key encryption and second client public key encryption is executed cochain process.This method can allow investigation open process transparent, guarantee the interests of investigation person and investigated person.

Description

A kind of method of investigation and study and its equipment using intelligent contract
Technical field
This application involves block chain technical field more particularly to a kind of method of investigation and study and its equipment using intelligent contract.
Background technique
Currently, block chain, Internet of Things and artificial intelligence are listed as three big technologies of future technology.Block chain technology is base In the peer-to-peer network of decentralization, Cryptography Principles, time series data and common recognition mechanism are combined with open source software, to ensure point Each node is coherent and lasting in cloth database, so that information is verified, is can be traced immediately, but be difficult to tamper with and can not shield, To create a set of privacy, shareable value system efficiently, safe.
Investigation is a kind of common market behavior, for reacting client to information such as the evaluations of product or service.However, existing Investigation carry out on the internet, investigation person gives investigated person some rewards to answer a questionnaire, investigated person reply questionnaire.This In the process, there is a following problem: 1, investigated person worries after replying questionnaire, cannot reward;2, after investigation person worries post-pay paystation, quilt Investigation person does not reply questionnaire.
That is, the characteristic that how can be traced to the source based on block chain, is investigated on chain, make investigation open process transparent As urgent problem to be solved.
Above content is only used for the technical solution that auxiliary understands the application, does not represent and recognizes that above content is existing skill Art.
Summary of the invention
To solve the above-mentioned problems, the application provides a kind of method of investigation and study and its equipment using intelligent contract, this method Investigation open process can be allowed transparent, guarantee the interests of investigation person and investigated person.
The application first aspect provides a kind of method of investigation and study using intelligent contract, the method also includes:
Block chain node receives the investigation questionnaire cochain request that the first client is sent, the investigation questionnaire cochain request packet Investigation questionnaire price and investigation questionnaire time are included, the investigation questionnaire price includes investigation questionnaire unit price and investigation questionnaire quantity;
Questionnaire intelligence contract is triggered, the questionnaire intelligence contract carries out school to the corresponding remaining sum of first client address It tests, after verification passes through, freezes the investigation questionnaire price;
The block chain node receives the investigation test paper cochain request that investigation server is sent, and the investigation test paper cochain is asked Ask the investigation test paper including the encryption of the first client public key and the investigation test paper of the second client public key encryption;Wherein, described Two clients are sent to the investigation test paper of the investigation server public key encryption of the investigation server, the investigation server With own private key to it is described investigation server public key encryption investigation test paper be decrypted, and with first client public key with Second client public key respectively encrypts investigation test paper;
Triggering is traded intelligent contract, and the intelligent contract of trading executes transferring accounts for the investigation questionnaire unit price, and will be described The investigation test paper of first client public key encryption and the investigation test paper of second client public key encryption execute cochain process.
In a kind of possible embodiment, the method also includes:
The block chain node receives the investigation test paper inquiry request that first client is sent;
The block chain node is sent to the first client investigation test paper response, and the investigation test paper response includes pre- The investigation test paper of the encryption of first client public key described in fixed number amount, in order to which the first client private key is to described the The investigation test paper of one client public key encryption is decrypted.
In a kind of possible embodiment, the investigation questionnaire price includes the investigation questionnaire unit price, the investigation The service charge of questionnaire quantity, the service charge of the investigation server and the block chain node.
In a kind of possible embodiment, the method also includes: the block chain node receives third client Test paper purchase request is investigated, it includes investigation test paper purchasing price, the investigation test paper purchase price that the investigation test paper, which buys request, Lattice include investigation test paper unit price and investigation test paper quantity;
The intelligent contract of triggering test paper, the intelligent contract of the test paper carry out school to the corresponding remaining sum of the third client address It tests, after verification passes through, freezes the investigation test paper purchasing price;
The block chain node receives the transaction request that the investigation server is sent, and the transaction request includes described the The investigation test paper of three client public keys encryption;Wherein, the investigation server receives the transaction that the third client is sent Request, the transaction request include the investigation test paper of the investigation server public key encryption, itself private of the investigation server The investigation test paper of the investigation server public key encryption is decrypted in key, and with the third client public key to the investigation Test paper is encrypted;
Intelligence contract of trading is triggered, the intelligent contract of trading executes the test paper of investigating and buys transferring accounts for unit price, and holds The investigation test paper cochain process of the row third client public key encryption.
In a kind of possible embodiment, second client public key is answered the questions in a test paper to the investigation and is encrypted, specifically: institute State the encryption that the second client public key carries out preset ratio to the investigation test paper.
The application second aspect provides a kind of investigation equipment using intelligent contract, the equipment further include receiving unit and Processing unit;Wherein,
Block chain node receives the investigation questionnaire cochain request that the first client is sent, the investigation questionnaire cochain request packet Investigation questionnaire price and investigation questionnaire time are included, the investigation questionnaire price includes investigation questionnaire unit price and investigation questionnaire quantity;
Questionnaire intelligence contract is triggered, the questionnaire intelligence contract carries out school to the corresponding remaining sum of first client address It tests, after verification passes through, freezes the investigation questionnaire price;
The block chain node receives the investigation test paper cochain request that investigation server is sent, and the investigation test paper cochain is asked Ask the investigation test paper including the encryption of the first client public key and the investigation test paper of the second client public key encryption;Wherein, described Two clients are sent to the investigation test paper of the investigation server public key encryption of the investigation server, the investigation server With own private key to it is described investigation server public key encryption investigation test paper be decrypted, and with first client public key with Second client public key respectively encrypts investigation test paper;
Triggering is traded intelligent contract, and the intelligent contract of trading executes transferring accounts for the investigation questionnaire unit price, and will be described The investigation test paper of first client public key encryption and the investigation test paper of second client public key encryption execute cochain process.
In a kind of possible embodiment, the equipment further includes transmission unit;Wherein, the receiving unit receives The investigation test paper inquiry request that first client is sent;
The transmission unit is sent to the first client investigation test paper response, and the investigation test paper response includes pre- The investigation test paper of the encryption of first client public key described in fixed number amount, in order to which the first client private key is to described the The investigation test paper of one client public key encryption is decrypted.
In a kind of possible embodiment, the investigation questionnaire price includes the investigation questionnaire unit price, the investigation The service charge of questionnaire quantity, the service charge of the investigation server and the block chain node.
In a kind of possible embodiment, the receiving unit receives the investigation test paper purchase request of third client, The investigation test paper purchase request includes investigation test paper purchasing price, and the investigation test paper purchasing price includes investigation test paper unit price With investigation test paper quantity;
The processing unit, the intelligent contract of triggering test paper, the intelligent contract of the test paper is to the third client address pair The remaining sum answered is verified, and after verification passes through, freezes the investigation test paper purchasing price;
The receiving unit receives the transaction request that the investigation server is sent, and the transaction request includes described the The investigation test paper of three client public keys encryption;Wherein, the investigation server receives the transaction that the third client is sent Request, the transaction request include the investigation test paper of the investigation server public key encryption, itself private of the investigation server The investigation test paper of the investigation server public key encryption is decrypted in key, and with the third client public key to the investigation Test paper is encrypted;
The processing unit, the intelligent contract of triggering transaction, the transaction intelligent contract execution investigation test paper are bought single Valence is transferred accounts, and executes the investigation test paper cochain process of the third client public key encryption.
In a kind of possible embodiment, second client public key is answered the questions in a test paper to the investigation and is encrypted, specifically: institute State the encryption that the second client public key carries out preset ratio to the investigation test paper.
The present processes can allow the process cochain of investigation, and the open process entirely investigated is transparent, while having ensured tune The interests of the person of grinding and investigated person;Also, this method allows investigational data cochain, and investigation person and investigated person can check the tune Grind data.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.
Fig. 1 is a kind of method of investigation and study flow diagram using intelligent contract provided by the embodiments of the present application;
Fig. 2 is the method for investigation and study flow diagram of the intelligent contract of another use provided by the embodiments of the present application;
Fig. 3 is a kind of transaction flow schematic diagram of investigation test paper provided by the embodiments of the present application;
Fig. 4 is a kind of investigation device structure schematic diagram using intelligent contract provided by the embodiments of the present application.
Specific embodiment
For the clearer general idea for illustrating the application, carry out in an illustrative manner with reference to the accompanying drawings of the specification detailed It describes in detail bright.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Similar object, without being used to describe a particular order or precedence order.It should be understood that the sequence used in this way is in appropriate feelings It can be interchanged under condition, so that the embodiment of the present invention described herein can be other than those of illustrating or describing herein Sequence implement.
In addition, term " includes " and " having " and their any deformation, it is intended that covering non-exclusive includes example Such as, the process, method, system, product or equipment for containing a series of steps or units those of are not necessarily limited to be clearly listed Step or unit, but may include being not clearly listed or intrinsic for these process, methods, product or equipment other Step or unit.
So-called node in the embodiment of the present application, it can be understood as respond extraneous certain trigger condition, and by certain rule The abstract machine for doing state conversion, can be mobile phone, tablet computer, palm PC, individual's PC computer etc. can be soft according to application Part and the equipment that can be networked.
As shown in Figure 1, a kind of method of investigation and study using intelligent contract, the method also includes step S101-S104.
S101, block chain node receive the investigation questionnaire cochain request that the first client is sent, the investigation questionnaire cochain Request includes investigation questionnaire price and investigation questionnaire time, and the investigation questionnaire price includes investigation questionnaire unit price and investigation questionnaire Quantity.
S102 triggers questionnaire intelligence contract, and the questionnaire intelligence contract is to the corresponding remaining sum of first client address It is verified, after verification passes through, freezes the investigation questionnaire price.
S103, the block chain node receive the investigation test paper cochain request that investigation server is sent, the investigation test paper Cochain request includes the investigation test paper of the first client public key encryption and the investigation test paper of the second client public key encryption;Wherein, Second client is sent to the investigation test paper of the investigation server public key encryption of the investigation server, the investigation The investigation test paper of the investigation server public key encryption is decrypted in server own private key, and with first client Public key and second client public key respectively encrypt investigation test paper.
S104, triggering are traded intelligent contract, and the intelligent contract of trading executes transferring accounts for the investigation questionnaire unit price, and will The investigation test paper of the first client public key encryption and the investigation test paper of second client public key encryption execute cochain stream Journey.
In one example, the method also includes: the block chain nodes to receive the tune that first client is sent Grind test paper inquiry request;
The block chain node is sent to the first client investigation test paper response, and the investigation test paper response includes pre- The investigation test paper of the encryption of first client public key described in fixed number amount, in order to which the first client private key is to described the The investigation test paper of one client public key encryption is decrypted.
In one example, the investigation questionnaire price includes the investigation questionnaire unit price, the investigation questionnaire quantity, institute State the service charge of investigation server and the service charge of the block chain node.
In one example, it answers the questions in a test paper purchase the method also includes: the investigation that the block chain node receives third client Request is bought, the investigation test paper purchase request includes investigation test paper purchasing price, and the investigation test paper purchasing price includes investigation Test paper unit price and investigation test paper quantity;
The intelligent contract of triggering test paper, the intelligent contract of the test paper carry out school to the corresponding remaining sum of the third client address It tests, after verification passes through, freezes the investigation test paper purchasing price;
The block chain node receives the transaction request that the investigation server is sent, and the transaction request includes described the The investigation test paper of three client public keys encryption;Wherein, the investigation server receives the transaction that the third client is sent Request, the transaction request include the investigation test paper of the investigation server public key encryption, itself private of the investigation server The investigation test paper of the investigation server public key encryption is decrypted in key, and with the third client public key to the investigation Test paper is encrypted;
Intelligence contract of trading is triggered, the intelligent contract of trading executes the test paper of investigating and buys transferring accounts for unit price, and holds The investigation test paper cochain process of the row third client public key encryption.
In one example, second client public key is answered the questions in a test paper to the investigation and is encrypted, specifically: second client Public key is held to carry out the encryption of preset ratio to the investigation test paper.
It should be noted that the investigation questionnaire that the corresponding user of the first client can reply the second client is commented Point;The scoring content includes investigation content scores.For the corresponding user of the second client, there are a credit score, the credit Divide related with the scoring of the investigation questionnaire;When the corresponding user credit point of the second client is too low, can be locked by the second client Determine permission, the corresponding user of second client is not allowed to reply investigation questionnaire.
In addition, the second client is investigated person, also there is the field in the field or hobby be good at.Such as: the first client End is the investigation person of mobile phone industry, the corresponding user's ability of the second client only identified with mobile phone logo or electronic product It can be carried out the answer of the investigation questionnaire.
Method in the application, allows investigation person and investigated person, solves investigation person and investigated person during investigation Mutual trust problem;After guaranteeing investigation person's bid, investigation test paper can be taken;After investigated person replies investigation questionnaire, energy Take price.
Below by taking Fig. 2 as an example, the method for investigation and study of the application is described in detail.This method includes S201-S213.
The first client is investigation person in the application, and the second client is investigated person, and investigation server is entire investigation Process provides service, and possesses the public key of the first client and the second client.
S201, the first client send investigation questionnaire cochain and request to give block chain node, the investigation questionnaire cochain request Including investigation questionnaire price and investigation questionnaire time, the investigation questionnaire price includes investigation questionnaire unit price and investigation questionnaire number Amount.
The investigation questionnaire time refers to the setting time of this investigation, for the answer effective time of this investigation questionnaire.
S202 triggers questionnaire intelligence contract, and the questionnaire intelligence contract is to the corresponding remaining sum of first client address It is verified, after verification passes through, freezes the investigation questionnaire price, and by the investigation questionnaire cochain.
Remaining sum transaction is obstructed out-of-date, cannot execute follow-up process;After verification passes through, by the investigation questionnaire price freeze, from And guarantees subsequent transaction and go on smoothly.
S203, block chain node send investigation questionnaire cochain and respond to the first client.
S204, block chain node send investigation questionnaire and give investigation server.
S205, investigation server distribute the investigation questionnaire to the second client.
Investigation server preserves the mark for being good at field of each client, here can be based on the field mark of investigation questionnaire Know, is distributed to the second client for possessing same area mark.
S206, the second client send investigation test paper and give investigation server, and investigation test paper is added by investigation server public key It is close.
At this point, the second client public key encrypts investigation test paper data, it can be progress Partial key field and add It is close, it is also possible to be encrypted according to preset ratio (such as: encrypting 2/3rds of the business datum).Because the second client may be used also Investigation test paper data to be traded, so that the buyer of investigation test paper data can not look into the case where not buying See the complete data.
The preset ratio can be 0, i.e. the second client does not encrypt investigation test paper data.
The investigation test paper that the investigation server public key encrypts is decrypted in S207, investigation server own private key, and Portion is encrypted respectively with the first client and the second client public key.
S208, investigation server send investigation test paper cochain and request to give block chain node, which answers the questions in a test paper in cochain request The investigation test paper of investigation test paper and the encryption of the second client public key including the encryption of the first client public key.
S209, triggering are traded intelligent contract, which executes transferring accounts for investigation questionnaire unit price, and by this first The investigation test paper of client public key encryption and the investigation test paper of the second client public key encryption execute cochain process.
At this point, the investigation questionnaire price includes the investigation questionnaire unit price, the investigation questionnaire quantity, the investigation service The service charge of device and the service charge of block chain node.
Furthermore, it is possible to be that a investigation is answered the questions in a test paper, triggers intelligent contract of trading and carry out once investigating transferring accounts for questionnaire unit price;? It can be more parts of investigation test papers, the intelligent contract of triggering transaction, the primary multiple investigation questionnaires of progress are monovalent to transfer accounts;That is, The quantity for investigating test paper is equal with the investigation quantity of transferring accounts of questionnaire unit price.It transfers accounts and refers to first client (investigation person) address pair The investigation questionnaire unit price answered is gone on the address of the second client (investigated person).
It should be noted that the service charge of investigation server and the service charge of block chain node cochain, are also possible to portion Investigation test paper, triggering are traded after intelligent contract, are transferred accounts primary;It is also possible to more parts of investigation test papers, triggering is traded after intelligent contract, It transfers accounts repeatedly;Investigate the number of transferring accounts of the quantity of test paper and the service charge of investigation server, the cochain service charge of block chain node It is equal.
S210, block chain node send investigation test paper cochain and respond to investigation server.
S211, the first client send investigation test paper inquiry request and give block chain node.
S212, block chain node send investigation test paper and respond to the first client, and investigation test paper response includes the first visitor The investigation of family end public key encryption is answered the questions in a test paper.
The investigation test paper that the first client public key encrypts is decrypted in S213, the first client own private key.
It should be noted that being only illustrated by taking second client (investigated person) as an example in the application, still To this without limiting.In addition, the second client when carrying out answer investigation questionnaire, can be cleaned or be filtered out automatically and is some illegal Operation is replied, such as: multiple choice, all options all select same, or reply excessive velocities etc..Investigation server is connecing To the same investigation task several investigation test papers when, can carry out relevant data analysis automatically, such as: analysis A option Ratio, the ratio of B option;And by the data after analysis, it is stored on block chain in the form of statements.
The person of grinding is exchanged in citing below, investigated person must have same or similar field, is illustrated.In above-mentioned steps In, the investigation questionnaire of S201 has mobile phone logo, shows the target industry of investigation person;S205, distribution, which is investigated, has hand in questionnaire Machine mark, shows the hobby of investigated person.
Below by taking Fig. 3 as an example, the investigation test paper transaction flow of the second client is illustrated, which includes S301- S315。
S301, the second client encrypt above-mentioned investigation test paper with investigation server public key.
S302, the second client send cochain and request to give block chain node.
S303, block chain node execute the cochain process of cochain request.
S304, block chain node send cochain and respond to the second client.
S305, block chain node receive the investigation test paper purchase request that third client is sent, and investigation test paper purchase is asked Ask including investigation answer the questions in a test paper purchasing price, the investigation answer the questions in a test paper purchasing price include investigation test paper purchase unit price and investigation test paper purchase number Amount.
At this point, after the corresponding user of third client can view investigation test paper on block chain, the purchase of sending Buy request;Investigation test paper purchasing price further includes investigating the service charge of the transactional services expense and block chain node of server.
Investigation test paper data in the application, are divided into two attribute, relating attribute and dereferenced attribute.Such as: investigation is answered Rolling up data is user comment content, belongs to dereferenced attribute, the comment content of every user may be stored on block chain;When When one businessman needs to buy the evaluation of certain part commodity, which can buy the evaluation of the commodity to multiple users, from block It is operated on chain, it is open and clear, the interests of businessman and user can be ensured simultaneously.Such as: the quantity of user comment content, just It is relating attribute, includes number of reviews in the business datum format of a commodity, it, should as long as there is user to comment on the commodity The number of reviews of commodity can be superimposed automatically;It is relating attribute another example is: investigating the transaction count of test paper data in the application, it should The every transaction of investigation test paper data is primary, which increases by 1 automatically.
S306, the intelligent contract of triggering test paper, the test paper intelligence contract verify the remaining sum of third client, and verification is logical Later, freeze the corresponding investigation test paper purchasing price of the third client address.
The corresponding remaining sum of third client address is verified, judges whether it there are enough remaining sum payment expenses;When It is obstructed out-of-date to verify, i.e., third client address it is corresponding Sorry, your ticket has not enough value with pay its purchase investigation answer the questions in a test paper expense, Bu Nengjin Row subsequent step.Also, after verification passes through, to freeze investigation test paper purchasing price, to guarantee that subsequent investigation test paper is handed over Easy smoothly completes.
Investigation test paper data on chain process, the application without associated description, such as: in the common recognition of proof of work PoW Under mechanism, after being packaged and being verified, it is synchronous that node broadcasts to all nodes carry out data.
S307, block chain node send investigation test paper purchase and respond to third client, investigation test paper purchase response bag Include the investigation test paper of investigation server public key encryption.
S308, third client send transaction request and give investigation server, which includes investigation server public key The investigation of encryption is answered the questions in a test paper.
At this point, the investigation test paper that the investigation server public key encrypts is decrypted in investigation server own private key, and Investigation test paper is encrypted with third client public key.
S309, investigation server send transaction request and give block chain node, which includes third client public key The investigation of encryption is answered the questions in a test paper.
S310, triggering are traded intelligent contract, execute transferring accounts for investigation test paper purchase unit price, and the third client is public The investigation test paper of key encryption executes cochain process.
At this point it is possible to be the primary intelligent contract of trading of a investigation test paper triggering, primary investigation test paper purchase unit price is carried out Transfer accounts;It is also possible to the primary intelligent contract of trading of more parts of investigation test paper triggerings, carries out repeatedly turning for investigation test paper purchase unit price Account;It is, the quantity of investigation test paper is identical as the number of transferring accounts of investigation test paper purchase unit price.
The buyer of investigation test paper data needs to possess digital cash, and test paper data could be investigated on block chain Purchase;The digital cash that investigation test paper data purchaser possesses can be as another kind of investigation test paper data owner, sell Another kind of investigation test paper data digital cash obtained.The application is to this without being described in detail.
It should be noted that the service charge of investigation server and the service charge of block chain node cochain, are also possible to portion Investigation test paper, triggering are traded after intelligent contract, are transferred accounts primary;It is also possible to more parts of investigation test papers, triggering is traded after intelligent contract, It transfers accounts repeatedly;Investigate the number of transferring accounts of the quantity of test paper and the service charge of investigation server, the cochain service charge of block chain node It is equal.
S311, block chain node send transaction and respond to investigation server.
S312, investigation server send transaction and respond to third client.
S313, third client send investigation test paper inquiry request and give block chain node.
S314, block chain node send investigation test paper and respond to third client, and investigation test paper response includes third visitor The investigation of family end public key encryption is answered the questions in a test paper.
The investigation test paper that the third client public key encrypts is decrypted in S315, third client own private key.
The present processes can allow the process cochain of investigation, and the open process entirely investigated is transparent, while having ensured tune The interests of the person of grinding and investigated person;Also, this method allows investigational data cochain, and investigation person and investigated person can check the tune Grind data.In addition, the investigated person for replying questionnaire can also be answered the questions in a test paper with the investigation and be traded;Investigation person answers the questions in a test paper to above-mentioned investigation Only check permission, the permission that investigation test paper is not traded again.
As shown in figure 4, the investigation equipment to the application is illustrated.A kind of investigation equipment using intelligent contract, it is described Equipment further includes receiving unit and processing unit.
Block chain node receives the investigation questionnaire cochain request that the first client is sent, the investigation questionnaire cochain request packet Investigation questionnaire price and investigation questionnaire time are included, the investigation questionnaire price includes investigation questionnaire unit price and investigation questionnaire quantity;
Questionnaire intelligence contract is triggered, the questionnaire intelligence contract carries out school to the corresponding remaining sum of first client address It tests, after verification passes through, freezes the investigation questionnaire price;
The block chain node receives the investigation test paper cochain request that investigation server is sent, and the investigation test paper cochain is asked Ask the investigation test paper including the encryption of the first client public key and the investigation test paper of the second client public key encryption;Wherein, described Two clients are sent to the investigation test paper of the investigation server public key encryption of the investigation server, the investigation server With own private key to it is described investigation server public key encryption investigation test paper be decrypted, and with first client public key with Second client public key respectively encrypts investigation test paper;
Triggering is traded intelligent contract, and the intelligent contract of trading executes transferring accounts for the investigation questionnaire unit price, and will be described The investigation test paper of first client public key encryption and the investigation test paper of second client public key encryption execute cochain process.
In one example, the equipment further includes transmission unit;Wherein, the receiving unit receives first visitor The investigation test paper inquiry request that family end is sent;The transmission unit is sent to the first client investigation test paper response, described Investigation test paper response includes the investigation test paper of the encryption of the first client public key described in predetermined quantity, in order to first visitor The investigation test paper that first client public key encrypts is decrypted in family end private key.
In one example, the investigation questionnaire price includes the investigation questionnaire unit price, the investigation questionnaire quantity, institute State the service charge of investigation server and the service charge of the block chain node.
In one example, the receiving unit, receives the investigation test paper purchase request of third client, and the investigation is answered Volume purchase request includes investigation test paper purchasing price, and the investigation test paper purchasing price includes investigation test paper unit price and investigation test paper Quantity;
The processing unit, the intelligent contract of triggering test paper, the intelligent contract of the test paper is to the third client address pair The remaining sum answered is verified, and after verification passes through, freezes the investigation test paper purchasing price;
The receiving unit receives the transaction request that the investigation server is sent, and the transaction request includes described the The investigation test paper of three client public keys encryption;Wherein, the investigation server receives the transaction that the third client is sent Request, the transaction request include the investigation test paper of the investigation server public key encryption, itself private of the investigation server The investigation test paper of the investigation server public key encryption is decrypted in key, and with the third client public key to the investigation Test paper is encrypted;
The processing unit, the intelligent contract of triggering transaction, the transaction intelligent contract execution investigation test paper are bought single Valence is transferred accounts, and executes the investigation test paper cochain process of the third client public key encryption.
In one example, second client public key is answered the questions in a test paper to the investigation and is encrypted, specifically: second client Public key is held to carry out the encryption of preset ratio to the investigation test paper.
The present processes can allow the process cochain of investigation, and the open process entirely investigated is transparent, while having ensured tune The interests of the person of grinding and investigated person;Also, this method allows investigational data cochain, and investigation person and investigated person can check the tune Grind data.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description. These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution. Professional technician can use different methods to achieve the described function each specific application, but this realization It is not considered that exceeding scope of the present application.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (10)

1. a kind of method of investigation and study using intelligent contract, which is characterized in that the method also includes:
Block chain node receives the investigation questionnaire cochain request that the first client is sent, and the investigation questionnaire cochain request includes adjusting Questionnaire price and investigation questionnaire time are ground, the investigation questionnaire price includes investigation questionnaire unit price and investigation questionnaire quantity;
Questionnaire intelligence contract is triggered, the questionnaire intelligence contract verifies the corresponding remaining sum of first client address, After verification passes through, freeze the investigation questionnaire price;
The investigation test paper cochain request that the block chain node reception investigation server is sent, the investigation test paper cochain request packet Include the investigation test paper of the first client public key encryption and the investigation test paper of the second client public key encryption;Wherein, second visitor Family end is sent to the investigation test paper of the investigation server public key encryption of the investigation server, and the investigation server is used certainly The investigation test paper of the investigation server public key encryption is decrypted in body private key, and with first client public key and described Second client public key respectively encrypts investigation test paper;
Triggering is traded intelligent contract, and the intelligent contract of trading executes transferring accounts for the investigation questionnaire unit price, and by described first The investigation test paper of client public key encryption and the investigation test paper of second client public key encryption execute cochain process.
2. the method according to claim 1, wherein the method also includes:
The block chain node receives the investigation test paper inquiry request that first client is sent;
The block chain node is sent to the first client investigation test paper response, and the investigation test paper response includes predetermined number The investigation test paper of the first client public key encryption is measured, in order to which the first client private key is to first visitor The investigation test paper of family end public key encryption is decrypted.
3. the method according to claim 1, wherein the investigation questionnaire price includes the investigation questionnaire list Valence, the service charge for investigating questionnaire quantity, the service charge of the investigation server and the block chain node.
4. the method according to claim 1, wherein the method also includes:
The block chain node receives the investigation test paper purchase request of third client, and the investigation test paper purchase request includes adjusting Test paper purchasing price is ground, the investigation test paper purchasing price includes investigation test paper unit price and investigation test paper quantity;
The intelligent contract of triggering test paper, the intelligent contract of the test paper verify the corresponding remaining sum of the third client address, After verification passes through, freeze the investigation test paper purchasing price;
The block chain node receives the transaction request that the investigation server is sent, and the transaction request includes the third visitor The investigation of family end public key encryption is answered the questions in a test paper;Wherein, the investigation server receives the transaction request that the third client is sent, The transaction request includes the investigation test paper of the investigation server public key encryption, and the investigation server own private key is to institute State investigation server public key encryption investigation test paper is decrypted, and with the third client public key to it is described investigation answer the questions in a test paper into Row encryption;
Intelligence contract of trading is triggered, the intelligent contract of trading executes the test paper of investigating and buys transferring accounts for unit price, and executes institute State the investigation test paper cochain process of third client public key encryption.
5. the method according to claim 1, wherein second client public key adds investigation test paper It is close, specifically:
Second client public key carries out the encryption of preset ratio to the investigation test paper.
6. a kind of investigation equipment using intelligent contract, which is characterized in that the equipment further includes receiving unit and processing unit; Wherein,
Block chain node receives the investigation questionnaire cochain request that the first client is sent, and the investigation questionnaire cochain request includes adjusting Questionnaire price and investigation questionnaire time are ground, the investigation questionnaire price includes investigation questionnaire unit price and investigation questionnaire quantity;
Questionnaire intelligence contract is triggered, the questionnaire intelligence contract verifies the corresponding remaining sum of first client address, After verification passes through, freeze the investigation questionnaire price;
The investigation test paper cochain request that the block chain node reception investigation server is sent, the investigation test paper cochain request packet Include the investigation test paper of the first client public key encryption and the investigation test paper of the second client public key encryption;Wherein, second visitor Family end is sent to the investigation test paper of the investigation server public key encryption of the investigation server, and the investigation server is used certainly The investigation test paper of the investigation server public key encryption is decrypted in body private key, and with first client public key and described Second client public key respectively encrypts investigation test paper;
Triggering is traded intelligent contract, and the intelligent contract of trading executes transferring accounts for the investigation questionnaire unit price, and by described first The investigation test paper of client public key encryption and the investigation test paper of second client public key encryption execute cochain process.
7. equipment according to claim 6, which is characterized in that the equipment further includes transmission unit;Wherein,
The receiving unit receives the investigation test paper inquiry request that first client is sent;
The transmission unit is sent to the first client investigation test paper response, and the investigation test paper response includes predetermined number The investigation test paper of the first client public key encryption is measured, in order to which the first client private key is to first visitor The investigation test paper of family end public key encryption is decrypted.
8. equipment according to claim 6, which is characterized in that the investigation questionnaire price includes the investigation questionnaire list Valence, the service charge for investigating questionnaire quantity, the service charge of the investigation server and the block chain node.
9. equipment according to claim 6, which is characterized in that
The receiving unit receives the investigation test paper purchase request of third client, and the investigation test paper purchase request includes adjusting Test paper purchasing price is ground, the investigation test paper purchasing price includes investigation test paper unit price and investigation test paper quantity;
The processing unit, the intelligent contract of triggering test paper, the intelligent contract of the test paper are corresponding to the third client address Remaining sum is verified, and after verification passes through, freezes the investigation test paper purchasing price;
The receiving unit, receives the transaction request that the investigation server is sent, and the transaction request includes the third visitor The investigation of family end public key encryption is answered the questions in a test paper;Wherein, the investigation server receives the transaction request that the third client is sent, The transaction request includes the investigation test paper of the investigation server public key encryption, and the investigation server own private key is to institute State investigation server public key encryption investigation test paper is decrypted, and with the third client public key to it is described investigation answer the questions in a test paper into Row encryption;
The processing unit, triggers intelligence contract of trading, and the intelligent contract of trading executes the test paper of investigating and buys unit price It transfers accounts, and executes the investigation test paper cochain process of the third client public key encryption.
10. equipment according to claim 6, which is characterized in that second client public key adds investigation test paper It is close, specifically:
Second client public key carries out the encryption of preset ratio to the investigation test paper.
CN201910499719.7A 2019-06-11 2019-06-11 Research method and device for using intelligent contract Active CN110210247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910499719.7A CN110210247B (en) 2019-06-11 2019-06-11 Research method and device for using intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910499719.7A CN110210247B (en) 2019-06-11 2019-06-11 Research method and device for using intelligent contract

Publications (2)

Publication Number Publication Date
CN110210247A true CN110210247A (en) 2019-09-06
CN110210247B CN110210247B (en) 2021-11-19

Family

ID=67791887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910499719.7A Active CN110210247B (en) 2019-06-11 2019-06-11 Research method and device for using intelligent contract

Country Status (1)

Country Link
CN (1) CN110210247B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170352116A1 (en) * 2016-06-06 2017-12-07 Chicago Mercantile Exchange Inc. Data payment and authentication via a shared data structure
CN107851252A (en) * 2015-05-26 2018-03-27 缇零网股份有限公司 Purpose is obscured in transaction using encryption technology
US20180108010A1 (en) * 2016-10-15 2018-04-19 Wal-Mart Stores, Inc. Vendor payment sharing system
CN108710808A (en) * 2018-08-07 2018-10-26 武汉研众科技有限公司 A kind of investigation payment platform based on block chain
CN109146547A (en) * 2018-07-26 2019-01-04 武汉研众科技有限公司 A kind of method of investigation and study and system based on block chain
CN109785200A (en) * 2019-01-03 2019-05-21 中国联合网络通信集团有限公司 It answers questions method, equipment and storage medium
US20200005912A1 (en) * 2018-06-29 2020-01-02 OutcomeMD, Inc. Systems and methods for securely storing patient information and providing access thereto
US10635471B2 (en) * 2015-05-15 2020-04-28 Joshua Paul Davis System and method for an autonomous entity

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10635471B2 (en) * 2015-05-15 2020-04-28 Joshua Paul Davis System and method for an autonomous entity
CN107851252A (en) * 2015-05-26 2018-03-27 缇零网股份有限公司 Purpose is obscured in transaction using encryption technology
US20170352116A1 (en) * 2016-06-06 2017-12-07 Chicago Mercantile Exchange Inc. Data payment and authentication via a shared data structure
US20180108010A1 (en) * 2016-10-15 2018-04-19 Wal-Mart Stores, Inc. Vendor payment sharing system
US20200005912A1 (en) * 2018-06-29 2020-01-02 OutcomeMD, Inc. Systems and methods for securely storing patient information and providing access thereto
CN109146547A (en) * 2018-07-26 2019-01-04 武汉研众科技有限公司 A kind of method of investigation and study and system based on block chain
CN108710808A (en) * 2018-08-07 2018-10-26 武汉研众科技有限公司 A kind of investigation payment platform based on block chain
CN109785200A (en) * 2019-01-03 2019-05-21 中国联合网络通信集团有限公司 It answers questions method, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MIN GYU KIM: "Sharing Medical Questionnaries based on Blockchain", 《2018 IEEE INTERNATIONAL CONFERENCE ON BIOINFORMATICS AND BIOMEDICINE (BIBM)》 *
杜兰: "基于区块链的智慧云制造系统安全架构", 《信息技术与网络安全》 *
王文明: "基于区块链技术的交易及其安全性研究", 《信息网络安全》 *

Also Published As

Publication number Publication date
CN110210247B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CA2624981C (en) Three-dimensional transaction authentication
US20150046337A1 (en) Offline virtual currency transaction
CN110210977A (en) A kind of data trade method and its equipment
KR102110605B1 (en) Method for trading blockchain exchange based real electronic wallet and method for trading the same
CN110225032B (en) Business data transaction method and equipment
CN109377219A (en) Transaction of servitude method, system, server and storage medium based on block chain
CN111126987B (en) Resource transfer information processing method and device, storage medium and electronic device
CN110210976A (en) A kind of method of commerce and its equipment based on block chain
US20020038424A1 (en) Apparatus and method for providing security for electronic signatures
CN110223117A (en) A kind of method of investigation and study and its equipment of combination block chain
JPWO2003105002A1 (en) General in-house personal authentication system
CN110223118A (en) A kind of method of investigation and study realized by intelligent contract and its equipment
CN110210975A (en) Data trade method and its equipment on block chain
CN110223065A (en) Business datum method of commerce and its equipment on a kind of chain
CN110210247A (en) A kind of method of investigation and study and its equipment using intelligent contract
CN110210239A (en) A kind of method of investigation and study and its equipment applied on block chain
CN110223119A (en) A kind of method of investigation and study and its equipment on block chain
CN111131227B (en) Data processing method and device
CN110210859A (en) Method of investigation and study and its equipment on a kind of block chain
CN110223043A (en) A kind of method of investigation and study and its equipment based on block chain
CN110189130A (en) Method of commerce and its equipment on block chain
CN110232096A (en) A kind of method of investigation and study and its equipment based on intelligent contract
CN110210862A (en) A kind of method of commerce and its equipment of business datum
CN110213282A (en) A kind of method of investigation and study and its equipment by intelligent contract
CN110210240A (en) A kind of method of investigation and study and its equipment for applying intelligent contract

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
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.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant