Intelligent verification method, device and equipment of certificate, and storage medium

CN117478333BActive Publication Date: 2026-09-18CHINA UNITED NETWORK COMM GRP CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311422558.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2026-09-18
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

[0005]本申请提供一种证书的智能验证方法、装置、设备及存储介质,用以解决现有技术中难以准确辨别证书的真伪、以及无法有效保护证书信息的隐私性的问题

Benefits of technology

[0045] The processor executes computer execution instructions stored in the memory to implement the method of the embodiments of this application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117478333B_ABST
    Figure CN117478333B_ABST
Patent Text Reader

Abstract

The application provides a smart certificate verification method and device, equipment and a storage medium. The method comprises the following steps: obtaining the number information and validity period information of a certificate to be verified, the first node information and the second node information of a block chain, the first node information being the number information and validity period information of an effective certificate stored by a first agency, and the second node information being the certificate number information used by a second agency; and determining the effectiveness of the certificate to be verified according to the number information and validity period information of the certificate to be verified, the first node information and the second node information of the block chain. The method of the application increases the credibility of the certificate data information, improves the privacy degree of the data in the certificate verification process, and effectively protects the certificate data information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of privacy and security technology, and in particular to a smart verification method, apparatus, device, and storage medium for certificates. Background Technology

[0002] With the development of the internet, methods for verifying the credibility and authenticity of professional certificates have become increasingly complex. Certificate authenticity and validity information can easily be altered externally, and it's difficult to ascertain whether a certificate is being used or affiliated with other organizations. Therefore, effectively identifying the authenticity, validity, and usage history of a certificate is crucial for verifying its information.

[0003] In existing technologies, electronic certificate systems are mainly used to verify certificate information, which solves problems such as paper certificates being easily stolen, requiring repeated proofs, causing resource waste, and hindering circulation.

[0004] However, the secure and reliable circulation of electronic certificate data still faces challenges. Electronic certificate systems cannot completely solve problems such as certificate forgery, reuse, and expiration. Therefore, proposing an intelligent certificate verification method is crucial for the secure circulation of certificates. Summary of the Invention

[0005] This application provides a smart verification method, apparatus, device, and storage medium for certificates, which solves the problems in the prior art of accurately identifying the authenticity of certificates and effectively protecting the privacy of certificate information.

[0006] Firstly, this application provides a smart verification method for certificates, comprising:

[0007] Obtain the certificate number and validity period information to be verified, the first node information and the second node information of the blockchain. The first node information is the certificate number and validity period information of the valid certificate stored by the first-party institution, and the second node information is the certificate number information currently being used by the second-party institution. The first-party institution and the second-party institution are different institutions.

[0008] The validity of the certificate to be verified is determined based on its number and validity period information, as well as the first and second node information of the blockchain.

[0009] In this embodiment of the application, before obtaining the certificate number and validity period information, the first node information and the second node information of the blockchain, the method further includes:

[0010] Based on the certificate type of the certificate to be verified, determine the first-party organization and the second-party organization that can verify the validity of the certificate to be verified;

[0011] Based on the first-party organization, obtain the certificate number and validity period information stored by the first-party organization;

[0012] The number and validity period information of the valid certificate stored by the first-party institution are placed into the blockchain to determine the first node information of the blockchain;

[0013] Based on the second-party organization, obtain the certificate number information that the second-party organization is using;

[0014] The certificate number information currently being used by the second party is placed into the blockchain to determine the second node information of the blockchain.

[0015] In this embodiment of the application, obtaining the certificate number and validity period information, the first node information and the second node information of the blockchain includes:

[0016] Obtain the certificate number and validity period information to be verified;

[0017] Based on the certificate number and validity period information, determine the blockchain to verify the validity of the certificate;

[0018] Based on the blockchain, the first node information and the second node information of the blockchain are determined. The first node information is the number and validity period information of the valid certificate stored by the first party institution, and the second node information is the certificate number information currently being used by the second party institution.

[0019] In this embodiment of the application, the validity of the certificate to be verified is determined based on the certificate number and validity period information, the first node information and the second node information of the blockchain, including:

[0020] Based on the information from the first node of the blockchain, determine the number and validity period of the valid certificate;

[0021] The number information of the certificate to be verified is compared with the number information of the valid certificate to obtain the first verification result that the number information of the certificate to be verified matches the number information of the valid certificate.

[0022] The validity period information of the certificate to be verified is compared with the validity period information of the valid certificate to obtain a second verification result in which the validity period information of the certificate to be verified matches the validity period information of the valid certificate.

[0023] Based on the first verification result and the second verification result, the validity of the certificate number information and validity period information of the certificate to be verified is determined.

[0024] In this embodiment of the application, the validity of the certificate to be verified is determined based on the certificate number and validity period information, the first node information and the second node information of the blockchain. The method further includes:

[0025] Based on the information from the second node of the blockchain, determine the certificate number information currently in use;

[0026] The certificate number to be verified is encrypted and compared with the certificate number currently in use, and the verification result is that the certificate number to be verified does not match the certificate number currently in use.

[0027] Based on the verification results, we can see that the certificate to be verified is currently not in use.

[0028] The validity of the certificate to be verified is determined based on the information that the certificate is not currently in use.

[0029] In this embodiment, the number information of the certificate to be verified is encrypted and compared with the number information of the certificate currently in use to obtain a verification result that the number information of the certificate to be verified does not match the number information of the certificate currently in use, including:

[0030] Based on the certificate number information to be verified, obtain the first random number of the certificate number information to be verified;

[0031] Based on the certificate number information currently in use, obtain a second random number for the certificate number information currently in use;

[0032] The certificate number to be verified and the certificate number currently in use are converted to obtain the target certificate number to be verified and the target certificate number. The target certificate number to be verified and the target certificate number have the same data length.

[0033] Multiply the first random number by the target number to be verified to obtain the first encrypted information;

[0034] The second encrypted information is obtained by combining the second random number with the first encrypted information;

[0035] Multiply the second random number by the target certificate number to obtain the third encrypted information;

[0036] The second encrypted information is compared with the third encrypted information, and the verification result is that the second encrypted information and the third encrypted information do not match.

[0037] In this embodiment of the application, the second encrypted information is obtained based on the second random number and the first encrypted information, including:

[0038] Multiply the second random number by the first encrypted information to obtain the target encrypted data;

[0039] The target encrypted data is multiplied by the first random number to obtain the second encrypted information.

[0040] Secondly, this application provides a smart verification device for certificates, comprising:

[0041] The acquisition module is used to acquire the certificate number and validity period information of the certificate to be verified, the first node information and the second node information of the blockchain. The first node information is the certificate number and validity period information of the valid certificate stored by the first-party institution, and the second node information is the certificate number information currently being used by the second-party institution.

[0042] The determination module is used to determine the validity of the certificate to be verified based on the certificate number and validity period information, the first node information and the second node information of the blockchain.

[0043] Thirdly, this application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0044] The memory stores computer-executed instructions;

[0045] The processor executes computer execution instructions stored in the memory to implement the method of the embodiments of this application.

[0046] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods of the embodiments of this application.

[0047] The intelligent verification method, apparatus, device, and storage medium provided in this application determine the validity of a certificate by acquiring the certificate number and validity period information, first node information, and second node information of a blockchain. The first node information contains the certificate number and validity period information stored by a first-party organization, and the second node information contains the certificate number information currently being used by a second-party organization. The method involves placing the valid certificate number, validity period information, and currently used certificate number information into a blockchain node, and then connecting the certificate number and validity period information to the blockchain. This comparison determines the validity of the certificate number and validity period information. Simultaneously, the method encrypts and compares the certificate number information with the currently used certificate number information stored in the blockchain node, ensuring that the certificate is not currently being used by other organizations, thus guaranteeing the confidentiality of the certificate data, resolving the problem of certificate information being altered or stolen, and improving the credibility of the certificate information. Attached Figure Description

[0048] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0049] Figure 1 A flowchart illustrating the intelligent certificate verification method provided in this application embodiment;

[0050] Figure 2 A flowchart illustrating another intelligent certificate verification method provided in this application embodiment;

[0051] Figure 3 A schematic diagram of the structure of the smart verification device for certificates provided in the embodiments of this application;

[0052] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0053] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0054] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0055] In existing technologies, electronic certificate systems are typically used to verify the validity of certificates. However, existing electronic certificate systems lack overall supervision and management of data, and cannot clearly show the usage and affiliation of certificates. This puts the secure and reliable circulation of electronic certificate data at risk and cannot completely solve problems such as certificate forgery, reuse, and expired use.

[0056] To address the aforementioned issues, the intelligent certificate verification method provided in this application stores the valid certificate number, validity period, and currently used certificate number information in a blockchain node. This allows the certificate number and validity period information to be verified to be compared with those of valid certificates to determine their validity. Simultaneously, the certificate number to be verified is encrypted and compared with the currently used certificate number information stored in the blockchain node, ensuring that the certificate is not currently being used by other organizations and guaranteeing the confidentiality of the certificate data. This ensures the privacy of certificate information during use and improves the credibility of the certificate information.

[0057] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0058] The executing entity of the smart certificate verification method provided in this application embodiment can be a server. The server can be a computer or other device. This embodiment does not impose any particular restrictions on the implementation method of the executing entity, as long as the executing entity can obtain the certificate number and validity period information, the first node information and the second node information of the blockchain, where the first node information is the certificate number and validity period information stored by the first-party organization, and the second node information is the certificate number information currently being used by the second-party organization, and the first-party organization and the second-party organization are different organizations; the validity of the certificate to be verified can be determined based on the certificate number and validity period information, and the first node information and the second node information of the blockchain.

[0059] In this context, blockchain can refer to a chain composed of multiple block nodes used to store data information. The data in the blockchain is difficult to tamper with. Each block node stores certain data information, and the various block nodes are connected in the order in which they were generated to form the blockchain.

[0060] The first-party structure can refer to a first-type institution that provides data information to the blockchain, wherein the first-type institution provides first-type data information to the blockchain so that the blockchain stores the first-type data information in the first node.

[0061] The second-party structure can refer to a second type of institution that provides data information to the blockchain, wherein the second type of institution provides second type of data information to the blockchain so that the blockchain stores the second type of data information in the second node.

[0062] Figure 1 This is a flowchart illustrating the intelligent certificate verification method provided in this application embodiment. The executing entity of this method can be a computer; however, this embodiment does not impose any particular limitation. Figure 1 As shown, the method may include:

[0063] S101. Obtain the certificate number and validity period information, the first node information and the second node information of the blockchain. The first node information is the certificate number and validity period information of the valid certificate stored by the first party organization, and the second node information is the certificate number information currently being used by the second party organization. The first party organization and the second party organization are different organizations.

[0064] Among them, a certificate to be verified can refer to a certificate for which the user cannot confirm the authenticity of the certificate number, whether it is within the validity period, or whether it is currently in use.

[0065] Validity information refers to the time period during which a certificate is valid.

[0066] A blockchain can refer to a chain composed of multiple block data nodes, where the information of each data node cannot be tampered with. For example, data containing valid certificate number information and validity period information, and data containing certificate number information currently in use, are placed into the blockchain to obtain two data nodes. The first data node contains the valid certificate number information and validity period information, and the second data node contains the certificate number information currently in use.

[0067] A first-party institution can refer to a certification authority that provides the blockchain with the numbering and validity information of all valid certificates that have completed the certification process.

[0068] Numbering information refers to the numbering of a valid certificate by the issuing authority according to specific numbering rules, thus obtaining the numbering information of the valid certificate.

[0069] The second-party institution can refer to a certificate-using institution that provides the blockchain with the certificate number information of the certificate it is currently using.

[0070] Based on the valid certificate number information in the first-party organization and the certificate number information currently in use in the second-party organization, the certificate in the first-party organization currently in use by the second-party organization can be determined.

[0071] In this embodiment of the application, before obtaining the certificate number and validity period information, the first node information and the second node information of the blockchain, the method further includes:

[0072] Based on the certificate type of the certificate to be verified, determine the first-party organization and the second-party organization that can verify the validity of the certificate to be verified;

[0073] Based on the first-party organization, obtain the certificate number and validity period information stored by the first-party organization;

[0074] The number and validity period information of the valid certificate stored by the first-party institution are placed into the blockchain to determine the first node information of the blockchain;

[0075] Based on the second-party organization, obtain the certificate number information that the second-party organization is using;

[0076] The certificate number information currently being used by the second party is placed into the blockchain to determine the second node information of the blockchain.

[0077] In this process, the issuing authority provides the blockchain with the number and validity period information of the valid certificate that has completed the issuance process, so that the blockchain can store the number and validity period information of the valid certificate in the first data node information. The certificate-using authority provides the blockchain with the number information of the certificate currently in use by the certificate-using authority, so that the blockchain can store the number information of the currently used certificate in the second data node information, thereby determining the two node information of the blockchain.

[0078] In this embodiment of the application, obtaining the certificate number and validity period information, the first node information and the second node information of the blockchain includes:

[0079] Obtain the certificate number and validity period information to be verified;

[0080] Based on the certificate number and validity period information, determine the blockchain to verify the validity of the certificate;

[0081] Based on the blockchain, the first node information and the second node information of the blockchain are determined. The first node information is the number and validity period information of the valid certificate stored by the first party institution, and the second node information is the certificate number information currently being used by the second party institution.

[0082] Specifically, based on the type of certificate to be verified, the target blockchain for verifying the validity of the certificate can be determined. The obtained certificate number and validity period information are then integrated into the blockchain, enabling the blockchain to determine the target node information capable of verifying the validity of the certificate based on the certificate number and validity period information. Using the certificate number and validity period information, the first node information storing the valid certificate number and validity period information in the target node information is determined. Using the certificate number information, the second node information storing the currently used certificate number information in the target node information can be determined, thereby determining the first and second node information in the blockchain capable of verifying the validity of the certificate.

[0083] S102. Determine the validity of the certificate to be verified based on the certificate number and validity period information, the first node information and the second node information of the blockchain.

[0084] The process involves several steps: First, based on the certificate number and validity period information of the certificate to be verified, the verification interface for the certificate to be verified is invoked. Second, based on the first node information of the blockchain, the number and validity period information of the valid certificate provided by the first-party organization are determined. This valid certificate number and validity period information are then compared and verified with those of the certificate to be verified in the verification interface, resulting in a first target result indicating that the valid certificate number and validity period information match. Third, based on the second node information of the blockchain, the certificate number information currently in use provided by the second-party organization is determined. This second certificate number information is encrypted to obtain first encrypted information, and the certificate number information of the certificate to be verified is encrypted to obtain second encrypted information. The first and second encrypted information are then compared and encrypted to obtain a second target result indicating that the certificate to be verified is not currently in use. Finally, based on these two target results, the validity of the certificate to be verified can be determined.

[0085] In this embodiment of the application, the validity of the certificate to be verified is determined based on the certificate number and validity period information, the first node information and the second node information of the blockchain, including:

[0086] Based on the information from the first node of the blockchain, determine the number and validity period of the valid certificate;

[0087] The number information of the certificate to be verified is compared with the number information of the valid certificate to obtain the first verification result that the number information of the certificate to be verified matches the number information of the valid certificate.

[0088] The validity period information of the certificate to be verified is compared with the validity period information of the valid certificate to obtain a second verification result in which the validity period information of the certificate to be verified matches the validity period information of the valid certificate.

[0089] Based on the first verification result and the second verification result, the validity of the certificate number information and validity period information of the certificate to be verified is determined.

[0090] The process involves comparing the certificate number to be verified with the number of a valid certificate. If the certificate number does not match the valid certificate number, the certificate to be verified is invalid.

[0091] The validity period information of the certificate to be verified is compared with that of the valid certificate. If the validity period of the certificate to be verified does not match that of the valid certificate, then the validity period information of the certificate to be verified is invalid. For example, if the validity period information of the certificate to be verified is from May 5, 2023 to June 5, 2023, while the validity period information of the valid certificate is from May 5, 2023 to June 1, 2023, then the validity period information of the certificate to be verified is not true, and therefore the certificate to be verified is invalid.

[0092] In this embodiment of the application, the validity of the certificate to be verified is determined based on the certificate number and validity period information, the first node information and the second node information of the blockchain. The method further includes:

[0093] Based on the information from the second node of the blockchain, determine the certificate number information currently in use;

[0094] The certificate number to be verified is encrypted and compared with the certificate number currently in use, and the verification result is that the certificate number to be verified does not match the certificate number currently in use.

[0095] Based on the verification results, we can see that the certificate to be verified is currently not in use.

[0096] The validity of the certificate to be verified is determined based on the information that the certificate is not currently in use.

[0097] In this embodiment, the verification result of a mismatch between the certificate number information to be verified and the certificate number information currently in use is obtained by encrypting and comparing the two. This includes:

[0098] Based on the certificate number information to be verified, obtain the first random number of the certificate number information to be verified;

[0099] Based on the certificate number information currently in use, obtain a second random number for the certificate number information currently in use;

[0100] The certificate number to be verified and the certificate number currently in use are converted to obtain the target certificate number to be verified and the target certificate number. The target certificate number to be verified and the target certificate number have the same data length.

[0101] Multiply the first random number by the target number to be verified to obtain the first encrypted information;

[0102] The second encrypted information is obtained by combining the second random number with the first encrypted information;

[0103] Multiply the second random number by the target certificate number to obtain the third encrypted information;

[0104] The second encrypted information is compared with the third encrypted information, and the verification result is that the second encrypted information and the third encrypted information do not match.

[0105] In this embodiment of the application, the second encrypted information is obtained based on the second random number and the first encrypted information, including:

[0106] Multiply the second random number by the first encrypted information to obtain the target encrypted data;

[0107] The target encrypted data is multiplied by the first random number to obtain the second encrypted information.

[0108] The process involves converting the certificate number of the received certificate to be verified into a first random number, converting the certificate number currently in use in the blockchain into a second random number, and simultaneously converting the certificate number of the certificate to be verified and the certificate number currently in use into a target certificate number and a target certificate number of the same length. The first random number is multiplied by the target certificate number and the second random number to obtain the target encrypted information to be verified. The second random number is multiplied by the target certificate number to obtain the target encrypted information. The target encrypted information to be verified and the target encrypted information are compared. If they do not match, it indicates that the certificate to be verified is not currently in use and there is no certificate affiliation, thus confirming the validity of the certificate to be verified.

[0109] The intelligent certificate verification method provided in this application can obtain the certificate number and validity period information, the first node information and the second node information of the blockchain. The first node information is the certificate number and validity period information of the valid certificate stored by the first-party organization, and the second node information is the certificate number information currently being used by the second-party organization. Based on the certificate number and validity period information, the first node information and the second node information of the blockchain, the validity of the certificate to be verified can be determined. This solves the problem in the prior art that it is impossible to accurately determine the authenticity, validity and whether there is any affiliation of the certificate, and ensures the credibility and privacy of the certificate information by performing encrypted comparison and verification on the certificate number and validity period information respectively.

[0110] Figure 2 This is a flowchart illustrating another method for intelligent certificate verification provided in this application embodiment. The executing system of this method can be a verification system for construction site qualification certificates; however, this embodiment does not impose any particular limitations. Figure 2 As shown, the method may include:

[0111] S201. Deploy the certificate verification system.

[0112] The verification system for safety assessment certificates for construction site enterprises mainly involves the joint efforts of the issuing agency and the bidding unit to establish a certificate verification alliance chain, thereby completing the deployment of the certificate verification system. For example, the issuing agency can refer to the housing and construction department. By receiving valid certificate information that has completed the issuance process from the issuing agency and the certificate information currently being used by the bidding unit, and deploying the above two certificate information to the blockchain, a certificate verification alliance chain can be obtained, thereby completing the deployment of the certificate verification system.

[0113] In this embodiment of the application, the deployment of a certificate verification system includes:

[0114] One-click deployment allows for quick setup of a blockchain environment, including the deployment of computing nodes. Computing nodes can refer to nodes that perform encrypted comparison of certificate number information.

[0115] Node management involves managing blockchain nodes and dynamically adding nodes. For example, a blockchain node can refer to a certificate information node provided by the issuing authority and a certificate information node currently in use provided by the certificate-using authority.

[0116] Channel management refers to the management of blockchain channels, which can refer to channels where blockchain nodes are deployed, such as the nodes corresponding to the certificate issuing structure and the nodes corresponding to the certificate-using institutions.

[0117] Smart contract management allows you to manage blockchain smart contracts, edit, develop, install, and instantiate them online. Each smart contract stores an unintentional pseudo-random function that can be used to calculate whether certificate data has been used. However, smart contracts are only used for data calculation and do not save the calculation results or the original data.

[0118] Data management provides data source configuration and file upload services, and authorizes data.

[0119] Certificate verification provides services to check the authenticity of certificates, whether certificates have expired, and whether certificates are currently in use.

[0120] Behavior tracing allows users to query certificate usage records based on the certificate number or certificate QR code.

[0121] User management involves managing different types of users.

[0122] The monitoring and alerting system monitors the running nodes of the blockchain and sends alerts for abnormal nodes.

[0123] S202, User enters certificate information.

[0124] The certificate information can refer to the certificate number and the certificate's QR code.

[0125] For example, a certificate verification body can quickly verify the validity of a certificate by scanning a QR code or entering the certificate number. In this case, the certificate verification body can refer to the bidding agency.

[0126] S203, The system calls the verification interface to access the blockchain.

[0127] The data information in the blockchain is divided into two parts: one part is public information, and the other part is private information. For example, the certificate number and validity period information of ABC type certificates owned by the issuing authority can be shared on the blockchain, while the certificate number and start and end information of ABC type certificates in the project that have been tendered or are under construction owned by the bidding agency are private information and cannot be shared.

[0128] Specifically, by integrating the certificate information entered by the user into the blockchain, the blockchain can provide a corresponding certificate verification interface to verify the certificate information.

[0129] S204. Read the issuing authority data stored on the blockchain to obtain the result that the certificate actually exists.

[0130] The issuing authority data includes the certificate's valid number and the certificate's validity period.

[0131] In this embodiment of the application, reading the issuing authority data stored on the blockchain to determine whether the certificate exists includes:

[0132] Read the issuing authority data stored on the blockchain to obtain the certificate's valid number information;

[0133] Based on the certificate information entered by the user, determine the certificate number information entered by the user;

[0134] The valid certificate number is compared with the certificate number entered by the user to confirm that the entered certificate number matches the valid certificate number, thus confirming that the entered certificate is genuine.

[0135] S205. Read the issuing authority data stored on the blockchain to obtain the result that the certificate is within its validity period.

[0136] In this embodiment of the application, reading the issuing authority data stored on the blockchain to obtain the result that the certificate is within its validity period includes:

[0137] Read the issuing authority data stored on the blockchain to obtain the certificate's validity period data;

[0138] Based on the certificate information entered by the user, determine the validity period information of the certificate entered by the user;

[0139] The certificate validity period data is compared with the certificate validity period information entered by the user to determine whether the certificate validity period information entered by the user matches the certificate validity period data, thus obtaining the result that the certificate entered by the user is within the validity period.

[0140] S206. Call the smart contract to perform a privacy intersection calculation on the certificate information input by the user and the certificate authority data stored on the blockchain to obtain the result that the certificate has not been used.

[0141] The certificate verification system uses an unintentional pseudo-random function in the smart contract to perform encrypted intersection calculations on the certificate information input by the user, the certificate information currently in use, and the start and end information of use. This can determine whether the certificate input by the user is currently in use, thereby avoiding the situation of certificate affiliation.

[0142] In this embodiment of the application, a smart contract is invoked to perform a privacy intersection calculation on the certificate information input in the user manual and the certificate authority data stored on the blockchain to obtain the result that the certificate has not been used, including:

[0143] Based on the certificate information entered by the user, obtain the certificate number information entered by the user;

[0144] Based on the certificate-using institution data stored on the blockchain, obtain the certificate number information currently in use by the certificate-using institution;

[0145] The unintentional pseudo-random function in the smart contract is called to perform privacy encryption on the certificate number information input by the user and the certificate number information currently being used by the certificate issuing authority, so as to obtain the encrypted certificate number information input by the user and the encrypted certificate number information currently being used.

[0146] A privacy intersection calculation is performed on the encrypted number of the certificate input by the user and the encrypted number of the certificate currently in use. If the user inputs the encrypted number of the certificate and the encrypted number of the certificate currently in use, the result is that the certificate is not in use.

[0147] In this embodiment of the application, the method for performing a privacy intersection calculation on the encrypted number information of the user-input certificate and the encrypted number information of the certificate currently in use includes:

[0148] Generate a random number based on the certificate number entered by the user.

[0149] Generate a random number for the currently used certificate number based on the certificate number information being used;

[0150] Hash the input certificate number and the currently used certificate number to obtain the hashed input certificate number and the hashed currently used certificate number;

[0151] Computing node A encrypts the hashed input certificate number and sends the encrypted result to computing node B;

[0152] Computing node B performs secondary encryption on the data sent by computing node A, and then sends the encrypted result back to computing node A.

[0153] Computing node A performs inverse encryption on the result of the second encryption to obtain the inverse encryption result M;

[0154] Computing node B encrypts the certificate number being hashed and sends the encrypted result N to computing node A;

[0155] By comparing the two encryption results M and N, the intersection data between the encryption results M and N is obtained, and thus the usage of the user input certificate is obtained.

[0156] Hash processing refers to converting data into fixed-length data information through hash algorithms.

[0157] This application provides another intelligent certificate verification method that compares user-inputted certificate information with valid certificate information stored in the blockchain to determine the validity of the user-input certificate number and its validity. Simultaneously, by performing an encrypted comparison between the user-inputted certificate information and the certificate information stored in the blockchain, it can determine whether the user-input certificate information is being used without authorization, and the user cannot know the information of other certificates. This improves the efficiency of certificate verification and effectively enhances the security and trustworthiness of certificate information.

[0158] Figure 3 This is a schematic diagram of the structure of the smart verification device for certificates provided in an embodiment of this application. Figure 3 As shown, the smart verification device 30 for the certificate includes: an acquisition module 301 and a determination module 302.

[0159] in:

[0160] The acquisition module 301 is used to acquire the number and validity information of the certificate to be verified, the first node information and the second node information of the blockchain. The first node information is the number and validity information of the valid certificate stored by the first-party organization, and the second node information is the certificate number information currently being used by the second-party organization.

[0161] The determination module 302 is used to determine the validity of the certificate to be verified based on the certificate number and validity period information, the first node information and the second node information of the blockchain.

[0162] In this embodiment of the application, the acquisition module 301 can also be specifically used for:

[0163] Identify the first-party and second-party organizations;

[0164] Based on the first-party organization, obtain the certificate number and validity period information stored by the first-party organization;

[0165] The number and validity period information of the valid certificate stored by the first-party institution are placed into the blockchain to determine the first node information of the blockchain;

[0166] Based on the second-party organization, obtain the certificate number information that the second-party organization is using;

[0167] The certificate number information currently being used by the second party is placed into the blockchain to determine the second node information of the blockchain.

[0168] In this embodiment of the application, the acquisition module 301 can also be specifically used for:

[0169] Obtain the certificate number and validity period information to be verified;

[0170] Based on the certificate number and validity period information, determine the blockchain to verify the validity of the certificate;

[0171] Based on the blockchain, the first node information and the second node information of the blockchain are determined. The first node information is the number and validity period information of the valid certificate stored by the first party institution, and the second node information is the certificate number information currently being used by the second party institution.

[0172] In this embodiment of the application, the determining module 302 can also be specifically used for:

[0173] Based on the information from the first node of the blockchain, determine the number and validity period of the valid certificate;

[0174] The number information of the certificate to be verified is compared with the number information of the valid certificate to obtain the first verification result that the number information of the certificate to be verified matches the number information of the valid certificate.

[0175] The validity period information of the certificate to be verified is compared with the validity period information of the valid certificate to obtain a second verification result in which the validity period information of the certificate to be verified matches the validity period information of the valid certificate.

[0176] Based on the first verification result and the second verification result, the validity of the certificate number information and validity period information of the certificate to be verified is determined.

[0177] In this embodiment of the application, the determining module 302 can also be specifically used for:

[0178] Based on the information from the second node of the blockchain, determine the certificate number information currently in use;

[0179] The certificate number to be verified is encrypted and compared with the certificate number currently in use, and the verification result is that the certificate number to be verified does not match the certificate number currently in use.

[0180] Based on the verification results, we can see that the certificate to be verified is currently not in use.

[0181] The validity of the certificate to be verified is determined based on the information that the certificate is not currently in use.

[0182] In this embodiment of the application, the determining module 302 can also be specifically used for:

[0183] Based on the certificate number information to be verified, obtain the first random number of the certificate number information to be verified;

[0184] Based on the certificate number information currently in use, obtain a second random number for the certificate number information currently in use;

[0185] The certificate number to be verified and the certificate number currently in use are converted to obtain the target certificate number to be verified and the target certificate number. The target certificate number to be verified and the target certificate number have the same data length.

[0186] Multiply the first random number by the target number to be verified to obtain the first encrypted information;

[0187] The second encrypted information is obtained by combining the second random number with the first encrypted information;

[0188] Multiply the second random number by the target certificate number to obtain the third encrypted information;

[0189] The second encrypted information is compared with the third encrypted information, and the verification result is that the second encrypted information and the third encrypted information do not match.

[0190] In this embodiment of the application, the determining module 302 can also be specifically used for:

[0191] Multiply the second random number by the first encrypted information to obtain the target encrypted data;

[0192] The target encrypted data is multiplied by the first random number to obtain the second encrypted information.

[0193] As can be seen from the above, the smart certificate verification device 30 of this application embodiment comprises an acquisition module 301, used to acquire the number information and validity period information of the certificate to be verified, the first node information and the second node information of the blockchain. The first node information is the number information and validity period information of the valid certificate stored by the first-party institution, and the second node information is the certificate number information currently being used by the second-party institution. A determination module 302 is used to determine the validity of the certificate to be verified based on the number information and validity period information of the certificate to be verified, the first node information and the second node information of the blockchain. Thus, by verifying the authenticity of the number information and the validity period information of the certificate to be verified, the validity of the number information and validity period information of the certificate to be verified is determined. Simultaneously, by encrypting and comparing the number information of the currently used certificate and the number information of the certificate to be verified, it can be determined that the certificate to be verified is not being used by a third party, thereby verifying the validity of the certificate to be verified and solving the problem that data information is easily stolen and tampered with during the certificate verification process.

[0194] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 4 As shown, the electronic device 40 includes:

[0195] The electronic device 40 may include a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a communication component 403, and other components. The processor 401, memory 402, and communication component 403 are connected via a bus 404.

[0196] In the specific implementation process, at least one processor 401 executes computer execution instructions stored in memory 402, causing at least one processor 401 to execute the above-mentioned intelligent certificate verification method.

[0197] The specific implementation process of processor 401 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0198] In the above Figure 4In the illustrated embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0199] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0200] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0201] In some embodiments, a computer program product is also provided, including a computer program or instructions that, when executed by a processor, implement the steps in the intelligent verification method for any of the above-described certificates.

[0202] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0203] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0204] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the certificate smart verification methods provided in embodiments of this application.

[0205] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0206] According to one aspect of this application, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium.

[0207] Since the instructions stored in the storage medium can execute the steps in any of the smart certificate verification methods provided in the embodiments of this application, the beneficial effects that any of the smart certificate verification methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0208] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0209] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A smart verification method for certificates, characterized in that, The method includes: Obtain the certificate number and validity period information to be verified, the first node information and the second node information of the blockchain. The first node information is the certificate number and validity period information of the valid certificate stored by the first party organization, and the second node information is the certificate number information currently being used by the second party organization. The first party organization and the second party organization are different organizations. The validity of the certificate to be verified is determined based on its serial number and validity period, the first node information, and the second node information of the blockchain. Specifically, the verification interface for the certificate to be verified is invoked based on the serial number and validity period of the certificate to be verified. Based on the first node information of the blockchain, the serial number and validity period of a valid certificate provided by a first-party organization are determined. In the verification interface, the serial number and validity period of this valid certificate are compared and verified with the serial number and validity period of the certificate to be verified, resulting in a first target result indicating that the serial number and validity period of the valid certificate match the serial number and validity period of the certificate to be verified. Based on the second node information of the blockchain, the serial number of a certificate currently in use provided by a second-party organization is determined. This "currently in use" serial number is encrypted to obtain first encrypted information, and the serial number of the certificate to be verified is encrypted to obtain second encrypted information. The first and second encrypted information are then compared and encrypted to obtain a second target result indicating that the certificate to be verified is not currently in use. The validity of the certificate to be verified is determined based on both the first and second target results. The process of obtaining the certificate number and validity period information, the first node information and the second node information of the blockchain includes: Obtain the certificate number and validity period information to be verified; Based on the certificate number and validity period information, determine the blockchain for verifying the validity of the certificate. Based on the blockchain, determine the first node information and the second node information of the blockchain.

2. The method according to claim 1, characterized in that, Before obtaining the certificate number and validity period information, the first node information and the second node information of the blockchain, the method further includes: Based on the certificate type of the certificate to be verified, determine the first-party organization and the second-party organization that can verify the validity of the certificate to be verified; Based on the first-party organization, obtain the number and validity period information of the valid certificate stored by the first-party organization; The number and validity period information of the valid certificate stored by the first-party institution are placed into the blockchain to determine the first node information of the blockchain; Based on the second-party organization, obtain the certificate number information currently in use by the second-party organization; The certificate number information currently being used by the second party is placed into the blockchain to determine the second node information of the blockchain.

3. The method according to claim 1, characterized in that, The step of determining the validity of the certificate to be verified based on its number and validity period information, and the first and second node information of the blockchain, includes: Based on the information of the first node in the blockchain, determine the number and validity period of the valid certificate; The number information of the certificate to be verified is compared with the number information of the valid certificate to obtain a first verification result in which the number information of the certificate to be verified matches the number information of the valid certificate. The validity period information of the certificate to be verified is compared with the validity period information of the valid certificate to obtain a second verification result in which the validity period information of the certificate to be verified matches the validity period information of the valid certificate. Based on the first verification result and the second verification result, the validity of the certificate number information and validity period information of the certificate to be verified is determined.

4. The method according to claim 1, characterized in that, The step of determining the validity of the certificate to be verified based on its number and validity period information, and the first and second node information of the blockchain, includes: Based on the second node information of the blockchain, determine the certificate number information currently in use; The number information of the certificate to be verified is encrypted and compared with the number information of the certificate currently in use, and a verification result is obtained that the number information of the certificate to be verified does not match the number information of the certificate currently in use; Based on the verification results, it is determined that the certificate to be verified is currently not in use; The validity of the certificate to be verified is determined based on the information that the certificate to be verified is currently not in use.

5. The method according to claim 4, characterized in that, The step of encrypting and comparing the certificate number information to be verified with the certificate number information currently in use to obtain a verification result that the certificate number information to be verified does not match the certificate number information currently in use includes: Based on the number information of the certificate to be verified, a first random number is obtained from the number information of the certificate to be verified; Based on the certificate number information currently in use, a second random number is obtained from the certificate number information currently in use; The number information of the certificate to be verified and the number information of the certificate currently in use are converted to obtain the target number to be verified and the target certificate number, wherein the data length of the target number to be verified and the target certificate number are the same; Multiply the first random number by the target number to be verified to obtain the first encrypted information; The second encrypted information is obtained by combining the second random number with the first encrypted information; Multiply the second random number by the target certificate number to obtain the third encrypted information; The second encrypted information is compared with the third encrypted information, and a verification result is obtained that the second encrypted information and the third encrypted information do not match.

6. The method according to claim 5, characterized in that, The step of obtaining the second encrypted information based on the second random number and the first encrypted information includes: Multiply the second random number by the first encrypted information to obtain the target encrypted data; The target encrypted data is multiplied by the first random number to obtain the second encrypted information.

7. A smart verification device for certificates, characterized in that, include: The acquisition module is used to acquire the number and validity information of the certificate to be verified, the first node information and the second node information of the blockchain. The first node information is the number and validity information of the valid certificate stored by the first-party organization, and the second node information is the certificate number information currently being used by the second-party organization. A determination module is used to determine the validity of the certificate to be verified based on the certificate number and validity period information, the first node information, and the second node information of the blockchain. Specifically, based on the certificate number and validity period information, the module calls a verification interface for the certificate; based on the first node information of the blockchain, it determines the certificate number and validity period information of a valid certificate provided by a first-party organization, and compares this valid certificate number and validity period information with the certificate number and validity period information of the certificate to be verified in the verification interface to obtain a first target result that the valid certificate number and validity period information match; based on the second node information of the blockchain, it determines the certificate number information currently in use provided by a second-party organization, encrypts the currently in use certificate number information to obtain first encrypted information, encrypts the certificate number information of the certificate to be verified to obtain second encrypted information, and compares the first encrypted information and the second encrypted information to obtain a second target result that the certificate to be verified is not in use; based on the first target result and the second target result, the validity of the certificate to be verified is determined. The acquisition module is specifically used for: Obtain the certificate number and validity period information to be verified; Based on the certificate number and validity period information, determine the blockchain for verifying the validity of the certificate. Based on the blockchain, determine the first node information and the second node information of the blockchain.

8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Accredited certificate issuance system based on block chain and accredited certificate issuance method based on block chain using same, and accredited certificate authentication system based on block chain and accredited certificate authentication method based on block chain using same

    CN108369697A

  • Data acquisition method and system, electronic equipment and storage medium

    CN115941285A