CN109241756A - 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
- CN109241756A CN109241756A CN201810950037.9A CN201810950037A CN109241756A CN 109241756 A CN109241756 A CN 109241756A CN 201810950037 A CN201810950037 A CN 201810950037A CN 109241756 A CN109241756 A CN 109241756A
- Authority
- CN
- China
- Prior art keywords
- test paper
- data
- block
- block chain
- target 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.)
- Granted
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000012360 testing method Methods 0.000 claims abstract description 177
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000003860 storage Methods 0.000 claims description 24
- 238000012545 processing Methods 0.000 claims description 9
- 238000013481 data capture Methods 0.000 claims description 4
- 238000013500 data storage Methods 0.000 claims description 3
- 238000004519 manufacturing process Methods 0.000 claims description 3
- 210000000352 storage cell Anatomy 0.000 claims description 2
- 230000032696 parturition Effects 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 15
- 238000005516 engineering process Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 230000007246 mechanism Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000002427 irreversible effect Effects 0.000 description 2
- 238000001604 Rao's score test Methods 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011017 operating method Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
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)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Strategic Management (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Bioethics (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- General Engineering & Computer Science (AREA)
- Tourism & Hospitality (AREA)
- Economics (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of data processing method based on block chain, system, server and medium, method includes: the first public key and the first private key that pairing is generated based on rivest, shamir, adelman;It is encrypted according to answering information data of first private key to examinee, generates test paper data;According to the block head characteristic value of previous block in test paper data and target block chain, the test paper block on target block chain is generated, test paper data are present in target block chain in the form of block of answering the questions in a test paper;Test paper block is read, test paper data are obtained;Test paper data are decrypted according to the first public key, generate answering information data;The score after reading and making comments to answer information data is obtained, target block chain is written into score.Test paper data, score in deposit target block chain avoid the situation being modified, be replaced etc..It may be by the first public key when going over examination papers and thering is doubt to need to verify score and check test paper, ensure that the open and clear of examination.
Description
Technical field
The present invention relates to Internet communication technology fields, more particularly to the data processing method based on block chain, system, clothes
Business device and medium.
Background technique
Examination as a kind of stringent know-how identification of means, by examination can check examinee learning ability and its
Its ability.The people that examination allows a group to possess different educational resource completes a identical test paper within the regular hour.However it examines
The meaning of examination is not limited thereto, and examination, which can be, carries out comprehensive examination to a people for a target.Examination is in fact
The people from different society status in society can be allowed to possess the chance for changing oneself.
With the development of science and technology, computer and Internet technology are also increasingly developed, at present in various examinations, computer
Using also more and more extensive, from examinee's registration, examinee information verification, admission card for entrance examination is generated, to carrying out Hands-On test or examined
Data transmission is tried, there are also achievement granting etc. is carried out after taking an examination, these processes may all use computer and Internet technology auxiliary
It carries out.Although these facilitate test tissue to a certain extent person, examinee and the person of going over examination papers, related examinee's data in storage and
Very big insecurity is still had in transmission, this is easy to be used by people, and causes paper to be tampered, paper is exchanged, goed over examination papers
As a result the case where cannot effectively being corrected when wrong;Whole process and opaque simultaneously, this can seriously affect the public affairs of examination
Positivity.
Summary of the invention
It applies to solve the prior art in related examinee's data insecurity present in storing and transmitting, underground
The problems such as transparent, the present invention provides a kind of data processing method based on block chain, system, server and media:
In a first aspect, the present invention provides a kind of data processing methods based on block chain, which comprises
The first public key and the first private key of pairing are generated based on rivest, shamir, adelman;
It is encrypted according to answering information data of first private key to examinee, generates test paper data;
According to the block head characteristic value of previous block in the test paper data and target block chain, the target area is generated
Test paper block on block chain, the test paper data are present in the target block chain in the form of the test paper block;
The test paper block is read, the test paper data are obtained;
The test paper data are decrypted according to first public key, generate the answering information data;
The score after reading and making comments to the answering information data is obtained, the target block chain is written into the score.
Second aspect provides a kind of data processing system based on block chain, the system comprises:
Key production module: for generating the first public key and the first private key of pairing based on rivest, shamir, adelman;
Encrypting module: for encrypting according to answering information data of first private key to examinee, test paper number is generated
According to;
Test paper block generation module: for the block head according to previous block in the test paper data and target block chain
Characteristic value, generates the test paper block on the target block chain, and the test paper data are present in the form of the test paper block
In the target block chain;
Test paper block read module: for reading the test paper block, the test paper data are obtained;
Deciphering module: for the test paper data to be decrypted according to first public key, the answering information is generated
Data;
Block chain writing module: for obtaining the score after reading and making comments to the answering information data, by the score
The target block chain is written.
The third aspect provides a kind of server, and the server includes processor and memory, deposits in the memory
Contain at least one instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of journey
Sequence, the code set or instruction set loaded by the processor and executed with realize as described in relation to the first aspect based on block chain
Data processing method.
Fourth aspect provides a kind of computer readable storage medium, and at least one finger is stored in the storage medium
Enable, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or
Instruction set is loaded by processor and is executed to realize the data processing method based on block chain as described in relation to the first aspect.
Data processing method based on block chain, system, server and medium provided by the invention have following technology effect
Fruit:
The present invention provides one to realize the just environment of taking an examination, and generates the first private key to examining using rivest, shamir, adelman
Raw answering information data are encrypted, and the test paper data of generation are written target block chain, block chain have it is anti-tamper, can chase after
The characteristics of tracing back, the test paper data being stored in target block chain avoid the situation being modified, be replaced etc..Further according to the first public key
Test paper data are decrypted, are reduced to answering information data with for reading and making comments, and the score write-in target block after reading and making comments
Chain, be between key and a test paper data it is one-to-one, can benefit when going over examination papers and thering is doubt to need to verify score
Test paper is checked with the first public key, ensure that the open and clear of examination.Score is also written to target block chain, such examination result energy
It is enough not modified, replaces.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology and advantage, below will be to implementation
Example or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, the accompanying drawings in the following description is only
It is only some embodiments of the present invention, for those of ordinary skill in the art, without creative efforts,
It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is a kind of schematic diagram of application environment provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of data processing method based on block chain provided in an embodiment of the present invention;
Fig. 3 is a kind of process signal of the test paper block provided in an embodiment of the present invention generated on the target block chain
Figure;
Fig. 4 be it is provided in an embodiment of the present invention encrypted according to answering information data of first private key to examinee,
Generate a kind of flow diagram of test paper data;
Fig. 5 is the score after the answering information data are read and made comments in acquisition provided in an embodiment of the present invention, will be described
A kind of flow diagram of the target block chain is written in score;
Fig. 6 is a kind of composition block diagram of data processing system based on block chain provided in an embodiment of the present invention;
Fig. 7 is a kind of composition block diagram of test paper block generation module provided in an embodiment of the present invention;
Fig. 8 is a kind of composition block diagram of encrypting module provided in an embodiment of the present invention;
Fig. 9 is a kind of composition block diagram of block chain writing module provided in an embodiment of the present invention;
Figure 10 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without making creative work it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that term " includes " and " tool in description and claims of this specification and above-mentioned attached drawing
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or server those of are not necessarily limited to be clearly listed step or unit, but may include not having
Other step or units being clearly listed or intrinsic for these process, methods, product or equipment.
Before to the embodiment of the present invention carrying out that explanation is explained in detail, first to the present embodiments relate to some names arrived
Word is explained.
Block chain technology is derived from bit coin technology, is the Floor layer Technology of bit coin.Block chain, which refers to a string, uses password
The associated block generated of method.Wherein, data of the data of each block storage with the storage of previous block in block chain
There are associations.It is based on this, so can not practise fraud by distorting the data on block, it can be ensured that on any block
Data be open and clear, it is ensured that the safety of data.Block chain has the distributed data collection side of decentralization
The characteristic that formula and data cannot be deleted and distort.Block chain can be understood as a distributed data record account book.So:
Transaction (transaction): once to the operation of account book, lead to the primary change of account book state, such as addition one
Item is transferred accounts record.
Block (block): All Activity and state outcome in record a period of time are to the primary total of current account book state
Know.Block chain organizes organization data as unit of block, and block is essentially a kind of data structure.Wherein, each block is by block head
It is formed with block main body.Block main body is merely responsible for the input data in record a period of time, is referred to as in embodiments of the present invention
Test paper data, data of going over examination papers, and most of function of block chain is realized by block head.The block of first generation in block chain
As wound generation block, all blocks generated later are corresponding with father's block.For example, for current block, before
One block is just his father's block, and itself father's block as latter block.
Chain (Chian): being connected in series by block according to order of occurrence, is the log recording of entire account book state change.
Referring to Fig. 1, Fig. 1 is a kind of schematic diagram of application environment provided in an embodiment of the present invention, as shown in Figure 1, this is answered
With in environment, answering information data are encrypted by private key, block chain are written in encrypted test paper, further according to public key to adding
Test paper after close is decrypted, and is reduced to answering information data with for reading and making comments, and by the score after reading and making comments and correct option
Block chain is written.It should be noted that Fig. 1 is only a kind of example.
Specifically, can also have some other examinee's data, examinee's number together with encrypted test paper write-in block chain
According to including that such as this part is answered the questions in a test paper the information such as name, admission card for entrance examination number of corresponding examinee.
Meanwhile correct option is generally only a, can also be disclosed using other modes, correct option can not have to and obtain
Divide and block chain is written together.If can be incited somebody to action but in one examinee of a correct option correspondence, the examination for corresponding to a part of examinee
Block chain is written in score and correct option together.
It is introduced below the present invention is based on the data processing method of block chain, Fig. 2 is a kind of base provided in an embodiment of the present invention
In the flow diagram of the data processing method of block chain, present description provides the method behaviour as described in embodiment or flow chart
Make step, but based on routine or may include more or less operating procedure without creative labor.It is arranged in embodiment
The step of act, sequence was only one of numerous step execution sequence mode, does not represent and unique executes sequence.In practice
System or server product when executing, can execute or parallel execute according to embodiment or method shown in the drawings sequence
(such as environment of parallel processor or multiple threads).It is specific as shown in Fig. 2, the method may include:
S201: the first public key and the first private key of pairing are generated based on rivest, shamir, adelman;
Rivest, shamir, adelman generate pairing the first public key and the first private key, carried out by the two keys encryption and
Decryption, the first public key are that open and the first private key is private.If encrypted with the first private key to data, only have
It could be decrypted with corresponding first public key, encryption and decryption use two different keys.Code key does not need both sides and decides through consultation,
Also the risk being leaked without the concern for the key of one side of encryption side or decryption side, the key generated based on rivest, shamir, adelman
The upper safety of application it is higher, be also more convenient.
In embodiments of the present invention, the rivest, shamir, adelman uses RSA cryptographic algorithms.Key in RSA cryptographic algorithms
Generation process can be such that
1) 2 (different) Big primes p and q are randomly selected, two number length are roughly equal;
2) n=pq and m=(p-1) * (q-1) is calculated;
3) integer e, 1 < e < m is randomly selected, and meets ged (e, m)=1;
4) d is calculated with Euclid's expansion algorithm, 1 < d < m meets e*d=1 (mod m);
5) generate key pair: d is the first public key, and (n, e) is the first private key.
In addition, RSA cryptographic algorithms can be RSA-1024, (length of the first public key and the first private key that generate at this time is
1024), RSA-2048 (length of the first public key and the first private key that generate at this time be 2048).
Certainly, the rivest, shamir, adelman can also be using ElGamal algorithm, ECC (elliptic curve encryption algorithm) etc..
S202: encrypting according to answering information data of first private key to examinee, generates test paper data;
Specifically, as shown in figure 4, Fig. 4 be it is provided in an embodiment of the present invention according to first private key to answer Information Number
According to being encrypted, a kind of flow diagram of test paper data is generated;Wherein:
S401: it when form of the examination using paper pen examination, obtains and is obtained after the examinee answers by taking pictures or scanning
Paper picture, according to the picture generate be-encrypted data;
Paper pen examination is as traditional Examination Form, and when paper pen examination is participated in examination, original paper (blank examination paper) is rendered as paper
, examinee is answered on original paper by pen, then the paper after examinee answers is that original paper is answered plus what examinee filled in
The answer information that case information, original paper and examinee fill in is integrated at this time.It is answered by taking pictures or scanning to obtain the examinee
The picture of paper afterwards generates be-encrypted data according to the picture.
S402: when the form that examination is examined using machine, the answer information that examinee fills in paper is obtained, according to the answer
Information generates be-encrypted data.
Machine is passed the examination, and original paper is presented on display screen, and examinee is by input equipments such as mouse, keyboards according to original examination
The content of volume carries out filling in for answer information, and answer information, which can be relatively independent of original paper, to be existed, and is believed according to the answer
Breath generates be-encrypted data.
It in embodiments of the present invention, not only include carrying out the encrypted be-encrypted data in data of answering the questions in a test paper, it can be with
Including examinee's name, admission card for entrance examination number etc..
In embodiments of the present invention, when being encrypted by RSA cryptographic algorithms to above-mentioned be-encrypted data (m), step
It is as follows:
1) the first private key (n, e) is obtained;
2) be-encrypted data is resolved into length less than log2The data grouping of n;
3) c=m is calculatedemod n;
4) ciphertext c is obtained.
S203: according to the block head characteristic value of previous block in the test paper data and target block chain, described in generation
Test paper block on target block chain, the test paper data are present in the target block chain in the form of the test paper block
In;
Target block chain is a linear chained list, only allows to add, does not allow to delete.Chained list is gone here and there by " block " one by one
Connection composition, latter block record Hash (Hash) value of its adjacent previous block.New data will be added, it is necessary to be put into one
In new block.And whether this block (and transaction in block) is legal, can quickly be examined by way of calculating cryptographic Hash
Out.Any maintenance node is owned by the record of whole blocks, and can propose a new legal block, however has to pass through
Certain common recognition mechanism reaches an agreement to the block of final choice.Wherein, the block head of previous block is special in target block chain
Value indicative can be its cryptographic Hash or other values for using irreversible Digital Signature Algorithm to obtain.Common recognition mechanism can be DPOS
(delegated Proof of Stake, authorization equity prove) mechanism, PBFT (Practical Byzantine Fault
Tolerance algorithm, Byzantine failure tolerance common recognition algorithm) mechanism etc..
Specifically, as shown in figure 3, Fig. 3 is the test paper area provided in an embodiment of the present invention generated on the target block chain
A kind of flow diagram of block;Wherein:
S301: the corresponding more parts of test paper data of multiple examinees are obtained;
Specifically, obtaining the corresponding more parts of test paper data of multiple examinees in preset time, such as same field examination knot
The examinee's that different examinations are handed in an examination paper within a certain hour in the test paper data of the examinee to hand in an examination paper in 30 minutes before beam, the same area answers
Roll up data etc.;Alternatively, obtaining the corresponding more parts of test paper data of multiple examinees for participating in same field examination.
S302: the more parts test paper data are stored in the test paper block;
Wherein, the more parts of test paper data arrange in a predetermined sequence, and arranging includes phase in the posterior test paper data
The characteristic value of the adjacent test paper data being arranged in front.
By block each in block chain using characteristic value series system, apply in single test paper block data of respectively answering the questions in a test paper
Storage on, improve the safety of data of respectively answering the questions in a test paper in test paper block.
In embodiments of the present invention, as shown in the table, the test paper data not only include the ciphertext of test paper, further include examinee
Name, admission card for entrance examination number, the timestamp for submitting this test paper data (Transaction), the length of this test paper data, this test paper data
Characteristic value.Wherein, the characteristic value of this test paper data can to it is previous test paper data characteristic value, submit this test paper data
(Transaction) length, examinee's name, admission card for entrance examination number and the ciphertext answered the questions in a test paper of timestamp, this test paper data use can not
The value that the Digital Signature Algorithm of backstepping is verified, this check value can be cryptographic Hash.When obtaining cryptographic Hash, use
Algorithm can be Secure Hash Algorithm 256 (SHA-256).
S204: reading the test paper block, obtains the test paper data;
Test paper data in test paper block realize a credible, reliable paper record system using the mechanism of block chain
System.After test paper deposit target block chain, it is difficult to be modified again, if answering wrong, rethinks and the answer in test paper is changed to correctly,
It is impossible.There are doubts to need for score when needing to read and make comments answer information data, or after to reading and making comments
When review, the test paper block can be read, gets the test paper data being not tampered with.
S205: the test paper data are decrypted according to first public key, generate the answering information data;
The answering information data of examinee are made into encryption using the first private key in pair-wise key and generate test paper data, or
Person generates the ciphertext of the test paper in test paper data.It is corresponding, it to test paper data or is answered using the first public key in pair-wise key
The ciphertext of volume is decrypted, the answering information data restored.Ciphertext based on every part of answering information data and test paper it is close
Key be all to (the first public key and the first private key) it is self-existent, cannot counterfeit.
Specifically, when form of the examination using paper pen examination, the answering information data restored be by taking pictures or
Scanning obtains the picture of the answering information data;When the form that examination is examined using machine, the answering information data that are restored
It is the answer information that examinee fills in paper.
In embodiments of the present invention, it is decrypted when by ciphertext of the RSA cryptographic algorithms to above-mentioned test paper data or test paper
When, steps are as follows:
1) the first public key d is obtained;
2) m=e is calculatedd(mod n)。
S206: obtaining the score after reading and making comments to the answering information data, and the target area is written in the score
Block chain.
Specifically, as shown in figure 5, Fig. 5 is that the answering information data are criticized in acquisition provided in an embodiment of the present invention
A kind of flow diagram of the target block chain is written in the score by the score after readding;Wherein:
S501: the data of going over examination papers based on the score are generated;
Every part of test paper has a corresponding score, and available more parts are answered the questions in a test paper corresponding multiple scores to generate accordingly
It gos over examination papers data.For example obtain and read and make comments more parts of obtained multiple scores of answering the questions in a test paper in preset time, alternatively, obtaining the more of same field examination
The corresponding multiple scores of part test paper.
In embodiments of the present invention, in data of going over examination papers not only include score, can also include examinee's name, admission card for entrance examination number with
And correct option etc..
S502: it according to the block head characteristic value of previous block in go over examination papers data and the target block chain, generates
Block of going over examination papers on the target block chain, the data of going over examination papers are present in the target block in the form of the block of going over examination papers
In chain.
In target block chain the block head characteristic value of previous block can be its cryptographic Hash or other using irreversible
The value that Digital Signature Algorithm obtains.Test paper block and block of going over examination papers all are blocks in target block chain, and test paper block is read preceding
Block is rolled up rear, test paper block and block of going over examination papers are not necessarily adjacent, other can be had by answering the questions in a test paper between block and block of going over examination papers
Block.Test paper block and block of going over examination papers can also be not present in same target block chain.
The protection that the data of going over examination papers in block of going over examination papers are tampered score not using the mechanism of block chain, examinee's
Test paper and test paper score all avoid the possibility modified, be replaced, be effectively reduced occur paper acted as fraudulent substitute for a person by people,
The possibility changed point.Meanwhile score after to reading and making comments can read the test paper block when need to check there are doubt
Data are verified with going over examination papers, and have further been contained to occur going over examination papers and fault or have been goed over examination papers and misplay point caused by corruption, beat high score etc.
Situation.
By the technical solution of above this specification embodiment publication as it can be seen that providing a realization in this specification embodiment
It takes an examination just environment, generates the first private key using rivest, shamir, adelman and the answering information data of examinee are encrypted, it will
The test paper data of generation are written target block chain, block chain have the characteristics that it is anti-tamper, retrospective, in deposit target block chain
Test paper data avoid the situation being modified, be replaced etc..Test paper data are decrypted further according to the first public key, are reduced to answer
Topic information data is with for reading and making comments, and the score write-in target block chain after reading and making comments, and is between key and a test paper data
Correspondingly, it may be by the first public key when going over examination papers and thering is doubt to need to verify score and check test paper, ensure that and examine
That tries is open and clear.Score is also written to target block chain, such examination result can be not modified, replace.When examinee feels
Examine very well, however when score is very low, since test paper (content is encryption) and score are disclosed, and can not distort, one
Looking into just can then verify that.
The embodiment of the present invention has also issued a kind of data processing system based on block chain, as shown in fig. 6, the system packet
It includes:
Key production module 61: for generating the first public key and the first private key of pairing based on rivest, shamir, adelman;Institute
Rivest, shamir, adelman is stated using RSA cryptographic algorithms.
Encrypting module 62: for encrypting according to answering information data of first private key to examinee, test paper is generated
Data;As shown in figure 8, the encrypting module 62 includes: paper pen examination encryption unit 621: for when examination is taken an examination using paper pen
Form when, obtain and obtain the picture of the paper after the examinee answers by taking pictures or scan, according to picture generation to
Encryption data;Machine examines encryption unit 622: when form for examining when examination using machine, obtaining the answer that examinee fills in paper
Information generates be-encrypted data according to the answer information.
Test paper block generation module 63: for the block according to previous block in the test paper data and target block chain
Head characteristic value, generates the test paper block on the target block chain, the test paper data exist in the form of the test paper block
In the target block chain;As shown in fig. 7, the test paper block generation module 63 includes: test paper data capture unit 631:
For obtaining the corresponding more parts of test paper data of multiple examinees;The test paper data capture unit 631 includes: to obtain setting
Unit: for obtaining the corresponding more parts of test paper data of multiple examinees in preset time;Same field examination is participated in alternatively, obtaining
The corresponding more parts of test paper data of multiple examinees.Test paper data storage cell 632: for the more parts of test paper data storages
In the test paper block;Wherein, the more parts of test paper data arrange in a predetermined sequence, arrange the posterior test paper data
In include the adjacent test paper data being arranged in front characteristic value.
Test paper block read module 64: for reading the test paper block, the test paper data are obtained;
Deciphering module 65: for the test paper data to be decrypted according to first public key, the answer letter is generated
Cease data;
Block chain writing module 66: for obtaining the score after reading and making comments to the answering information data, will be described
Divide write-in the target block chain.As shown in figure 9, the block chain writing module 66 includes: data generating unit 661 of going over examination papers:
For generating the data of going over examination papers based on the score;It gos over examination papers block generation unit 662: for data and the institute of going over examination papers according to
The block head characteristic value for stating previous block in target block chain generates the block of going over examination papers on the target block chain, described to go over examination papers
Data are present in the target block chain in the form of the block of going over examination papers.
It should be noted that the System and method for embodiment in the system embodiment is based on same inventive concept.
The embodiment of the present invention has issued a kind of server, which includes processor and memory, deposits in the memory
At least one instruction, at least one section of program, code set or instruction set are contained, which at least one section of program, is somebody's turn to do
Code set or instruction set are loaded as the processor and are executed to realize that one kind as provided by above method embodiment is based on block
The data processing method of chain.
Memory can be used for storing software program and module, and processor is stored in the software program of memory by operation
And module, thereby executing various function application and data processing.Memory can mainly include storing program area and storage number
According to area, wherein storing program area can application program needed for storage program area, function etc.;Storage data area can store basis
The equipment uses created data etc..In addition, memory may include high-speed random access memory, can also include
Nonvolatile memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Phase
Ying Di, memory can also include Memory Controller, to provide access of the processor to memory.
The embodiment of the invention also provides a kind of structural schematic diagrams of server, referring to Fig. 10, the server 1000 is used
In a kind of data processing method based on block chain for implementing to provide in above-described embodiment.The server 1000 can be because of configuration or property
Energy is different and generates bigger difference, may include one or more central processing units (Central Processing
Units, CPU) 1010 (for example, one or more processors) and memory 1030, one or more storage applications
The storage medium 1020 (such as one or more mass memory units) of program 1023 or data 1022.Wherein, memory
1030 and storage medium 1020 can be of short duration storage or persistent storage.The program for being stored in storage medium 1020 may include one
A or more than one module, each module may include to the series of instructions operation in server.Further, centre
Reason device 1010 can be set to communicate with storage medium 1020, execute on server 1000 a series of in storage medium 1020
Instruction operation.Server 1000 can also include one or more power supplys 1060, one or more are wired or wireless
Network interface 1050, one or more input/output interfaces 1040, and/or, one or more operating systems 1021,
Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The embodiments of the present invention also provide a kind of storage medium, the storage medium be may be disposed among server to protect
It deposits for realizing a kind of relevant at least one instruction of data processing method based on block chain in embodiment of the method, at least one section
Program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction set are by the processor
Load and execute a kind of data processing method based on block chain to realize above method embodiment offer.
Optionally, in the present embodiment, above-mentioned storage medium can be located in multiple network servers of computer network
At least one network server.Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, only
Read memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), movement
The various media that can store program code such as hard disk, magnetic or disk.
The data processing method based on block chain, system, server and the medium provided by aforementioned present invention, the present invention mention
It has supplied one to realize just environment of taking an examination, has generated the first private key to the answering information data of examinee using rivest, shamir, adelman
It is encrypted, target block chain is written into the test paper data of generation, block chain has the characteristics that anti-tamper, retrospective, deposit mesh
Test paper data in mark block chain avoid the situation being modified, be replaced etc..Test paper data are carried out further according to the first public key
Decryption, is reduced to answering information data with for reading and making comments, and the score write-in target block chain after reading and making comments, key are answered with portion
Be between volume data it is one-to-one, may be by the first public key when going over examination papers and thering is doubt to need to verify score and check to answer
Volume, ensure that the open and clear of examination.Score is also written to target block chain, such examination result can be not modified, replace.
It should be understood that embodiments of the present invention sequencing is for illustration only, do not represent the advantages or disadvantages of the embodiments.
And above-mentioned this specification specific embodiment is described.Other embodiments are within the scope of the appended claims.One
In a little situations, the movement recorded in detail in the claims or step can be executed according to the sequence being different from embodiment and
Still desired result may be implemented.In addition, process depicted in the drawing not necessarily requires the particular order shown or company
Continuous sequence is just able to achieve desired result.In some embodiments, multitasking and parallel processing it is also possible or
It may be advantageous.
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 and
For server example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to side
The part of method embodiment illustrates.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (14)
1. a kind of data processing method based on block chain, which is characterized in that the described method includes:
The first public key and the first private key of pairing are generated based on rivest, shamir, adelman;
It is encrypted according to answering information data of first private key to examinee, generates test paper data;
According to the block head characteristic value of previous block in the test paper data and target block chain, the target block chain is generated
On test paper block, the test paper data are present in the target block chain in the form of the test paper block;
The test paper block is read, the test paper data are obtained;
The test paper data are decrypted according to first public key, generate the answering information data;
The score after reading and making comments to the answering information data is obtained, the target block chain is written into the score.
2. the method according to claim 1, wherein described according in the test paper data and target block chain
The block head characteristic value of previous block generates the test paper block on the target block chain, and the test paper data are with the test paper
The form of block is present in the step in the target block chain, comprising:
Obtain the corresponding more parts of test paper data of multiple examinees;
The more parts of test paper data are stored in the test paper block;
Wherein, the more parts of test paper data arrange in a predetermined sequence, and it includes adjacent for arranging in the posterior test paper data
The characteristic value for the test paper data being arranged in front.
3. according to the method described in claim 2, it is characterized in that, described obtain the corresponding more parts of test paper numbers of multiple examinees
According to the step of, comprising:
Obtain the corresponding more parts of test paper data of multiple examinees in preset time;The more of same field examination are participated in alternatively, obtaining
The corresponding more parts of test paper data of a examinee.
4. the method according to claim 1, wherein it is described according to first private key to the answering information of examinee
The step of data are encrypted, and test paper data are generated, comprising:
When form of the examination using paper pen examination, obtains and obtains the picture of the paper after examinee answers by taking pictures or scanning,
Be-encrypted data is generated according to the picture;
When the form that examination is examined using machine, the answer information that examinee fills in paper is obtained, is generated according to the answer information
Be-encrypted data.
5. the method according to claim 1, wherein after the answering information data are read and made comments in the acquisition
Score, by the score be written the target block chain the step of, comprising:
Generate the data of going over examination papers based on the score;
According to the block head characteristic value of previous block in go over examination papers data and the target block chain, the target area is generated
Block of going over examination papers on block chain, the data of going over examination papers are present in the target block chain in the form of the block of going over examination papers.
6. the method according to claim 1, wherein the rivest, shamir, adelman uses RSA cryptographic algorithms.
7. a kind of data processing system based on block chain, which is characterized in that the system comprises:
Key production module: for generating the first public key and the first private key of pairing based on rivest, shamir, adelman;
Encrypting module: for encrypting according to answering information data of first private key to examinee, test paper data are generated;
Test paper block generation module: for the block head feature according to previous block in the test paper data and target block chain
Value, generates the test paper block on the target block chain, and the test paper data are present in described in the form of the test paper block
In target block chain;
Test paper block read module: for reading the test paper block, the test paper data are obtained;
Deciphering module: for the test paper data to be decrypted according to first public key, the answering information data are generated;
Block chain writing module: for obtaining the score after reading and making comments to the answering information data, the score is written
The target block chain.
8. system according to claim 7, which is characterized in that the test paper block generation module includes:
Test paper data capture unit: for obtaining the corresponding more parts of test paper data of multiple examinees;
Test paper data storage cell: it is stored in the test paper block for the more parts of test paper data;
Wherein, the more parts of test paper data arrange in a predetermined sequence, and it includes adjacent for arranging in the posterior test paper data
The characteristic value for the test paper data being arranged in front.
9. system according to claim 8, which is characterized in that the test paper data capture unit includes:
Obtain setting subelement: for obtaining the corresponding more parts of test paper data of multiple examinees in preset time;Alternatively, obtaining
Participate in the corresponding more parts of test paper data of multiple examinees of same field examination.
10. system according to claim 7, which is characterized in that the encrypting module includes:
Paper pen examination encryption unit: for obtaining to pass through to take pictures or scan and be examined when form of the examination using paper pen examination
The picture for giving birth to the paper after answering generates be-encrypted data according to the picture;
Machine examines encryption unit: when form for examining when examination using machine, the answer information that examinee fills in paper is obtained, according to
The answer information generates be-encrypted data.
11. system according to claim 7, which is characterized in that the block chain writing module includes:
It gos over examination papers data generating unit: for generating the data of going over examination papers based on the score;
It gos over examination papers block generation unit: the block head for previous block in go over examination papers according to data and the target block chain
Characteristic value, generates the block of going over examination papers on the target block chain, and the data of going over examination papers are present in the form of the block of going over examination papers
In the target block chain.
12. system according to claim 7, which is characterized in that the rivest, shamir, adelman uses RSA cryptographic algorithms.
13. a kind of server, which is characterized in that the server includes processor and memory, is stored in the memory
At least one instruction, at least one section of program, code set or instruction set, at least one instruction, at least one section of program, institute
Code set or instruction set is stated to be loaded by the processor and executed to realize that one kind as described in claim 1 to 6 is any is based on
The data processing method of block chain.
14. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium
Few one section of program, code set or instruction set, at least one instruction, at least one section of program, the code set or the instruction
Collection is loaded by processor and is executed to realize such as a kind of data processing based on block chain as described in claim 1 to 6 is any
Method.
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 true CN109241756A (en) | 2019-01-18 |
CN109241756B 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) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951441A (en) * | 2019-01-23 | 2019-06-28 | 深圳壹账通智能科技有限公司 | Exam information evaluation method, device, equipment and storage medium based on block chain |
CN109993250A (en) * | 2019-04-03 | 2019-07-09 | 大陆投资(中国)有限公司 | Elevator maintenance management system |
CN110008212A (en) * | 2019-02-26 | 2019-07-12 | 平安科技(深圳)有限公司 | Examinee's Data Input method, apparatus, system 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 |
CN110210859A (en) * | 2019-06-11 | 2019-09-06 | 北京艾摩瑞策科技有限公司 | Method of investigation and study and its equipment on a kind of block chain |
CN110232594A (en) * | 2019-06-11 | 2019-09-13 | 北京艾摩瑞策科技有限公司 | A kind of method of investigation and study realized by block chain and its equipment |
CN110414254A (en) * | 2019-08-07 | 2019-11-05 | 北京艾摩瑞策科技有限公司 | The cochain method and device thereof of user's investigation associated data |
CN110532323A (en) * | 2019-09-02 | 2019-12-03 | 腾讯科技(深圳)有限公司 | Pupilage information processing method, device, electronic equipment and storage medium in block chain network |
CN110852648A (en) * | 2019-11-19 | 2020-02-28 | 腾讯科技(深圳)有限公司 | Data processing method and device and computer storage medium |
CN112541035A (en) * | 2020-09-30 | 2021-03-23 | 新大陆数字技术股份有限公司 | Block chain based information verification method, device, equipment and readable storage medium |
CN112700244A (en) * | 2020-12-30 | 2021-04-23 | 广东德诚大数据科技有限公司 | 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 (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8737606B2 (en) * | 2006-03-23 | 2014-05-27 | Ip Reservoir, Llc | Method and system for high throughput blockwise independent encryption/decryption |
CN106612285A (en) * | 2016-12-30 | 2017-05-03 | Tcl集团股份有限公司 | Distributed cloud data management method and system based on peer-to-peer network |
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 |
CN108259169A (en) * | 2018-01-09 | 2018-07-06 | 北京大学深圳研究生院 | A kind of file security sharing method and system based on block chain cloud storage |
CN108322451A (en) * | 2018-01-12 | 2018-07-24 | 深圳壹账通智能科技有限公司 | Data processing method, device, computer equipment and storage medium |
-
2018
- 2018-08-20 CN CN201810950037.9A patent/CN109241756B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8737606B2 (en) * | 2006-03-23 | 2014-05-27 | Ip Reservoir, Llc | Method and system for high throughput blockwise independent encryption/decryption |
CN108121498A (en) * | 2016-11-28 | 2018-06-05 | 中国移动通信集团公司 | The method and apparatus that a kind of learning records based on block chain technology preserve |
CN106612285A (en) * | 2016-12-30 | 2017-05-03 | Tcl集团股份有限公司 | Distributed cloud data management method and system based on peer-to-peer network |
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 |
CN108259169A (en) * | 2018-01-09 | 2018-07-06 | 北京大学深圳研究生院 | A kind of file security sharing method and system based on block chain cloud storage |
CN108322451A (en) * | 2018-01-12 | 2018-07-24 | 深圳壹账通智能科技有限公司 | Data processing method, device, computer equipment and storage medium |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951441A (en) * | 2019-01-23 | 2019-06-28 | 深圳壹账通智能科技有限公司 | Exam information evaluation method, device, equipment and storage medium based on block chain |
CN109951441B (en) * | 2019-01-23 | 2022-11-29 | 深圳壹账通智能科技有限公司 | Examination information evaluation method, device, equipment and storage medium based on block chain |
CN110008212A (en) * | 2019-02-26 | 2019-07-12 | 平安科技(深圳)有限公司 | Examinee's Data Input method, apparatus, system and computer storage medium |
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 |
CN110232594B (en) * | 2019-06-11 | 2022-06-28 | 北京瑞策科技有限公司 | Investigation method realized through block chain and equipment thereof |
CN110210859A (en) * | 2019-06-11 | 2019-09-06 | 北京艾摩瑞策科技有限公司 | Method of investigation and study and its equipment on a kind of block chain |
CN110232594A (en) * | 2019-06-11 | 2019-09-13 | 北京艾摩瑞策科技有限公司 | A kind of method of investigation and study realized by block chain and its equipment |
CN110414254A (en) * | 2019-08-07 | 2019-11-05 | 北京艾摩瑞策科技有限公司 | The cochain method and device thereof of user's investigation associated data |
CN110532323A (en) * | 2019-09-02 | 2019-12-03 | 腾讯科技(深圳)有限公司 | Pupilage information processing method, device, electronic equipment and storage medium in block chain network |
CN110852648A (en) * | 2019-11-19 | 2020-02-28 | 腾讯科技(深圳)有限公司 | Data processing method and device and computer storage medium |
CN110852648B (en) * | 2019-11-19 | 2024-05-14 | 腾讯科技(深圳)有限公司 | Data processing method and device and computer storage medium |
CN112541035A (en) * | 2020-09-30 | 2021-03-23 | 新大陆数字技术股份有限公司 | Block chain based information verification method, device, equipment and readable storage medium |
CN112541035B (en) * | 2020-09-30 | 2023-08-18 | 新大陆数字技术股份有限公司 | Block chain-based information verification method, device, equipment and readable storage medium |
CN112700244A (en) * | 2020-12-30 | 2021-04-23 | 广东德诚大数据科技有限公司 | Information storage system, method and server based on block chain |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN109241756B (en) | 2020-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109241756A (en) | Data processing method, system, server and medium based on block chain | |
Smith | The blockchain litmus test | |
Merritt | Cryptographic protocols | |
Adida | Advances in cryptographic voting systems | |
Abdulhamid et al. | The Design and Development of Real-Time E-Voting System in Nigeria with Emphasis on Security and Result Veracity | |
CN111694895B (en) | Block chain remote data auditing method and system | |
CN109858911A (en) | Qualification verification method, device, system, equipment and readable storage medium storing program for executing | |
CN114239031A (en) | Processing method and processing device for user privacy data | |
Karthika et al. | Secure online examination system for e-learning | |
Kuykendall et al. | Cryptography for# metoo | |
Pereira | Internet voting with Helios | |
Veeraragavan et al. | Securing federated gans: Enabling synthetic data generation for health registry consortiums | |
Lu et al. | Self-tallying e-voting with public traceability based on blockchain | |
KR20200085204A (en) | Verifiable Electronic Voting System | |
Sadayapillai et al. | A blockchain-based framework for transparent, secure, and verifiable online examination system | |
Chaum et al. | Secret ballot elections with unconditional integrity | |
Kassaras et al. | Zkps: Does this make the cut? recent advances and success of zero-knowledge security protocols | |
Bella et al. | Trustworthy exams without trusted parties | |
CN110995444A (en) | Election method based on block chain | |
Alsadi et al. | Verify my vote: voter experience | |
Chaum et al. | Paperless independently-verifiable voting | |
Rastogi et al. | An Exploration on Verification of Educational Assets Through Blockchain Technology | |
KR102314035B1 (en) | Electronic voting system and method thereof | |
Scheffler | Decrypting legal dilemmas | |
Stapleton | Security without Obscurity: Frequently Asked Questions (FAQ) |
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 |