CN109241756B - Data processing method, system, server and medium based on block chain - Google Patents
Data processing method, system, server and medium based on block chain Download PDFInfo
- Publication number
- CN109241756B CN109241756B CN201810950037.9A CN201810950037A CN109241756B CN 109241756 B CN109241756 B CN 109241756B CN 201810950037 A CN201810950037 A CN 201810950037A CN 109241756 B CN109241756 B CN 109241756B
- Authority
- CN
- China
- Prior art keywords
- data
- answer sheet
- answer
- block chain
- block
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000012360 testing method Methods 0.000 claims abstract description 29
- 238000000034 method Methods 0.000 claims abstract description 26
- 230000015654 memory Effects 0.000 claims description 10
- 238000012545 processing Methods 0.000 claims description 7
- 238000013500 data storage Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6209—Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/20—Education
- G06Q50/205—Education administration or guidance
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Tourism & Hospitality (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Strategic Management (AREA)
- Bioethics (AREA)
- Educational Technology (AREA)
- Educational Administration (AREA)
- General Business, Economics & Management (AREA)
- Economics (AREA)
- Primary Health Care (AREA)
- Marketing (AREA)
- Human Resources & Organizations (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses data processing methods, systems, servers and media based on block chains, wherein the method comprises the steps of generating a public key and a private key which are matched based on an asymmetric encryption algorithm, encrypting answer information data of a test taker according to the private key to generate answer data, generating answer blocks on a target block chain according to the answer data and block head characteristic values of front blocks in the target block chain, reading the answer blocks to obtain the answer data, decrypting the answer data according to a public key to generate answer information data, obtaining scores after the answer information data are subjected to approval, writing the scores into the target block chain, storing the answer data in the target block chain, avoiding scores which are modified, replaced and the like, and checking the answer by using a public key when the answer data are checked and doubtful to check, thereby ensuring the open and transparent test of an examination.
Description
Technical Field
The present invention relates to the field of internet communication technologies, and in particular, to a data processing method, system, server, and medium based on a block chain.
Background
The test is used as strict knowledge level identification means, and the learning ability and other abilities of examinees can be checked through the test, identical answer sheets are completed by people with groups having different educational resources within fixed time in the test, however, the significance of the test is not limited to the test, the test can be used for comprehensively examining individuals for targets, and the test can actually enable people from different social positions in the society to have the opportunity of changing themselves.
With the development of science and technology, computer and internet technology are increasingly developed, at present, in various examinations, the application of a computer is increasingly , and the processes from examination entrance registration, examination entrance information verification, examination admission control generation, examination data transmission, score distribution after an examination and the like can be assisted by the computer and the internet technology.
Disclosure of Invention
In order to solve the problems of insecurity, undisclosed transparency and the like existing in the storage and transmission of related examinee data applied to the prior art, the invention provides block chain-based data processing methods, systems, servers and media:
, the invention provides methods for processing data based on blockchains, the methods including:
generating a th public key and a th private key which are paired based on an asymmetric encryption algorithm;
encrypting the answer information data of the examinee according to the th private key to generate answer sheet data;
generating an answer sheet block on the target block chain according to the answer sheet data and the block head characteristic value of the front block in the target block chain, wherein the answer sheet data exists in the target block chain in the form of the answer sheet block;
reading the answer sheet block to obtain the answer sheet data;
decrypting the answer sheet data according to the th public key to generate the answer information data;
and obtaining the score after the answer information data is read in a marking way, and writing the score into the target block chain.
A second aspect provides kinds of blockchain-based data processing systems, the systems comprising:
a key generation module for generating a th public key and a th private key which are paired based on an asymmetric cryptographic algorithm;
the encryption module is used for encrypting the answer information data of the examinee according to the th private key to generate answer sheet data;
an answer sheet block generation module, configured to generate an answer sheet block on a target block chain according to the answer sheet data and a block head characteristic value of a front block in the target block chain, where the answer sheet data exists in the target block chain in the form of the answer sheet block;
answer sheet block reading module: the answer sheet block is used for reading the answer sheet block to obtain the answer sheet data;
the decryption module is used for decrypting the answer sheet data according to the th public key to generate the answer information data;
a block chain write module: and the system is used for obtaining scores after the answer information data are read and writing the scores into the target block chain.
A third aspect provides servers comprising a processor and a memory having stored therein at least instructions, at least program segments, a set of codes, or a set of instructions, the at least instructions, the at least program segments, the set of codes, or the set of instructions being loaded and executed by the processor to implement the blockchain based data processing method of aspect .
A fourth aspect provides computer readable storage media having stored therein at least instructions, at least programs, sets of codes, or sets of instructions, the at least instructions, the at least programs, sets of codes, or sets of instructions being loaded and executed by a processor to implement the method of blockchain based data processing according to aspect .
The data processing method, the system, the server and the medium based on the block chain have the following technical effects:
the invention provides environments for realizing justice of an examination, a private key generated by an asymmetric encryption algorithm is used for encrypting answer information data of a test taker, the generated answer data are written into a target block chain, the block chain has the characteristics of tamper resistance and traceability, the answer data stored in the target block chain avoid the conditions of modification, replacement and the like, then the answer data are decrypted according to a public key and are restored into the answer information data for reading in batches, scores after reading in the target block chain are written, the keys and answer data correspond to each other, the public key can be used for checking the answer when the examination reading and the scores have doubts and need to be checked, the open transparency of the examination is ensured, and the scores are also written into the target block chain, so the examination results can not be modified and replaced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions and advantages of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of application environments provided by an embodiment of the invention;
fig. 2 is a schematic flowchart of block-chain-based data processing methods according to an embodiment of the present invention;
FIG. 3 is a flow chart of types for generating answer sheet tiles on the target tile chain according to the embodiment of the present invention;
fig. 4 is a schematic flow charts of generating answer sheet data by encrypting answer information data of a test taker according to the th private key, according to an embodiment of the present invention;
fig. 5 is a schematic flowcharts of acquiring a score obtained after reading the answer information data and writing the score into the target block chain according to the embodiment of the present invention;
FIG. 6 is a block diagram illustrating an data processing system based on blockchains according to an embodiment of the present invention;
FIG. 7 is a block diagram of components of an answer sheet block generation module according to an embodiment of the present invention;
FIG. 8 is a block diagram of components of an encryption module provided by an embodiment of the present invention;
FIG. 9 is a block diagram of components of a blockchain write module according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of servers according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only partial embodiments of of the present invention, rather than all embodiments.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of this invention and the above-described drawings, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises the series 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.
Before explaining the embodiments of the present invention in detail, terms related to the embodiments of the present invention are explained.
The blockchain technology is independent of the bitcoin technology and is a bottom layer technology of the bitcoin, the blockchain refers to strings of blocks generated by using a cryptographic method for correlation, wherein the data stored in each block in the blockchain is associated with the data stored in the previous block, based on the block chain, cheating cannot be performed by tampering with the data on the blocks, the data on any block can be ensured to be publicly transparent, and the security of the data is ensured.
Transaction operations on the ledger resulting in changes in ledger status, such as the addition of transfer records.
Block, recording period all transaction and state results, times of common recognition of current account book state, Block chain organizing data by Block unit, Block is essentially data structure, each Block is composed of Block head and Block main body, Block main body only takes charge of recording period input data, in the embodiment of the invention, it is called answer data and marking data, most functions of Block chain are realized by Block head, th generated Block in Block chain is used as creation Block, all blocks generated afterwards have father blocks, for example, for current Block, its front Block is used as father Block, and itself is used as father Block of back Block.
Chain (Chian): the blocks are connected in series according to the occurrence sequence and are log records of the state change of the whole account book.
Referring to fig. 1, fig. 1 is a schematic diagram of application environments according to an embodiment of the present invention, as shown in fig. 1, in the application environments, answer information data is encrypted by a private key, an encrypted answer sheet is written into a block chain, the encrypted answer sheet is decrypted according to a public key, and is restored to the answer information data for reading and writing scores and correct answers into the block chain, it should be noted that fig. 1 is only examples.
Specifically, there may be examinee data written into blockchain with the encrypted answer sheet, where the examinee data includes information such as the name and admission card number of the examinee corresponding to the answer sheet.
Meanwhile, the correct answers are only , and may be disclosed in other ways, and the correct answers may not be written into the blockchain together with the score , but if correct answers correspond to examinees and partial examinees, the score and the correct answer may be written into the blockchain.
The block chain-based data processing method of the present invention is described below, fig. 2 is a flow chart of block chain-based data processing methods provided by the embodiment of the present invention, and this specification provides the method operation steps as described in the embodiment or the flow chart, but may include more or less operation steps based on conventional or non-inventive labor, the step sequence listed in the embodiment is only ways of the execution sequence of many steps, and does not represent the execution sequence of only.
S201, generating th public key and th private key which are paired based on an asymmetric encryption algorithm;
if the private key is used for encrypting data, only the corresponding public key can be used for decryption, and two different keys are used for encryption and decryption.
In the embodiment of the invention, the asymmetric encryption algorithm adopts an RSA encryption algorithm. The generation of the key in the RSA encryption algorithm may be as follows:
1) randomly selecting 2 (different) large prime numbers p and q, wherein the lengths of the two numbers are approximately equal;
2) calculating n ═ pq and m ═ (p-1) × (q-1);
3) selecting integers e at random, wherein 1< e < m, and the requirement that ged (e, m) is 1 is met;
4) calculating d with Euclidean expansion algorithm, 1< d < m, which satisfies e d ═ 1(mod m);
5) the generated key pair d is the th public key and (n, e) is the th private key.
In addition, the RSA encryption algorithm may be RSA-1024 (the length of the th public key and the th private key generated at this time is 1024 bits), RSA-2048 (the length of the th public key and the th private key generated at this time is 2048 bits).
Of course, the asymmetric encryption algorithm may also adopt ElGamal algorithm, ECC (elliptic encryption algorithm), and the like.
S202, encrypting answer information data of the examinee according to the th private key to generate answer sheet data;
specifically, as shown in fig. 4, fig. 4 is a schematic diagram of processes for encrypting answer information data according to the th private key to generate answer sheet data, according to an embodiment of the present invention, where:
s401: when the examination adopts a paper pen examination form, acquiring a picture of a test paper answered by the examinee obtained by photographing or scanning, and generating data to be encrypted according to the picture;
the paper pen examination is taken as a traditional examination form, when the examination is taken, an original test paper (white paper) is presented as paper, an examinee answers the original test paper through a pen, the test paper answered by the examinee is the original test paper and answer information filled by the examinee, the answer information filled by the original test paper and the examinee is at the moment, a picture of the test paper answered by the examinee is obtained through shooting or scanning, and data to be encrypted is generated according to the picture.
S402: when the examination adopts the form of machine examination, the answer information filled in by the examinee in the examination paper is obtained, and the data to be encrypted is generated according to the answer information.
In the mechanical examination, an original test paper is displayed on a display screen, an examinee fills in answer information according to the content of the original test paper through input equipment such as a mouse, a keyboard and the like, the answer information can exist relatively independently of the original test paper, and data to be encrypted is generated according to the answer information.
In the embodiment of the invention, the answer sheet data not only comprises the encrypted data to be encrypted, but also comprises the name of the examinee, the number of the admission card and the like.
In the embodiment of the present invention, when the data (m) to be encrypted is encrypted by the RSA encryption algorithm, the steps are as follows:
1) obtaining th private key (n, e);
2) decomposing the data to be encrypted into data with length less than log2Data of nGrouping;
3) calculating c ═ memod n;
4) Resulting in the ciphertext c.
S203, generating an answer sheet block on the target block chain according to the answer sheet data and the block head characteristic value of the front block in the target block chain, wherein the answer sheet data exists in the target block chain in the form of the answer sheet block;
the link list is composed of "blocks" connected in series, and the last block records the Hash (Hash) value of the first blocks adjacent to the last block, new data is added and must be put into new blocks, and whether this block (and the transaction in the block) is legal or not can be quickly verified by calculating the Hash value.
Specifically, as shown in fig. 3, fig. 3 is a schematic flow chart of types of answer sheet tiles on the target tile chain provided in the embodiment of the present invention, where:
s301: acquiring multiple pieces of answer data corresponding to multiple examinees;
specifically, the answer sheet data of multiple corresponding examinees in a preset time is obtained, for example, the answer sheet data of examinees who hand over the examination paper in 30 minutes before the end of examinations, the answer sheet data of examinees who hand over the examination paper in hours in the same region, and the like, or the answer sheet data of multiple corresponding examinees who take part in examinations is obtained.
S302: a plurality of pieces of answer sheet data are stored in the answer sheet blocks;
the multiple pieces of answer sheet data are arranged in a preset sequence, and the answer sheet data arranged later comprises the characteristic values of the answer sheet data arranged before the answer sheet data arranged later.
Each block in the block chain is applied to the storage of each answer sheet data in a single answer sheet block by using the serial connection mode of the characteristic values, so that the safety of each answer sheet data in the answer sheet block is improved.
In the embodiment of the present invention, as shown in the following table, the answer sheet data not only includes the ciphertext of the answer sheet, but also includes the name of the examinee, the number of the admission card, the timestamp of submitting the answer sheet data (Transaction), the length of the answer sheet data, and the characteristic value of the answer sheet data, wherein the characteristic value of the answer sheet data may be a value obtained by checking the characteristic values of the first answer sheet data, the timestamp of submitting the answer sheet data (Transaction), the length of the answer sheet data, the name of the examinee, the number of the admission card, and the ciphertext of the answer sheet by using a non-reversible digital signature algorithm, and the check value may be a hash value.
S204: reading the answer sheet block to obtain the answer sheet data;
the answer sheet data in the answer sheet block realizes credible and reliable test sheet recording systems by using a block chain mechanism, after the answer sheet is stored in the target block chain, the answer sheet is difficult to modify, if the answer is wrong, the answer in the answer sheet is required to be modified to be correct, which is impossible.
S205, decrypting the answer sheet data according to the th public key to generate the answer information data;
the answer information data of the examinee is encrypted by using the th private key in the pairing key to generate answer sheet data or ciphertext of the answer sheet in the answer sheet data, correspondingly, the th public key in the pairing key is used for decrypting the answer sheet data or the ciphertext of the answer sheet to obtain restored answer information data, and key pairs (the th public key and the th private key) based on each piece of answer information data and the ciphertext of the answer sheet are independent and cannot be counterfeited.
Specifically, when the examination adopts a paper pen examination form, the answer information data obtained by restoration is a picture obtained by photographing or scanning the answer information data; when the examination adopts the form of mechanical examination, the obtained recovered answer information data is the answer information filled in by the examinee in the examination paper.
In the embodiment of the present invention, when the answer sheet data or the ciphertext of the answer sheet is decrypted by the RSA encryption algorithm, the steps are as follows:
1) public key d is obtained;
2) calculating m ═ ed(mod n)。
S206: and obtaining the score after the answer information data is read in a marking way, and writing the score into the target block chain.
Specifically, as shown in fig. 5, fig. 5 is a schematic view of kinds of processes for obtaining a score after reviewing the answer information data and writing the score into the target block chain according to the embodiment of the present invention, where:
s501: generating scoring data based on the scores;
there may be corresponding scores for each response sheet, and multiple scores for multiple response sheets may be obtained to generate corresponding scoring data, for example, multiple scores obtained by reviewing multiple response sheets within a predetermined time period, or multiple scores corresponding to multiple response sheets for tests.
In the embodiment of the present invention, the scoring data includes not only the score, but also the name of the examinee, the number of the admission card, the correct answer, and the like.
S502, generating scoring blocks on the target block chain according to the scoring data and the block head characteristic values of the front blocks in the target block chain, wherein the scoring data exists in the target block chain in the form of the scoring blocks.
The characteristic value of the block head of the front block in the target block chain can be a hash value of the characteristic value or other values obtained by adopting an irreversible digital signature algorithm, wherein an answer sheet block and a marking block are both blocks in the target block chain, the answer sheet block is in the front, the marking block is in the back, the answer sheet block and the marking block are not and are adjacent, other blocks can be arranged between the answer sheet block and the marking block, and the answer sheet block and the marking block also can not exist in the same target block chain.
Meanwhile, when the scores after the approval are doubtful and need to be checked again, the answer sheet blocks and the paper reading data can be read for verification, and the situations of wrong scoring, high scoring and the like caused by paper reading errors or corruption of the paper reading are avoided in step .
It can be seen from the above technical solutions published in the embodiments of the present specification that environments for implementing justice of the examination are provided in the embodiments of the present specification, th private key is generated by using an asymmetric encryption algorithm to encrypt answer information data of the examinee, the generated answer data is written into a target block chain, the block chain has tamper-proof and traceable characteristics, the answer data stored in the target block chain avoids being modified, replaced and the like, the answer data is decrypted according to th public key and is restored into the answer information data for review, and the reviewed score is written into the target block chain, the key corresponds to of the answer data, the answer can be viewed by using th public key when the examination paper is read and verified, so that the examination result can be written into the target block chain without modification and replacement, when the examination result is good, but when the score is low, the answer content and the examination result can be verified as encrypted, and the score of the examination result can be verified as is not be tampered.
The embodiment of the present invention also discloses kinds of data processing systems based on block chains, as shown in fig. 6, the system includes:
the key generation module 61 is used for generating th public key and th private key which are paired based on an asymmetric encryption algorithm, wherein the asymmetric encryption algorithm adopts an RSA encryption algorithm.
The encryption module 62 is configured to encrypt answer information data of the examinee according to the th private key to generate answer sheet data, as shown in fig. 8, the encryption module 62 includes a paper pen examination encryption unit 621 configured to, when an examination adopts a paper pen examination form, obtain a picture of a test sheet answered by the examinee through photographing or scanning, and generate data to be encrypted according to the picture, and an mechanical examination encryption unit 622 configured to, when an examination adopts a mechanical examination form, obtain answer information filled in by the examinee in the test sheet, and generate data to be encrypted according to the answer information.
An answer sheet block generation module 63, configured to generate an answer sheet block on a target block chain according to the answer sheet data and a block head characteristic value of a front block in the target block chain, where the answer sheet data exists in the target block chain in the form of the answer sheet block, and as shown in fig. 7, the answer sheet block generation module 63 includes an answer sheet data acquisition unit 631, configured to acquire multiple pieces of answer sheet data corresponding to multiple examinees, and the answer sheet data acquisition unit 631 includes an acquisition setting subunit, configured to acquire multiple pieces of answer sheet data corresponding to multiple examinees within a preset time, or acquire multiple pieces of answer sheet data corresponding to multiple examinees taking a test in the same field.
Answer sheet block reading module 64: the answer sheet block is used for reading the answer sheet block to obtain the answer sheet data;
the decryption module 65 is configured to decrypt the answer sheet data according to the th public key to generate the answer information data;
the block chain writing module 66 is configured to obtain scores obtained after the answer information data are reviewed, and write the scores into the target block chain, as shown in fig. 9, the block chain writing module 66 includes an examination paper marking data generating unit 661 configured to generate examination paper marking data based on the scores, and an examination paper marking block generating unit 662 configured to generate examination paper marking blocks on the target block chain according to the examination paper marking data and block head feature values of the front blocks in the target block chain, where the examination paper marking data exist in the target block chain in the form of the examination paper marking blocks.
It should be noted that the system and method embodiments in the system embodiment are based on the same inventive concept.
An embodiment of the present invention issues servers comprising a processor and a memory, wherein the memory stores at least instructions, at least segments of programs, sets of codes, or sets of instructions, and the at least instructions, the at least segments of programs, sets of codes, or sets of instructions are loaded and executed by the processor to implement blockchain-based data processing methods as provided by the above-mentioned method embodiments.
The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for functions, and the like, and the storage data area may store data created according to use of the device, and the like.
The server 1000 may have relatively large differences due to different configurations or performances, and may include or more than Central Processing Units (CPUs) 1010 (e.g., or more than 3 processors) and memories 1030, or more than 7375 storage media 1020 (e.g., or mass storage devices) storing applications 1023 or data 1022, where the memories 1030 and the storage media 1020 may be transient storage or persistent storage, the program stored in the storage media 1020 may include or more than modules, and each module may include operations on instructions of the series of instructions of the server , further, the storage medium may be configured to communicate with the storage media, may be configured to execute operations on the storage media 1020, or may include operations on the series of processors 1020, or on the relevant wireless network interface, such as the Windows system 4624, the Windows system may include operations on the line 4624, the Windows network 4624, the Windows network 4624, the Windows network, and the network may be configured to perform operations on the network.
An embodiment of the present invention further provides storage media, where the storage media may be disposed in a server to store at least instructions, at least segments of programs, code sets, or instruction sets related to implementing the block chain based data processing methods in the method embodiment, and the at least instructions, the at least segments of programs, the code sets, or the instruction sets are loaded and executed by the processor to implement the block chain based data processing methods provided in the method embodiment.
Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
The invention provides environments for realizing the justice of an examination, a private key is generated by using an asymmetric encryption algorithm to encrypt answer information data of an examinee, the generated answer data is written into a target block chain, the block chain has the characteristics of tamper resistance and traceability, the answer data stored in the target block chain avoids the conditions of modification, replacement and the like, the answer data is decrypted according to a public key and is restored into the answer information data for reading in batches, scores after reading in the target block chain are written, the key corresponds to of pieces of answer data, the answer can be checked by using a public key when the examination and the scores are verified, the scores are guaranteed to be public and transparent, and the examination results can not be modified and replaced.
It should be noted that the foregoing descriptions of embodiments of the present invention are provided for illustrative purposes only and do not represent advantages or disadvantages of the embodiments, and that the description of the specific embodiments is provided above other embodiments are within the scope of the appended claims.in cases, acts or steps recited in the claims may be performed in an order different than the illustrated embodiments and still achieve desirable results.
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 and server embodiments, since they are substantially similar to the method embodiments, the description is simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in computer readable storage media, which may be read only memory, magnetic or optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (12)
1, A data processing method based on block chain, characterized in that, the method includes:
generating a th public key and a th private key which are paired based on an asymmetric encryption algorithm;
encrypting the answer information data of the examinee according to the th private key to generate answer sheet data, wherein correspondence exists between the paired th public key and th private key and the answer sheet data;
generating an answer sheet block on the target block chain according to the answer sheet data and the block head characteristic value of the front block in the target block chain, wherein the answer sheet data exists in the target block chain in the form of the answer sheet block;
reading the answer sheet block to obtain the answer sheet data;
decrypting the answer sheet data according to the th public key to generate the answer information data;
obtaining scores after the answer information data are read in batches, and writing the scores into the target block chain;
and generating an answer sheet block on the target block chain according to the answer sheet data and the block head characteristic value of the front block in the target block chain, wherein the step of the answer sheet data existing in the target block chain in the form of the answer sheet block comprises the following steps of:
acquiring multiple pieces of answer data corresponding to multiple examinees;
a plurality of pieces of answer sheet data are stored in the answer sheet blocks;
the multiple pieces of answer sheet data are arranged in a preset sequence, and the answer sheet data arranged later comprises the characteristic values of the answer sheet data arranged before the answer sheet data arranged later.
2. The method of claim 1, wherein said step of obtaining a plurality of said answer sheet data for a plurality of test takers comprises:
and acquiring multiple pieces of answer sheet data corresponding to multiple examinees in a preset time, or acquiring multiple pieces of answer sheet data corresponding to multiple examinees taking examinations.
3. The method of claim 1, wherein said step of encrypting the answer information data of the examinee according to the private key to generate answer sheet data comprises:
when the examination adopts a paper pen examination form, acquiring a picture of a test paper answered by an examinee obtained by photographing or scanning, and generating data to be encrypted according to the picture;
when the examination adopts the form of machine examination, the answer information filled in by the examinee in the examination paper is obtained, and the data to be encrypted is generated according to the answer information.
4. The method according to claim 1, wherein the step of obtaining a score after the answer information data is read, and writing the score into the target block chain comprises:
generating scoring data based on the scores;
generating a marking block on the target block chain according to the marking data and the block head characteristic value of the front block in the target block chain, wherein the marking data exists in the target block chain in the form of the marking block.
5. The method of claim 1, wherein the asymmetric encryption algorithm employs an RSA encryption algorithm.
A block chain based data processing system of the type , said system comprising:
a key generation module for generating a th public key and a th private key which are paired based on an asymmetric cryptographic algorithm;
the encryption module is used for encrypting the answer information data of the examinee according to the th private key to generate answer sheet data, wherein the th public key and the th private key which are paired correspond to of the answer sheet data;
an answer sheet block generation module, configured to generate an answer sheet block on a target block chain according to the answer sheet data and a block head characteristic value of a front block in the target block chain, where the answer sheet data exists in the target block chain in the form of the answer sheet block;
answer sheet block reading module: the answer sheet block is used for reading the answer sheet block to obtain the answer sheet data;
the decryption module is used for decrypting the answer sheet data according to the th public key to generate the answer information data;
a block chain write module: the system is used for obtaining scores after the answer information data are read in batches and writing the scores into the target block chain;
and the answer sheet block generation module comprises:
answer sheet data acquisition unit: the answer sheet data acquisition module is used for acquiring multiple pieces of answer sheet data corresponding to multiple examinees;
answer sheet data storage unit: the answer sheet data used for multiple copies are stored in the answer sheet blocks;
the multiple pieces of answer sheet data are arranged in a preset sequence, and the answer sheet data arranged later comprises the characteristic values of the answer sheet data arranged before the answer sheet data arranged later.
7. The system of claim 6, wherein said answer sheet data obtaining unit comprises:
and the acquisition setting subunit is used for acquiring multiple pieces of answer sheet data corresponding to multiple examinees within a preset time, or acquiring multiple pieces of answer sheet data corresponding to multiple examinees taking examinations.
8. The system of claim 6, wherein the encryption module comprises:
the paper pen examination encryption unit: the method comprises the steps that when the examination adopts a paper pen examination form, a picture of a test paper answered by an examinee is obtained through photographing or scanning, and data to be encrypted are generated according to the picture;
machine examination encryption unit: the method is used for acquiring answer information filled in by the examinees in the examination paper when the examination adopts the machine examination form, and generating data to be encrypted according to the answer information.
9. The system of claim 6, wherein the blockchain write module comprises:
marking data generation unit: for generating scoring data based on the scores;
and the marking block generating unit is used for generating marking blocks on the target block chain according to the marking data and the block head characteristic values of the front blocks in the target block chain, wherein the marking data exist in the target block chain in the form of the marking blocks.
10. The system of claim 6, wherein the asymmetric encryption algorithm employs an RSA encryption algorithm.
11, Server, characterized in that it comprises a processor and a memory, said memory having stored therein at least instructions, at least programs, sets of codes or sets of instructions, said at least instructions, said at least programs, sets of codes or sets of instructions being loaded and executed by said processor to implement the blockchain based data processing method according to any of claims 1 to 5 .
12, computer readable storage medium, wherein at least instructions, at least program segments, a set of codes, or a set of instructions are stored in the storage medium, wherein said at least instructions, said at least program segments, said set of codes, or said set of instructions are loaded and executed by a processor to implement blockchain based data processing method according to any one of claims 1 to 5 .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810950037.9A CN109241756B (en) | 2018-08-20 | 2018-08-20 | Data processing method, system, server and medium based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810950037.9A CN109241756B (en) | 2018-08-20 | 2018-08-20 | Data processing method, system, server and medium based on block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109241756A CN109241756A (en) | 2019-01-18 |
CN109241756B true CN109241756B (en) | 2020-01-31 |
Family
ID=65071152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810950037.9A Active CN109241756B (en) | 2018-08-20 | 2018-08-20 | Data processing method, system, server and medium based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109241756B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951441B (en) * | 2019-01-23 | 2022-11-29 | 深圳壹账通智能科技有限公司 | Examination information evaluation method, device, equipment and storage medium based on block chain |
CN110008212B (en) * | 2019-02-26 | 2023-05-26 | 平安科技(深圳)有限公司 | Method, device and system for recording score of test taker and computer storage medium |
CN110110532A (en) * | 2019-04-02 | 2019-08-09 | 广州奇大教育科技有限公司 | A kind of method and system based on block chain technical notes achievement |
CN109993250A (en) * | 2019-04-03 | 2019-07-09 | 大陆投资(中国)有限公司 | Elevator maintenance management system |
CN110210859B (en) * | 2019-06-11 | 2022-02-22 | 北京瑞策科技有限公司 | Investigation method and device on block chain |
CN110232594B (en) * | 2019-06-11 | 2022-06-28 | 北京瑞策科技有限公司 | Investigation method realized through block chain and equipment thereof |
CN110414254A (en) * | 2019-08-07 | 2019-11-05 | 北京艾摩瑞策科技有限公司 | The cochain method and device thereof of user's investigation associated data |
CN110532323B (en) * | 2019-09-02 | 2021-07-30 | 腾讯科技(深圳)有限公司 | Student identity information processing method and device in block chain network, electronic equipment and storage medium |
CN110852648B (en) * | 2019-11-19 | 2024-05-14 | 腾讯科技(深圳)有限公司 | Data processing method and device and computer storage medium |
CN112541035B (en) * | 2020-09-30 | 2023-08-18 | 新大陆数字技术股份有限公司 | Block chain-based information verification method, device, equipment and readable storage medium |
CN112700244B (en) * | 2020-12-30 | 2023-08-15 | 广东德诚科教有限公司 | Information storage system, method and server based on block chain |
CN114896333A (en) * | 2022-04-22 | 2022-08-12 | 广东职业技术学院 | Flower cultivation tracking system and method based on block chain |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107122477A (en) * | 2017-05-02 | 2017-09-01 | 成都中远信电子科技有限公司 | A kind of block chain storage system |
CN107294709A (en) * | 2017-06-27 | 2017-10-24 | 阿里巴巴集团控股有限公司 | A kind of block chain data processing method, apparatus and system |
CN107426170A (en) * | 2017-05-24 | 2017-12-01 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment based on block chain |
CN107483498A (en) * | 2017-09-22 | 2017-12-15 | 中国联合网络通信集团有限公司 | Academic authentication method and system based on block chain |
CN108121498A (en) * | 2016-11-28 | 2018-06-05 | 中国移动通信集团公司 | The method and apparatus that a kind of learning records based on block chain technology preserve |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8379841B2 (en) * | 2006-03-23 | 2013-02-19 | Exegy Incorporated | Method and system for high throughput blockwise independent encryption/decryption |
CN106612285B (en) * | 2016-12-30 | 2020-05-19 | Tcl集团股份有限公司 | Distributed cloud data management method and system based on peer-to-peer network |
CN108259169B (en) * | 2018-01-09 | 2021-07-20 | 北京大学深圳研究生院 | File secure sharing method and system based on block chain cloud storage |
CN108322451B (en) * | 2018-01-12 | 2020-09-22 | 深圳壹账通智能科技有限公司 | Data processing method, data processing device, computer equipment and storage medium |
-
2018
- 2018-08-20 CN CN201810950037.9A patent/CN109241756B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108121498A (en) * | 2016-11-28 | 2018-06-05 | 中国移动通信集团公司 | The method and apparatus that a kind of learning records based on block chain technology preserve |
CN107122477A (en) * | 2017-05-02 | 2017-09-01 | 成都中远信电子科技有限公司 | A kind of block chain storage system |
CN107426170A (en) * | 2017-05-24 | 2017-12-01 | 阿里巴巴集团控股有限公司 | A kind of data processing method and equipment based on block chain |
CN107294709A (en) * | 2017-06-27 | 2017-10-24 | 阿里巴巴集团控股有限公司 | A kind of block chain data processing method, apparatus and system |
CN107483498A (en) * | 2017-09-22 | 2017-12-15 | 中国联合网络通信集团有限公司 | Academic authentication method and system based on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN109241756A (en) | 2019-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109241756B (en) | Data processing method, system, server and medium based on block chain | |
CN110622165B (en) | Security measures for determining privacy set intersections | |
EP3673609B1 (en) | Method and apparatus for obtaining input of secure multiparty computation protocol | |
US10245875B1 (en) | Digitally encoded seal for document verification | |
Marky et al. | What did I really vote for? On the usability of verifiable e-voting schemes | |
EP2645338B1 (en) | System and method for secure voting | |
Garfinkel | Lessons learned writing digital forensics tools and managing a 30TB digital evidence corpus | |
WO2017039775A2 (en) | Making cryptographic claims about stored data using an anchoring system | |
CN108121498A (en) | The method and apparatus that a kind of learning records based on block chain technology preserve | |
CN105993043A (en) | Security device, method therefor and program | |
CN106685905A (en) | Systems and methods of encrypted transmission of web pages | |
IL281671B2 (en) | Systems and computer-based methods of document certification and publication | |
US7962765B2 (en) | Methods and systems for tamper resistant files | |
CN106815716A (en) | A kind of electronic record file forming method and system | |
Zhu et al. | Secure Online Examination with Biometric Authentication and Blockchain‐Based Framework | |
Kulyk et al. | Comparing “challenge-based” and “code-based” internet voting verification implementations | |
Giustolisi et al. | Remark!: A secure protocol for remote exams | |
US9135671B2 (en) | Secured computer based assessment | |
CN110493011B (en) | Block chain-based certificate issuing management method and device | |
CN112541035A (en) | Block chain based information verification method, device, equipment and readable storage medium | |
KR20200085204A (en) | Verifiable Electronic Voting System | |
CN116401718A (en) | Block chain-based data protection method and device, electronic equipment and storage medium | |
Bella et al. | Trustworthy exams without trusted parties | |
CN110535663B (en) | Method and system for realizing trusted timestamp service based on block chain | |
Sreelaja et al. | An image edge based approach for image password encryption |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |