A blockchain-based educational qualification witnessing method

Through the blockchain-based educational qualification witness method, the data island and security issues in traditional student data management are solved. The characteristics of the blockchain and IPFS systems are used to achieve safe storage and convenient sharing of data, reducing system overhead. Improved efficiency.

CN115021914BActive Publication Date: 2024-09-06GUANGXI NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210670311.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-14
Publication Date
2024-09-06
Estimated Expiration
2042-06-14

AI Technical Summary

Technical Problem

Traditional student data management has the problem of data islands, inconvenient data circulation and sharing, and lack of safe and effective access control, resulting in student privacy risks and data security issues.

Method used

Adopt a blockchain-based educational qualification witness method, take advantage of the traceability, non-tamperability, and transparency characteristics of the blockchain, upload data to the IPFS system in blocks, use the ECC asymmetric encryption algorithm to encrypt, and establish access control Whitelist, uses CPBFS algorithm to control the number of consensus nodes, integrates student information into the blockchain platform, and improves data circulation and security.

Benefits of technology

It improves the security and circulation convenience of data, reduces system operation overhead, improves system efficiency, makes the protection of student information more reliable, and makes access control more stringent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115021914B
    Figure CN115021914B
Patent Text Reader

Abstract

The present invention relates to the field of educational blockchain technology, and specifically to an educational qualification witnessing method based on blockchain. By integrating the student information of all schools into a blockchain platform, the traceability, non-tamperability, transparency and other characteristics of blockchain technology are utilized to change the traditional way of schools maintaining their own student information independently, improve the convenience of data circulation and data sharing, and also improve the security of data; at the same time, the privacy of students is protected through an access control whitelist, and the CPBFS algorithm is used to control the number of consensus nodes during the access process, so that the number of consensus nodes is less than 1 / 3 of that of the traditional method, thereby increasing the consensus efficiency by about 9 times, greatly reducing the system operation overhead and improving the system efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of educational blockchain, and in particular to an educational qualification witnessing method based on blockchain. Background Art

[0002] At present, traditional student data management technology is maintained by each school independently, resulting in serious data island problems, making data circulation and sharing extremely inconvenient. At the same time, due to the lack of secure and effective access control, there are major risks to students' privacy security. In addition, traditional student data management generally lacks the use of encryption technology, and student data security issues are becoming increasingly apparent. Summary of the invention

[0003] The purpose of the present invention is to provide an educational qualification witnessing method based on blockchain, which aims to utilize the traceability, immutability, transparency and other characteristics of blockchain technology to protect the data security of student information, while improving the efficiency of the traditional blockchain underlying consensus algorithm, reducing system operating overhead and improving system efficiency.

[0004] To achieve the above purpose, the present invention provides a blockchain-based educational qualification witnessing method, comprising the following steps:

[0005] Step 1: The school collects the student’s educational qualification documents;

[0006] Step 2: The school divides the educational qualification certification materials into blocks and uploads them to the IPFS system for storage;

[0007] Step 3: Encrypt using the ECC asymmetric encryption algorithm;

[0008] Step 4: The school establishes an access control whitelist;

[0009] Step 5: The visitor submits an application and after review, can access the student's educational qualification certificate information.

[0010] The process of the school dividing the educational qualification certification materials into blocks and uploading them to the IPFS system for storage includes the following steps:

[0011] The school divides the data collected in step 1 into several parts according to its own needs. For the convenience of description, the divided data are represented by sets:

[0012] Data={part1, part2, part3...partk}(k∈N*)

[0013] Where Data is a data set, part1 represents the first data, part2 represents the second data, and k is the number of data copies;

[0014] Upload the data divided in the previous step to the IPFS system in sequence, obtain the access index, take the i-th data to upload, that is, upload the data parti (0<i≤k), and get the access index Add_parti (i∈N*, i≤k), which is represented by a set:

[0015] Add_Data=

[0016] {Add_part1, Add_part2, Add_part3...Add_partk}(k∈N*).

[0017] The process of using the ECC asymmetric encryption algorithm to perform encryption is specifically to use the ECC asymmetric encryption algorithm to encrypt the access index.

[0018] Among them, visitors are only eligible to access the educational qualification certification materials of the corresponding students if they are added to the access control whitelist.

[0019] Among them, the process of a visitor accessing a student's educational qualification certificate will generate a record, which will be broadcast to the blockchain and packaged into the blockchain by the nodes of the blockchain system.

[0020] Among them, the blockchain-based educational qualification witnessing method selects good nodes as consensus nodes through a consensus node selection algorithm, and uses the CPBFS algorithm to control the number of consensus nodes.

[0021] The process of using the CPBFS algorithm to control the number of consensus nodes includes the following steps:

[0022] Collect the number of student data uploaded by the school node and calculate the upload rate UR;

[0023] Calculate the SNP score of each school node based on the consensus node selection algorithm;

[0024] Sort the SNP values ​​from large to small, and select the top one-third of the nodes with the highest scores as the consensus node group.

[0025] The present invention provides an educational qualification witnessing method based on blockchain. By integrating the student information of all schools into a blockchain platform, the traceability, immutability, transparency and other characteristics of blockchain technology are utilized to change the traditional way of schools maintaining their own student information independently, thereby improving the convenience of data circulation and data sharing, and also improving data security. At the same time, the privacy of students is protected through an access control whitelist, and the CPBFS algorithm is used to control the number of consensus nodes during the access process, so that the number of consensus nodes is less than 1 / 3 of that of the traditional method, thereby reducing the system operation overhead and improving the system efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 It is a flowchart of a blockchain-based educational qualification witnessing method of the present invention.

[0028] Figure 2 It is a framework diagram of the school data encryption upload model of the present invention.

[0029] Figure 3 This is the flow chart of data visitor accessing school data of the present invention. DETAILED DESCRIPTION

[0030] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0031] See also Figure 1 The present invention proposes a blockchain-based educational qualification witnessing method, comprising the following steps:

[0032] S1: The school collects students’ educational qualification certificates;

[0033] S2: The school divides the educational qualification certification materials into blocks and uploads them to the IPFS system for storage;

[0034] S3: Encrypt using the ECC asymmetric encryption algorithm;

[0035] S4: The school establishes an access control whitelist;

[0036] S5: The visitor submits an application and after review can access the student's educational qualification certificate information.

[0037] The following is a further explanation of the specific execution steps. Figure 2 and Figure 3 , Figure 2 Upload the model framework diagram for school data encryption, Figure 3 Access school data flow diagram for data visitors:

[0038] Step S1, the school collects the student's educational qualification certification information;

[0039] Specifically, the school collects information on the student's educational qualifications, such as certificates, awards, and subject grades, obtained during their educational experience, and waits for further processing after review;

[0040] Step S2: The school divides the educational qualification certification materials into blocks and uploads them to the IPFS system for storage;

[0041] Specifically, the school divides the data collected in step S1 into blocks and uploads them to the system storage separately. It is a peer-to-peer distributed file system with high storage security and fast access speed. It is the most commonly used distributed file system.

[0042] Step S21: The school divides the data collected in step S1 into several parts according to its own needs. For the convenience of description, the divided data are represented by sets:

[0043] Data={part1, part2, part3...partk}(k∈N * )

[0044] Where Data is a data set, part1 represents the first data, part2 represents the second data, k is the number of data copies, and so on;

[0045] Step S22: The school uploads the data divided in the previous step to the IPFS system in sequence and obtains the access index, through which the uploaded data can be viewed. Take the i-th data upload, that is, the uploaded data parti (0<i≤k), and obtain the access index Add_parti (i∈N * , i≤k), expressed as a set:

[0046] Add_Data={Add_part1, Add_part2, Add_part3...Add_partk}(k∈N * ).

[0047] Step S3, encrypt using ECC asymmetric encryption algorithm;

[0048] Specifically, the access index in step S22 is encrypted using an ECC asymmetric encryption algorithm. The security of the asymmetric encryption algorithm is very high and it is very difficult to break it with existing technology. Therefore, the use of an asymmetric encryption algorithm in this step greatly improves the system data security.

[0049] Step S31: The school selects an ECC elliptic curve, denoted as EC(x, y), the base point is G, the finite field is Fp, and the number of points in the finite field Fp is p. At the same time, the operation rules in Fp are defined as follows:

[0050] (1) The addition rule (a+b) of Fp is (a+b)≡c(mod p)

[0051] (2) The multiplication rule (a*b) of Fp is (a*b)≡c(mod p)

[0052] (3) The unit element of Fp is 1 and the zero element is 0

[0053] Step S32: The school performs ECC asymmetric encryption on the access index in step 2.2, using Add_parti(i∈N * , i≤k) as an example:

[0054] (1) The school selects k random numbers a1, a2, a3…a k ∈Fp, calculate θ1=a1*G, θ2=

[0055] a2*G、θ3=a3*G...θ k =a k *G, so the data encryption private key sk=(a1,a2,a3...a k )Data encryption public key pk = (θ1, θ2, θ3...θ k )

[0056] (2) Select a random number r (r ∈ Fp) and calculate the access index Add_parti (i ∈

[0057] R * , i≤K) of asymmetric encrypted ciphertext (C1, C2):

[0058] C1=Add_parti+r*pk

[0059] C2=r*G

[0060] Step S4: The school establishes an access control whitelist;

[0061] Specifically, the school establishes an access control whitelist. Visitors who apply to access student information must first apply to the educational institution. After review, the school adds the visitor to the whitelist, and the visitor is thus eligible to access the school's student data.

[0062] Step S5: The visitor submits an application and after review, can access the student's educational qualification certificate information.

[0063] Specifically, this step is the process of data access by the data accessor. The data accessor initiates an access application to the school, and after passing the review, he or she can access the student's education qualification certificate data.

[0064] Step S51: The data accessor applies for access qualification. After being approved by the school, the accessor is added to the access control whitelist;

[0065] Step S52: The school sends the ciphertext (C1, C2), data encryption private key sk, elliptic curve base point G, and random number r of the data that the visitor needs to view to the other party;

[0066] Step S53: The visitor uses the data in step 5.2 to decrypt the access index of the data:

[0067] Add_parti=C1-sk*C2(0<i≤k)

[0068] The plaintext data can be accessed through the index Add_parti;

[0069] Step S54: The school generates a record of the visitor's access to data and broadcasts the record to the blockchain, which is then packaged into the blockchain by the nodes of the blockchain system. The purpose of this step is to use the blockchain to record the visitor's data query process. If the visitor has malicious behavior such as tampering with data or leaking data, the record can be used as evidence for accountability.

[0070] Furthermore, the present invention also improves the underlying consensus algorithm PBFS of the blockchain. The traditional PBFS algorithm has the following two problems: first, the block generation nodes are randomly selected, so that malicious nodes and good nodes have the same probability of becoming block generation nodes, which is not conducive to the security of the system; second, the time complexity of the PBFS consensus algorithm is O(n 2 )(n is the number of all nodes in the system). When there are many system nodes, the time overhead is very large. In view of the above problems, the present invention proposes a consensus improvement algorithm CPBFS, which selects good nodes as consensus nodes through a consensus node selection algorithm, effectively reducing the probability of malicious nodes being elected. At the same time, the CPBFS algorithm strictly controls the number of consensus nodes, making the number of consensus nodes less than 1 / 3 of the traditional method, thereby improving the efficiency by more than 9 times.

[0071] Step S61: Collect the number of student data uploaded by the school node and calculate the upload rate UR (Upload Rate). The larger the upload rate, the more data the school stores in the blockchain system. Therefore, the school will be more committed to maintaining system security to ensure its own data security. The UR value is an important indicator to measure the good behavior of the school node:

[0072]

[0073] Step S62: Calculate the score SNP (School Nodes points) of each school node according to the consensus node selection algorithm. The larger the score value, the higher the goodness of the node, and vice versa, it is not trustworthy:

[0074] SNP=UR*Time+MN

[0075] Where Time is the number of days of school node registration, M and N are the number of good behaviors and bad behaviors.

[0076] Step S63: Sort the SNP values ​​in step 6.2 from large to small, and select the top one-third of the nodes with the highest scores as the consensus node group. According to the analysis in step 6, the CPBFS consensus algorithm is more secure than the traditional consensus algorithm and its efficiency is improved by more than 9 times.

[0077] The present invention also proposes a specific embodiment to describe the technical solution of the present application more clearly and completely.

[0078] Step 1: The school collects the certificates, awards and subject scores obtained by the students during their education experience, which can be used as evidence of their educational qualifications. Now assume that there are 6 schools, numbered as School 1, School 2 to School 6, and the number of copies of the materials they upload are 50, 100, 150, 200, 250, and 250 respectively.

[0079] Step 2: Taking School No. 3 as an example, the school divides the data collected in Step 1 into three parts according to its own needs. For the convenience of description, the divided data is represented by a set:

[0080] Data={part1, part2, part3}

[0081] Then, School No. 3 uploads the data divided in the previous step to the IPFS system in turn and obtains the access index, through which the uploaded data can be viewed. Take the i-th data upload, that is, the uploaded data parti (0<i≤3), and obtain the access index Add_parti (i∈N * , i≤3), expressed as a set:

[0082] Add_Data={Add_part1, Add_part2, Add_part3}

[0083] Step 3: School No. 3 selects an ECC elliptic curve denoted as EC(x, y), the base point is G, the finite field is Fp, and the number of points in the finite field Fp is p.

[0084] First, School No. 3 performs ECC asymmetric encryption on the access index in step 2 to Add_parti(i∈N * , i≤3) as an example, the school selects 3 random numbers a1, a2, a3, calculates θ1=a1*G, θ2=a2*G, θ3=a3*G, so the data encryption private key sk=(a1,a2,a3) data encryption public key pk=(θ1,θ2,θ3);

[0085] Then, the school selects a random number r(r∈Fp) and calculates the access index Add_parti(i∈R * , i≤3) of asymmetric encrypted ciphertext (C1, C2):

[0086] C1=Add_parti+r*pk

[0087] C2=r*G

[0088] Finally, the school generates a record for the above data storage process and broadcasts the record to the blockchain, which is then packaged into the blockchain by the nodes of the blockchain system. The purpose of this step is to use the blockchain to record the process of the school uploading data, which can serve as proof that the uploaded data belongs to School No. 3;

[0089] Step 4: School No. 3 establishes an access control whitelist. Visitors who apply to access student information must first submit an application to the educational institution. After review, the school adds the visitor to the whitelist, and the visitor is thus eligible to access the school's student data.

[0090] Step 5: The visitor wants to access the data of School No. 3. First, he submits an access application to the school. After review, School No. 3 adds the visitor to the access whitelist. Then, the school sends the ciphertext (C1, C2), data encryption private key sk, elliptic curve base point G, and random number r to the other party, and then the visitor can decrypt the ciphertext:

[0091] Add_parti=C1-sk*C2(0<i≤3)

[0092] Finally, the school generates a record of the visitor's access to the data and broadcasts the record to the blockchain, which is then packaged into the blockchain by the nodes of the blockchain system. The purpose of this step is to use the blockchain to record the visitor's data query process. If the visitor has malicious behavior such as tampering with data or leaking data, the record can be used as evidence for accountability;

[0093] Step 6: The CPBFS consensus improvement algorithm first calculates the total number of registered students in the six schools:

[0094] SUM=50+100+200+250+250=1000;

[0095] Then, according to the upload rate formula The upload rates of schools 1 to 6 are calculated as follows: 5%, 10%, 15%, 20%, 25%, 25%;

[0096] Next, the SNP scores of all school nodes are calculated according to the consensus node selection algorithm SNP = UR*Time + MN. Assuming that the registration days of the six schools are all 100 days, and the historical performance parameters M and N are the same, it can be calculated that the SNP values ​​of school No. 1 to school No. 6 are: 5, 10, 15, 20, 25, 25. Finally, the top one-third of schools with the largest SNP, that is, schools No. 5 and No. 6, are selected as consensus nodes. According to the time complexity of the consensus algorithm O(n 2 )(n is the number of consensus nodes in the system), we can see that the consensus time overhead is reduced from 6*6 to 2*2, which means that the efficiency is increased by 36 / 4=9 times.

[0097] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A blockchain-based educational qualification witnessing method, characterized in that: The following steps are involved: Step 1: The school collects the student’s educational qualification documents; Step 2: The school divides the educational qualification certification materials into blocks and uploads them to the IPFS system for storage; Step 3: Use the ECC asymmetric encryption algorithm to encrypt the access index stored in the IPFS system; Step 4: The school establishes an access control whitelist; During the access process, the consensus node selection algorithm is used to select good nodes as consensus nodes, and the CPBFS algorithm is used to control the number of consensus nodes; The process of controlling the number of consensus nodes using the CPBFS algorithm includes the following steps: Collect the number of student data uploaded by the school node and calculate the upload rate UR; Calculate the SNP score of each school node based on the consensus node selection algorithm; SNP = UR*Time + MN; Where Time is the number of days of school node registration, M and N are the number of good behaviors and bad behaviors; Sort the SNP values ​​from large to small, and select the top one-third of the nodes with the highest scores as the consensus node group; Step 5: The visitor submits an application and after review, can access the student's educational qualification certificate information.

2. The educational qualification witnessing method based on blockchain as claimed in claim 1, characterized in that: The process of the school dividing the educational qualification certification materials into blocks and uploading them to the IPFS system for storage includes the following steps: The school divides the data collected in step 1 into several parts according to its own needs, and represents the divided data with sets: Data={part1, part2, part3...partk}; Where Data is a data set, part1 represents the first data, part2 represents the second data, k is the number of data copies, k∈N * ; Upload the data partitioned in the previous step to the IPFS system in sequence to obtain an access index. Take the i-th data partition for uploading, that is, upload data parti, and obtain an access index Add_parti, where i ∈ N * , 0 < i ≤ k, which can be represented by a set as follows: Add_Data={Add_part1, Add_part2, Add_part3...Add_partk}.

3. The educational qualification witnessing method based on blockchain as claimed in claim 1, characterized in that: Visitors are eligible to access the educational qualification certification materials of the corresponding students only if they are added to the access control whitelist.

4. The educational qualification witnessing method based on blockchain as claimed in claim 1, characterized in that: The process of a visitor accessing a student's educational qualification certificate will generate a record, which will be broadcast to the blockchain and packaged into the blockchain by the nodes of the blockchain system.