A blockchain-based education electronic certificate application method and system
By using a blockchain-based approach to educational electronic certificates, the problems of incomplete information verification and personal information leakage in existing systems have been solved. This approach enables accurate and reliable on-chain recording and querying of electronic certificates within the education system, ensuring that data flow is traceable.
Patent Information
- Application Number
- CN202211115220.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-14
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2042-09-14
AI Technical Summary
Existing electronic certificate service systems fail to effectively combine information accuracy and completeness for unified verification on the blockchain, and traditional blockchain broadcasting methods may leak personal information, making them unsuitable for electronic certificate service systems in the education system.
By using a blockchain-based approach to educational electronic certificates, this method leverages the characteristics of blockchain to build a service model that ensures traceable ownership of credit data, accurate application, authoritative sources, and reliable sharing. It combines information completeness and accuracy for on-chain verification and querying, employs over 50% broadcasting and time-based verification, and achieves autonomous certificate application, unified management, and automated data on-chaining.
It enables accurate and reliable on-chain recording and querying of certificate information, ensuring traceability of business data flow and safeguarding the security and efficiency of electronic certificate services within the education system.
Smart Images

Figure CN115374140B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of electronic credentials, and more particularly to an education electronic credential application method and system based on a blockchain. BACKGROUND
[0002] An electronic credential service system can provide comprehensive electronic credential services for schools and students in the education system, thereby helping to build an electronic credential application scenario from top to bottom and in a coordinated manner, which is of great significance and application value. The electronic credential service system includes all scenarios using entity proof files and various social scenarios requiring identity verification of personnel. Therefore, a trusted, accurate and automated electronic credential service system needs to be established.
[0003] Prior to the present application, existing electronic credential service systems are mainly designed for the encryption process of electronic credentials, but do not involve how to combine information accuracy and integrity to verify and chain the unified structure of electronic credentials and maintain information. This makes it possible for the electronic credential service system to have incorrect or incomplete information enter the blockchain system. In addition, since the traditional blockchain uses a broadcast method that may leak personal information, it is not clear how to adapt to the setting of the electronic credential broadcast method through the blockchain in the education system, which leads to the fact that an electronic credential service system based on blockchain technology has not been adapted to the education system. SUMMARY
[0004] In view of the above problems, the present application provides an education electronic credential application method and system based on a blockchain, which provides a service mode of an education electronic credential based on a blockchain, fully utilizes the characteristics of a blockchain, and builds credit data property traceability, accurate application, more authoritative source, and particularly trusted sharing.
[0005] According to a first aspect of an embodiment of the present application, an education electronic credential application method based on a blockchain is provided.
[0006] In one or more embodiments, preferably, the education electronic credential application method based on a blockchain includes:
[0007] A user logs into an education electronic credential system through an account password and enters information;
[0008] According to the entered information, a permission level is determined, and one of a query command, a verification command and an information update command is issued;
[0009] After receiving the information update command, if the certificate error is below a preset range, the entered information is stored as to-be-chained information, and a chain broadcast command is started, otherwise an information error command is fed back to the user;
[0010] After receiving the on-chain broadcast command, a handshake command is issued to each device within the blockchain to determine whether the network is open and active;
[0011] According to the feedback of the network being open and active, the to-be-chained information is sequentially broadcasted by 50% and within the entire network, and the block update in the blockchain is completed;
[0012] After receiving the query command feedback, the corresponding license information is verified after the verification command to verify the authenticity of the entered information.
[0013] In one or more embodiments, preferably, the user logs into the education electronic license system through an account password to enter information, specifically including:
[0014] Obtain the user's account and password for verification, and if the verification is passed, allow the information to be entered;
[0015] If the verification fails, feedback the login error and there is no corresponding permission.
[0016] In one or more embodiments, preferably, the permission level is determined according to the entered information, and one of the query command, verification command and information update command is issued, specifically including:
[0017] According to the entered information, the permission level corresponding to the current account is obtained, and the permission level includes query level, verification level and update level;
[0018] When the entered information is the update level, a new license information is filled according to the entered information;
[0019] When the entered information is the query level, the corresponding certificate number is obtained according to the entered information, and the corresponding license is queried according to the certificate number;
[0020] When the entered information is the verification level, the entered information is used as a to-be-verified license information and automatically uploaded to the on-chain query module.
[0021] In one or more embodiments, preferably, after receiving the information update command, if the certificate error is below the preset range, the entered information is stored as to-be-chained information, and the on-chain broadcast command is started, otherwise the information error command is fed back to the user, specifically including:
[0022] According to the entered information, the newly filled license information is extracted, and the total number of information is calculated using a first calculation formula within the current time period;
[0023] According to a second calculation formula, the information integrity within the current time period is calculated;
[0024] When the information completeness is determined to be 100%, a certificate number in the newly filled certificate information is extracted, and a corresponding preset two-difference value is extracted according to the certificate number;
[0025] The real-time certificate two-difference error is calculated by using a third calculation formula;
[0026] When the real-time certificate two-difference error is lower than a preset upper chain threshold, the newly filled certificate information is stored as to-be-chained information, and a chain broadcast command is started, otherwise, an information error command is fed back to the user;
[0027] The first calculation formula is:
[0028]
[0029] Wherein, N i is the total number of the classification of the certificate submitted in the i period, X k is the total number of information included in the k type certificate, L k is the total number of the k type certificate submitted in the i period, Y X_i is the total number of information in the i period, and k is the number of the certificate classification;
[0030] The second calculation formula is:
[0031] W i = 100% J i / Y X_i
[0032] Wherein, W i is the information completeness in the i period, J i is the number of valid stored information;
[0033] The third calculation formula is:
[0034]
[0035] Wherein, e is the real-time certificate two-difference error, B is the certificate number, all i is the set of certificate numbers in the i period, H B_x_y is the gray value of the two-value certificate with the certificate number B in the x coordinate and y coordinate position in the newly filled certificate information, xmax is the maximum value of the x coordinate position, ymax is the maximum value of the y coordinate position, A B is the preset two-difference value corresponding to the certificate number B.
[0036] In one or more embodiments, preferably, after receiving the chain broadcast command, a handshake command is issued to each device in the blockchain, and whether the network is smooth and in an active state is determined, specifically including:
[0037] After receiving the on-chain broadcast command, automatically send a handshake command to all devices;
[0038] After waiting for a preset duration, determine whether a handshake command has been fed back. If a feedback is received, it is considered that the network is smooth, otherwise it is considered that the network is not smooth;
[0039] After waiting for a preset duration, determine whether each device has fed back that the current device is in an idle state. If a feedback is received, it is considered to be active, otherwise it is considered to be in an inactive state.
[0040] In one or more embodiments, preferably, according to the feedback of network smoothness and active state, the to-be-chained information is sequentially broadcasted by 50% and broadcasted in the entire network to complete the block update in the blockchain, specifically including:
[0041] Determine whether it is greater than 50% of the network and active state using a fourth calculation formula. If it is greater, start the chaining process, otherwise wait until the fourth calculation formula is met and then start the chaining process;
[0042] After the chaining process is started, obtain a preset priority table for the current period, and select half of the total number of devices as target devices for 50% broadcast according to the priority table from high to low priority. Send a 50% broadcast command;
[0043] After receiving the 50% broadcast command, broadcast the to-be-chained information in the entire network, and combine the signature of the previous block to perform a hash operation to generate the signature of the latest block;
[0044] When the signature of the latest block is obtained, extract the period number corresponding to the time when the 50% broadcast command is received as the operation time code;
[0045] On the active device, determine the highest priority device, and use a fifth calculation formula to calculate the operation classification code on the highest priority device, and use a sixth calculation formula to calculate the number of confidence codes;
[0046] Broadcast the number of confidence codes in the entire network, and combine the signature of the previous block to perform a hash operation to generate the signature of the latest block;
[0047] The fourth calculation formula is:
[0048] Count(T=1 && H=1) / zll>50%
[0049] Wherein, T=1 && H=1 is network smoothness and fast feedback, Count(T=1 && H=1) is the total number of network smoothness and fast feedback users, and zll is the number of all issued confirmation signals.
[0050] The fifth calculation formula is:
[0051] F = z(e)
[0052] Wherein, e is the real-time certificate difference error, z() is an integer function, and F is the operation classification code;
[0053] The sixth calculation formula is:
[0054] B M = F + KJ P + K 2 T
[0055] Wherein, B M is the numbered confidence code, J P is the calculation number, T is the operation time code, and K is the segmentation interval.
[0056] In one or more embodiments, preferably, the corresponding certificate information after receiving the query command feedback, the authenticity of the entered information is verified after the verification command, specifically comprising:
[0057] After receiving the query command, the current entered information is obtained;
[0058] According to the current entered information, it is inquired on the block chain whether the corresponding certificate number exists, if it exists, a command of extracting certificate information is sent to a high-priority device to obtain the corresponding certificate information, if it does not exist, a query error is fed back;
[0059] After receiving the verification command, the entered information is obtained, and it is inquired on the block chain whether the corresponding certificate number exists, if it does not exist, a verification failure is fed back, if it exists, a verification comparison command is issued;
[0060] The entered information is sent to the device capable of inquiring the corresponding certificate number, and the corresponding device feeds back a verification success when the entered information is consistent with the stored information, otherwise, a verification failure is fed back.
[0061] According to the second aspect of the embodiment of the application, an education electronic certificate application system based on a block chain is provided.
[0062] In one or more embodiments, preferably, the education electronic certificate application system based on a block chain comprises:
[0063] A user application module is configured to enable a user to log in to an education electronic certificate system through an account password and enter information;
[0064] An electronic license service module is configured to determine a permission level according to the input information, and to send one of a query command, a verification command and an information update command;
[0065] An application uploading module is configured to, after receiving the information update command, store the input information as to-be-uploaded information when the license error is below a preset range, and to send a chain broadcast command, or to feed back an information error command to the user when the license error is not below the preset range;
[0066] A proposal input module is configured to, after receiving the chain broadcast command, send a handshake command to each device in the blockchain, and to determine whether the network is smooth and active.
[0067] A blockchain network broadcast module is configured to, according to the feedback that the network is smooth and active, broadcast the to-be-uploaded information by 50% and in the whole network, and to complete the block update in the blockchain.
[0068] A chain query module is configured to, after receiving the query command feedback, verify the authenticity of the input information according to the corresponding license information.
[0069] According to a third aspect of the embodiments of the present application, a computer readable storage medium is provided, which stores computer program instructions, and the computer program instructions are executed by a processor to implement the method according to any one of the first aspect of the embodiments of the present application.
[0070] According to a fourth aspect of the embodiments of the present application, an electronic device is provided, which includes a memory and a processor, the memory is configured to store one or more computer program instructions, and the one or more computer program instructions are executed by the processor to implement the method according to any one of the first aspect of the embodiments of the present application.
[0071] The technical scheme provided by the embodiments of the present application can include the following beneficial effects:
[0072] The scheme of the present application realizes the self-application of the license, the unification of the license management, the integration of the template management and the automation of the data uploading, by selecting the broadcast of the blockchain network in different ranges according to different proposal methods, and by ensuring more than 50% of the broadcast each time and combining the time node verification.
[0073] The scheme of the present application realizes the timely recording and the application of the precise authorization by the blockchain technology, the judgment or review of the information completeness and accuracy for the uploading and the query, and ensures that the business data flow can be tracked.
[0074] Additional features and advantages of the present application will be set forth in the description that follows, and in part will be apparent from the description, or can be learned by practice of the application. The objectives and other advantages of the present application will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
[0075] The technical solutions of the present application will be further described in detail below with the help of the accompanying drawings and examples. BRIEF DESCRIPTION OF DRAWINGS
[0076] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0077] Figure 1 is a flowchart of an education electronic certificate application method based on a block chain according to an embodiment of the present application.
[0078] Figure 2 is a flowchart of a user logging into an education electronic certificate system through an account password and entering information in an education electronic certificate application method based on a block chain according to an embodiment of the present application.
[0079] Figure 3 is a flowchart of judging the authority level according to the entered information, issuing one of a query command, a verification command and an information update command in an education electronic certificate application method based on a block chain according to an embodiment of the present application.
[0080] Figure 4 is a flowchart of judging whether the certificate error is lower than the preset range after receiving the information update command, storing the entered information as to-be-chained information, starting a chain broadcast command, and otherwise feeding back an information error command to the user in an education electronic certificate application method based on a block chain according to an embodiment of the present application.
[0081] Figure 5 is a flowchart of issuing a handshake command to each device in the block chain and judging whether the network is smooth and in an active state after receiving the chain broadcast command in an education electronic certificate application method based on a block chain according to an embodiment of the present application.
[0082] Figure 6 is a flowchart of broadcasting the to-be-chained information in 50% and in the whole network according to the feedback of the smooth network and the active state, and completing the block update in the block chain in an education electronic certificate application method based on a block chain according to an embodiment of the present application.
[0083] Figure 7 is a flowchart of a process of verifying the authenticity of the entered information after receiving the query command feedback and corresponding certificate information in a blockchain-based educational electronic certificate application method according to an embodiment of the present application.
[0084] Figure 8 is a structural diagram of a blockchain-based educational electronic certificate application system according to an embodiment of the present application.
[0085] Figure 9 is a structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0086] In some of the processes described in this specification and in the accompanying drawings, multiple operations are described in a particular, sequential order. However, it should be understood that these operations can be performed in an order different than that described herein, or in parallel, or in a different order. In addition, it should be understood that the processes can include more or fewer operations than those described herein, and these operations can be performed in an order different than that described herein, or in parallel. It will be apparent to those skilled in the art that the “first,” “second,” etc. designations used herein merely designate different operations, and do not necessarily limit the order in which the operations are performed. In addition, the “first” and “second” designations do not necessarily refer to different types of messages, devices, modules, etc.
[0087] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0088] The electronic certificate service system can provide comprehensive electronic certificate services to schools and students in the education system, thereby helping to build an electronic certificate application scenario from top to bottom and in a collaborative manner, which has important significance and application value. The electronic certificate service system includes all scenarios using entity proof files and various social scenarios requiring identity verification of personnel. Therefore, it is necessary to establish a trusted, accurate and automated electronic certificate service system.
[0089] Before the present technology, the existing electronic certificate service system is mainly designed for the encryption process of electronic certificate, but does not involve how to combine information accuracy and integrity to verify the unified structure of electronic certificate on chain and information maintenance, which makes the electronic certificate service system have error information or incomplete information entering the block chain system, in addition, since the broadcast mode of traditional block chain may leak personal information, therefore, it is not clear how to adapt to the setting of electronic certificate broadcast mode through block chain in the education system, which leads to the fact that the electronic certificate service system based on block chain technology has not been realized to adapt to the education system.
[0090] In the embodiment of the present application, a kind of based on block chain's education electronic certificate application method and system are provided.The scheme provides a kind of education electronic certificate service mode based on block chain, make full use of the characteristics of block chain, build credit data property traceable, application enough accurate, source more authoritative, sharing especially credible.
[0091] According to the first aspect of the embodiment of the present application, a kind of based on block chain's education electronic certificate application method is provided.
[0092] Figure 1 It is a kind of based on block chain's education electronic certificate application method of the flow chart of an embodiment of the present application.
[0093] In one or more embodiments, preferably, the kind of based on block chain's education electronic certificate application method includes:
[0094] S101. user logs in education electronic certificate system through account password, and information is entered;
[0095] S102. according to the information entered, judge the authority level, issue one of query command, verification command and information update command;
[0096] S103. after receiving the information update command, when the certificate error is lower than the preset range, the entered information is stored as to-be-chained information, and the on-chain broadcast command is started, otherwise the information error command is fed back to the user;
[0097] S104. after receiving the on-chain broadcast command, a handshake command is issued to each device in the block chain, and whether the network is smooth and in active state is judged;
[0098] S105. according to the feedback of network smooth and in active state, the to-be-chained information is broadcasted by 50% and broadcasted in the whole network in turn, and the block update in the block chain is completed;
[0099] S106. after receiving the query command feedback, corresponding certificate information is verified after the verification command, and the authenticity of the entered information is verified.
[0100] In the embodiment of the present application, the network is smooth, and the handshake command has automatic feedback, proving that the network is smooth, and the active state is fed back to the corresponding device on the chain that is in a state that can operate at any time, wherein 50% of the broadcast is broadcast on 50% of the devices in the entire network, the broadcast in the entire network is broadcast to all users in the entire network, and the block update in the block chain is the accounting of the information of the corresponding new block. In this way, the rapid and efficient transmission of data in the entire network can be effectively guaranteed. In addition, the 50% broadcast is performed first, and then the broadcast in the entire network is performed, so as to generate two consecutive blocks. The information on the latter block is the block information for accounting, and the information on the former block is the information for storage.
[0101] Figure 2 It is a flow chart of a user logging into an education electronic certificate system through an account password and entering information in an education electronic certificate application method based on a block chain according to an embodiment of the present application.
[0102] As shown in the embodiment of the present application, preferably, the user logs into the education electronic certificate system through the account password and enters the information, and specifically includes the following steps. Figure 2 S201. Obtain the account and password of the user, and perform verification. If the verification is passed, the information is allowed to be entered.
[0103] S202. If the verification fails, feedback login error, and there is no corresponding permission.
[0104] In the embodiment of the present application, the user has different permissions in the education electronic certificate system on different devices. The user can only log in reliably on the device that has stored the corresponding permission, and cannot log in on the corresponding device that has not stored the permission.
[0105]
[0106] It is a flow chart of judging the permission level according to the entered information, and issuing one of a query command, a verification command and an information update command in an education electronic certificate application method based on a block chain according to an embodiment of the present application. Figure 3 As shown in the embodiment of the present application, preferably, the permission level is judged according to the entered information, and one of a query command, a verification command and an information update command is issued, and specifically includes the following steps.
[0107] Figure 3 S301. Obtain the permission level corresponding to the current account according to the entered information, wherein the permission level includes a query level, a verification level and an update level.
[0108] S301. Obtain the permission level corresponding to the current account according to the entered information, wherein the permission level includes a query level, a verification level and an update level.
[0109] S302. When the entered information is an update level, a new certificate information is filled according to the entered information;
[0110] S303. When the entered information is a query level, a corresponding certificate number is obtained according to the entered information, and a corresponding certificate is queried according to the certificate number;
[0111] S304. When the entered information is a verification level, the entered information is automatically uploaded to the on-chain query module as a to-be-verified certificate information.
[0112] In the embodiment of the application, the authority level is determined according to the entered information, if it is a query level, a query command is issued, and if it is a serious level, a certificate information update is issued.
[0113] Figure 4 is a flowchart of a method for applying an education electronic certificate based on a block chain in an embodiment of the application. After receiving the information update command, if the certificate error is below the preset range, the entered information is stored as to-be-chained information, a chain broadcast command is started, otherwise an information error command is fed back to the user.
[0114] As shown in Figure 4 in one or more embodiments, preferably, after receiving the information update command, if the certificate error is below the preset range, the entered information is stored as to-be-chained information, a chain broadcast command is started, otherwise an information error command is fed back to the user, and specifically includes:
[0115] S401. The newly filled certificate information is extracted from the entered information, and the total number of information is calculated by using a first calculation formula in the current time period;
[0116] S402. The information integrity in the current time period is calculated according to a second calculation formula;
[0117] S403. When the information integrity is 100%, the certificate number in the newly filled certificate information is extracted, and the corresponding preset two difference values are extracted according to the certificate number;
[0118] S404. The real-time certificate two difference error is calculated by using a third calculation formula;
[0119] S405. When the real-time certificate two difference error is below the preset threshold value of chaining, the newly filled certificate information is stored as to-be-chained information, a chain broadcast command is started, otherwise an information error command is fed back to the user;
[0120] The first calculation formula is:
[0121]
[0122] wherein, N i is the total number of the classification of the license submitted in the i th period, X k is the total number of the information included in the k th license, L k is the total number of the k th license submitted in the i th period, Y X_i is the total number of the information in the i th period, and k is the number of the license classification;
[0123] The second calculation formula is:
[0124] W i = 100% J i / Y X_i
[0125] wherein, W i is the information integrity in the i th period, J i is the number of the valid stored information;
[0126] The third calculation formula is:
[0127]
[0128] wherein, e is the real-time license two-difference error, B is the license number, all i is the set of the license number in the i th period, H B_x_y is the gray value of the license with the license number B in the newly filled license information in the x-axis and y-axis positions after the binarization, xmax is the maximum value of the x-axis position, ymax is the maximum value of the y-axis position, A B is the preset two-difference value corresponding to the license number B.
[0129] In the real-time example of the present application, in all the newly filled license information in the period, the license number is automatically extracted, all i is the set of the license number in the i th period, each license number has a corresponding preset two-difference value, the calculation method of the preset two-difference value is that the electronic license corresponding to the license number is binarized, and the gray values of all the points after the binarization are added to obtain the preset two-difference value corresponding to the license number B, and then an electronic license can be formed, and the gray value of the license with the license number B in the newly filled license information after the binarization is added and then subtracted to generate the real-time license two-difference error, therefore, if the error is too large, it is considered that the obtained license is wrong, and the feedback information error command is generated.
[0130] Figure 5A flowchart of issuing a handshake command to each device in the blockchain after receiving the on-chain broadcast command to determine whether the network is smooth and in an active state in a blockchain-based educational electronic certificate application method according to an embodiment of the application.
[0131] As shown in the figure, in one or more embodiments, preferably, the issuing of the handshake command to each device in the blockchain after receiving the on-chain broadcast command to determine whether the network is smooth and in an active state specifically includes: Figure 5
[0132] S501. Automatically issuing a handshake command to all devices after receiving the on-chain broadcast command;
[0133] S502. After waiting for a preset time, determine whether the handshake command is fed back, if the feedback is received, it is considered that the network is smooth, otherwise it is considered that the network is not smooth;
[0134] S503. After waiting for a preset time, determine whether each device feeds back that the current device is in an idle state, if it is fed back, it is considered to be active, otherwise it is considered to be in an inactive state.
[0135] In the embodiment of the application, after receiving the on-chain broadcast command, a handshake command is issued to each device in the blockchain to determine whether the network is smooth and in an active state, if in an active state, the subsequent update of the to-be-chained information can be carried out.
[0136] Figure 6 A flowchart of sequentially performing 50% broadcast and full-network broadcast on the to-be-chained information according to the feedback of network smoothness and active state to complete the block update in the blockchain in a blockchain-based educational electronic certificate application method according to an embodiment of the application.
[0137] As shown in the figure, in one or more embodiments, preferably, the sequentially performing 50% broadcast and full-network broadcast on the to-be-chained information according to the feedback of network smoothness and active state to complete the block update in the blockchain specifically includes: Figure 6
[0138] S601. Using a fourth calculation formula to determine whether more than 50% of the network is active, if yes, starting the chaining process, otherwise waiting for the fourth calculation formula to be met and then starting the chaining process;
[0139] S602. After starting the chaining process, obtaining a preset priority table of the current period, selecting half of the total number of devices as target devices for 50% broadcast according to the priority table from high to low according to the priority, and issuing a 50% broadcast command;
[0140] S603. After receiving the 50% broadcast command, the to-be-uplinked information is broadcasted throughout the network, and the signature of the latest block is generated by hashing the signature of the previous block;
[0141] S604. After obtaining the signature of the latest block, the time period number corresponding to the time when the 50% broadcast command is received is extracted as the operation time code;
[0142] S605. On the active device, determine the highest priority device, and on the highest priority device, calculate the operation classification code using the fifth calculation formula, and calculate the numbered confidence code using the sixth calculation formula;
[0143] S606. Broadcast the numbered confidence code throughout the network, and generate the signature of the latest block by hashing the signature of the previous block;
[0144] The fourth calculation formula is:
[0145] Count(T=1&&H=1) / zll>50%
[0146] Wherein, T=1&&H=1 is network smooth and fast feedback, Count(T=1&&H=1) is the total number of users with network smooth and fast feedback, and zll is the number of all sent confirmation signals;
[0147] The fifth calculation formula is:
[0148] F=z(e)
[0149] Wherein, e is the real-time certificate difference error, z() is the integer function, and F is the operation classification code;
[0150] The sixth calculation formula is:
[0151] B M =F+KJ P +K 2 T
[0152] Wherein, B M is the numbered confidence code, J P is the calculation number, T is the operation time code, and K is the segment interval.
[0153] In the embodiment of the present application, according to the feedback of network being unblocked and being in an active state, the to-be-uploaded information is sequentially broadcasted by 50% and broadcasted in the whole network to complete the block updating in the blockchain, the priority is pre-set, the higher the priority is, the higher the right of the device is, and in the execution process, the data processing right is inclined to be performed on the device with higher right, therefore, after obtaining the to-be-uploaded information, only 50% of the broadcast is performed, and after the broadcast of the to-be-uploaded information is completed, the overall broadcast through the whole network is performed, so that it is ensured that the device with low priority can only obtain part of the data.
[0154] Figure 7 is a flow chart of corresponding certificate information after receiving the query command and verifying the authenticity of the entered information after the verification command in an education electronic certificate application method based on a blockchain according to an embodiment of the present application.
[0155] As shown in Figure 7 in one or more embodiments, preferably, the corresponding certificate information after receiving the query command and verifying the authenticity of the entered information after the verification command specifically comprises:
[0156] S701. After receiving the query command, the current entered information is obtained;
[0157] S702. According to the current entered information, whether the corresponding certificate number exists on the blockchain is queried, if yes, a command of extracting certificate information is sent to a device with high priority to obtain the corresponding certificate information, and if no, a query error is fed back;
[0158] S703. After receiving the verification command, the entered information is obtained, and whether the corresponding certificate number exists on the blockchain is queried, if no, a verification failure is fed back, and if yes, a verification comparison command is issued;
[0159] S704. The entered information is sent to a device capable of querying the corresponding certificate number, and the corresponding device feeds back a verification success when the entered information is consistent with the stored information, otherwise, a verification failure is fed back.
[0160] In the embodiment of the present application, after receiving the query command, whether the corresponding certificate number exists is judged by the blockchain according to the current entered information, if yes, the corresponding certificate information is fed back, and after the verification command, the authenticity of the entered information is verified and fed back.
[0161] According to the second aspect of the embodiment of the present application, a kind of education electronic certificate application system based on blockchain is provided.
[0162] Figure 8A structural diagram of an education electronic certificate application system based on a blockchain is an embodiment of the present application.
[0163] In one or more embodiments, preferably, the education electronic certificate application system based on a blockchain comprises:
[0164] A user application module 801 is configured to enable a user to log in to the education electronic certificate system through an account password and input information.
[0165] An electronic certificate service module 802 is configured to determine a permission level according to the input information and send one of a query command, a verification command and an information update command.
[0166] An application chaining module 803 is configured to, after receiving the information update command, store the input information as to-be-chained information when a certificate error is lower than a preset range, start a chain broadcast command, and otherwise feed back an information error command to the user.
[0167] A proposal input module 804 is configured to, after receiving the chain broadcast command, send a handshake command to each device in the blockchain, and determine whether the network is smooth and in an active state.
[0168] A blockchain network broadcast module 805 is configured to, according to the feedback that the network is smooth and in an active state, sequentially broadcast the to-be-chained information by 50% and in the whole network, and complete block updating in the blockchain.
[0169] A chain query module 806 is configured to, after receiving the query command feedback, correspond to the certificate information, and after the verification command, verify the authenticity of the input information.
[0170] In the embodiment of the present application, the application of the education electronic certificate is realized through modular design, and the corresponding certificate updating and checking system based on the blockchain can be quickly configured in different application scenarios.
[0171] According to a third aspect of the embodiment of the present application, a computer readable storage medium is provided, which stores computer program instructions, and the computer program instructions realize the method according to any one of the first aspect of the embodiment of the present application when executed by a processor.
[0172] According to a fourth aspect of the embodiment of the present application, an electronic device is provided. Figure 9 A structural diagram of an electronic device is an embodiment of the present application. Figure 9The electronic device shown is a general education electronic certificate application device. The electronic device can be a smart phone, a tablet computer or the like. As shown, the electronic device 900 includes a processor 901 and a memory 902. The processor 901 is electrically connected with the memory 902. The processor 901 is the control center of the terminal 900, and connects the whole terminal through various interfaces and lines. By running or calling the computer program stored in the memory 902 and calling the data stored in the memory 902, the terminal performs various functions and processes data, thereby overall monitoring the terminal.
[0173] In the embodiment, the processor 901 in the electronic device 900 loads the instructions corresponding to the processes of one or more computer programs into the memory 902, and runs the computer program stored in the memory 902 by the processor 901, so as to realize various functions: the user logs in the education electronic certificate system through an account password, and enters information; judging the authority level according to the entered information, issuing one of the query command, the verification command and the information update command; after receiving the information update command, if the certificate error is lower than the preset range, the entered information is stored as to-be-chained information, and the on-chain broadcast command is started, otherwise the information error command is fed back to the user; after receiving the on-chain broadcast command, a handshake command is issued to each device in the blockchain to judge whether the network is smooth and in an active state; according to the feedback of the network being smooth and in an active state, the to-be-chained information is sequentially broadcasted by 50% and broadcasted in the whole network to complete the block update in the blockchain; the corresponding certificate information is fed back after receiving the query command, and the authenticity of the entered information is verified after the verification command.
[0174] The memory 902 can be used to store computer programs and data. The computer program stored in the memory 902 contains instructions executable in the processor. The computer program can constitute various functional modules. The processor 901 calls the computer program stored in the memory 902, thereby executing various functional applications and data processing.
[0175] The technical scheme provided by the embodiment of the application can include the following beneficial effects:
[0176] The scheme of the application selects the broadcast of the network of the blockchain in different ranges according to different proposal modes, but needs to ensure more than 50% broadcast each time, and combines the verification of the time node, so as to realize the self-authorization of the certificate application, the unification of the certificate management, the integration of the template management and the automation of the data chaining.
[0177] The scheme of the application realizes timely recording, application precise authorization and ensures traceable business data flow through the blockchain technology, the judgment or review of the information integrity and accuracy for chaining and querying.
[0178] Those skilled in the art will appreciate that embodiments of the present application can be readily used as a method, a system or a computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage and so forth) embodying computer-readable program code.
[0179] The present application is described in reference to the flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 means for performing the function of one or more of the steps from a flowchart
[0180] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 means for performing the function of one or more of the steps from a flowchart
[0181] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 one or more functions specified in the flowchart illustrations and / or block diagrams block or blocks. Figure 1 means for performing the function of one or more of the steps from a flowchart
[0182] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their legal equivalents, the application can be practiced otherwise than as specifically described.
Claims
1. A blockchain-based educational electronic credential application method, characterized in that, The method comprises: The user logs in the education electronic certificate system through an account password, and enters information; According to the entered information, one of a query command, a verification command and an information update command is issued; After receiving the information update command, if the certificate error is below the preset range, the entered information is stored as to-be-chained information, and a chain broadcast command is started, otherwise, an information error command is fed back to the user, which specifically comprises: according to the entered information, new reported certificate information is extracted, the total number of information in the current time period is calculated by using a first calculation formula; the information integrity in the current time period is calculated according to a second calculation formula; when the information integrity is 100%, the certificate number in the new reported certificate information is extracted, and the corresponding preset two difference values are extracted according to the certificate number; the real-time certificate two difference error is calculated by using a third calculation formula; when the real-time certificate two difference error is below the preset chaining threshold, the new reported certificate information is stored as to-be-chained information, and a chain broadcast command is started, otherwise, an information error command is fed back to the user; The first calculation formula is: in, N i For the i The total number of categories of certificates submitted during the period, X k For the k The total amount of information included in the class certificate, L k For the i The first k The total number of licenses, Y X_i For the i The total number of messages in the time period, k The number for classifying the certificate; The second calculation formula is: W i =100% J i / Y X_i wherein, W i is the number of valid stored information items; i information completeness of the time period, J i is the number of valid stored information items; The third calculation formula is: in, e is the real-time certificate second difference error, B is the certificate number, all i For the i A collection of certificate numbers for the time period, H B_x_y The certificate number in the newly reported certificate information is B The certificate is on the horizontal axis x vertical axis y The grayscale value after binarization of the position, xmax is the maximum value of the horizontal coordinate position, ymax is the maximum value of the vertical coordinate position, A B Certificate number B The corresponding preset binary difference sum, wherein each certificate number has a corresponding preset binary difference sum, and the preset binary difference sum is calculated by binarizing the electronic certificate corresponding to the certificate number, and then summing the binarized grayscale values of all points after the binarization process as the preset binary difference sum corresponding to the certificate number B; After receiving the chain broadcast command, a handshake command is issued to each device in the blockchain to determine whether the network is smooth and in an active state; According to the feedback of the network being smooth and in an active state, the to-be-chained information is sequentially broadcasted by 50% and broadcasted in the whole network to complete the block update in the blockchain; After receiving the query command, the corresponding certificate information is fed back, and after the verification command, the authenticity of the entered information is verified.
2. The blockchain-based educational electronic credential application method of claim 1, wherein, The user logs in the education electronic certificate system through an account password, and enters information, which specifically comprises: The user's account and password are obtained, verified, and if the verification is passed, the information entry is allowed; If the verification fails, a login error is fed back, and there is no corresponding permission. 3.The blockchain-based education electronic credential application method of claim 1, wherein, According to the entered information, one of a query command, a verification command and an information update command is issued, which specifically comprises: According to the entered information, the permission level corresponding to the current account is obtained, and the permission level comprises a query level, a verification level and an update level; When the entered information is the update level, a new certificate information is reported according to the entered information; When the entered information is the query level, the corresponding certificate number is obtained according to the entered information, and the corresponding certificate is queried according to the certificate number; When the entered information is the verification level, the entered information is automatically uploaded to the chain query module as a to-be-verified certificate information.
4. The blockchain-based educational electronic credential application method of claim 1, wherein, After receiving the chain broadcast command, a handshake command is issued to each device in the blockchain to determine whether the network is smooth and in an active state, which specifically comprises: After receiving the chain broadcast command, a handshake command is automatically issued to all devices; After waiting for a preset time, it is determined whether the handshake command is fed back, if the feedback is received, it is considered that the network is smooth, otherwise, it is considered that the network is not smooth. After waiting for a preset time length, it is judged whether each device feeds back that the current device is in an idle state, and if yes, it is considered to be active, otherwise, it is considered to be in an inactive state.
5. The blockchain-based educational electronic credential application method of claim 1, wherein, According to the feedback that the network is unblocked and in an active state, the to-be-uplinked information is sequentially broadcasted by 50% and broadcasted in the whole network to complete the block updating in the blockchain, specifically including: It is judged by a fourth calculation formula whether it is greater than 50% of the network and the active state, and if yes, the uplink process is started, otherwise, the uplink process is started after waiting for the fourth calculation formula to be met; After the uplink process is started, a preset priority table of the current time period is obtained, and according to the priority table, the devices with a total number of half of the devices are selected as target devices for 50% broadcast according to the priority from high to low, and a 50% broadcast command is issued; After receiving the 50% broadcast command, the to-be-uplinked information is broadcasted in the whole network, and a hash operation is performed in combination with the signature of the previous block to generate the signature of the latest block; When the signature of the latest block is obtained, the time period number corresponding to the time when the 50% broadcast command is received is extracted as the operation time code; On the active device, the device with the highest priority is determined, and the operation classification code is calculated by a fifth calculation formula on the device with the highest priority, and the confidence code of the certificate number is calculated by a sixth calculation formula; The confidence code of the certificate number is broadcasted in the whole network, and a hash operation is performed in combination with the signature of the previous block to generate the signature of the latest block; The fourth calculation formula is: Count ( T =1&& H =1) / zll >50% wherein, T = 1 && = 1 H = 1 is the network is open and fast feedback, Count T = 1 && = 1 H = 1) is the total number of users of the network is open and fast feedback, zll is the number of all issued confirmation signals; The fifth calculation formula is: F = z ( e ) wherein, e is the real-time certificate two difference error, z () is a rounding function, F is the operation classification code; The sixth calculation formula is: B M = F + KJ P + K 2 T wherein, B M is a confidence code for the certificate number, J P is a calculation number, T is an operational time code, K is a segment interval.
6. The blockchain-based educational electronic credential application method of claim 3, wherein, After receiving the query command, the corresponding certificate information is fed back, and after receiving the verification command, the authenticity of the entered information is verified, specifically including: After receiving the query command, the current entered information is obtained; According to the current entered information, it is queried on the blockchain whether the corresponding certificate number exists, if yes, a command for extracting the certificate information is sent to the device with high priority to obtain the corresponding certificate information, if not, a query error is fed back; After receiving the verification command, the entered information is obtained, and it is queried on the blockchain whether the corresponding certificate number exists, if not, a verification failure is fed back, if yes, a verification comparison command is issued; The entered information is sent to the device that can query the corresponding certificate number, and the corresponding device feeds back a verification success when the entered information is consistent with the stored information, otherwise, a verification failure is fed back. 7.A blockchain-based education electronic certificate application system, characterized in that, The system comprises: A user application module is configured to enable a user to log in to an electronic certificate system through an account and a password, and to enter information; An electronic certificate service module is configured to determine a permission level according to the entered information, and to issue one of a query command, a verification command, and an information update command; The application chain module is configured to, after receiving the information update command, determine whether the certificate error is below a preset range, and if so, store the entered information as to-be-chained information and start a chain broadcast command, otherwise, feed back an information error command to the user. Specifically, new reported certificate information is extracted from the entered information, the total number of information is calculated using a first calculation formula in the current time period, the information completeness in the current time period is calculated using a second calculation formula, when the information completeness is 100%, the certificate number in the new reported certificate information is extracted, and a preset two difference value corresponding to the certificate number is extracted, a real-time certificate two difference error is calculated using a third calculation formula, when the real-time certificate two difference error is below a preset chain threshold, the new reported certificate information is stored as to-be-chained information, and the chain broadcast command is started, otherwise, the information error command is fed back to the user. The first calculation formula is: in, N i For the i The total number of categories of certificates submitted during the period, X k For the k The total amount of information included in the class certificate, L k For the i The first k The total number of licenses, Y X_i For the i The total number of messages in the time period, k The number for classifying the certificate; The second calculation formula is: W i =100% J i / Y X_i wherein, W i is the number of information items stored in the database, i the information completeness of the time period, J i is the number of information items stored in the database, The third calculation formula is: wherein, e is the second difference error of the real-time certificate, B is the certificate number, all i is the first i set of certificate numbers of the time period, H B_x_y is the new certificate information in the certificate number B certificate in the horizontal coordinate x vertical coordinate y position of the binary after the gray value, xmax is the maximum value of the horizontal coordinate position, ymax is the maximum value of the vertical coordinate position, A B is the certificate number B corresponding to the preset second difference value, wherein each certificate number has a corresponding preset second difference value, and the calculation method of the preset second difference value is that the electronic certificate corresponding to the certificate number is binarized, and the gray values of all the points after binarization are added together as the preset second difference value corresponding to the certificate number B. The proposal entry module is configured to, after receiving the chain broadcast command, send a handshake command to each device in the blockchain, and determine whether the network is smooth and in an active state. The blockchain network broadcast module is configured to, according to the feedback that the network is smooth and in an active state, sequentially broadcast the to-be-chained information by 50% and in the whole network to complete the block update in the blockchain. The chain query module is configured to, after receiving the query command, feed back the corresponding certificate information, and after the verification command, verify the authenticity of the entered information.
8. A computer readable storage medium having stored thereon computer program instructions, wherein, The computer program instructions, when executed by the processor, implement the method of any one of claims 1-6.
9. An electronic device comprising a memory and a processor, characterized in that, The memory is configured to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method of any one of claims 1-6.
Citation Information
Patent Citations
Certificate management method and device based on block chain, electronic equipment and storage medium
CN109800598A
Block chain-based electronic contract storage method and apparatus, electronic device and computer non-volatile readable storage medium
WO2020238051A1