An anti-counterfeiting method, device, electronic device and storage medium for electronic credentials

Through multi-level ordered aggregation signature technology, the problems of key hosting and high resource consumption in electronic credentials are solved, and efficient and secure verification of electronic credentials are achieved, which is suitable for online or offline environments.

CN113849860BActive Publication Date: 2024-11-08INSTITUTE OF INFORMATION ENGINEERING CHINESE ACADEMY OF SCIENCES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110949312.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-18
Publication Date
2024-11-08
Estimated Expiration
2041-08-18

AI Technical Summary

Technical Problem

The existing electronic credential anti-counterfeiting technology has problems such as key hosting, low security, easy signature tampering, high system resource consumption, and complex inspection process, making it difficult to effectively ensure the security and efficiency of electronic credentials during transmission.

Method used

Generate electronic credential signatures through multi-level orderly aggregation signatures, aggregate the signatures of each issuing agency into one signature, fill in the blank electronic credentials, and generate valid electronic credentials to verify their authenticity during the inspection process. It is suitable for online or Offline environment.

Benefits of technology

It reduces the complexity of password computing, improves the security and immutability of electronic credentials, improves verification efficiency, is suitable for a variety of application environments, and reduces dependence on network resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113849860B_ABST
    Figure CN113849860B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an anti-counterfeiting method, device, electronic device and storage medium for electronic credentials, the method comprising: obtaining a blank electronic credential, filling in the electronic credential signature and the electronic credential information of each issuing agency in the blank electronic credential, generating a valid electronic credential, so that during the inspection process of the valid electronic credential, the authenticity of the valid electronic credential can be verified according to the electronic credential signature and the electronic credential information of each issuing agency; wherein the electronic credential signature is generated by each issuing agency through a multi-level ordered aggregate signature method. The embodiment of the present application aggregates the signatures of multiple issuing agencies into one signature through an ordered aggregate signature method, which improves the inspection efficiency while ensuring the security and non-tamperability of the electronic credential information, effectively solves the anti-counterfeiting problem of electronic credentials, and is suitable for online or offline application environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data anti-counterfeiting technology, and specifically to an anti-counterfeiting method, device, electronic device and storage medium for electronic credentials. Background Art

[0002] With the continuous development of electronic information technology, electronic credentials are widely used in various technical fields. However, electronic credentials are at risk of being maliciously tampered with and forged during transmission. Therefore, when transmitting electronic credentials, anti-counterfeiting processing is required to ensure the security of electronic credentials during transmission.

[0003] At present, some methods have been proposed for the anti-counterfeiting technology of electronic credentials. One is to use electronic signature method for anti-counterfeiting. Electronic signature will sign the electronic credential content of the electronic credential issuer based on identity, or sign it through the public key cryptographic system based on the public key infrastructure (PKI) and the certificate issuing authority (CA), and verify the authenticity of the electronic credential content by verifying the signature of the electronic credential issuer. However, this method has the problem of key escrow. When attacked by an adversary, the signature of the electronic credential will be forged. The security level is low and there is a risk of signature tampering. The second is that the tax bureau server automatically reads the identity of the electronic credential issuer and the precise time of the server, and generates a unique electronic credential number for the transaction. When verifying, the authenticity of the credential is verified by logging into the tax authority's server and comparing the above parameters. However, this method must be checked online, which requires high concurrent service resources of the system. The third method is to encrypt the essential information of the electronic credential through QR code technology. However, this method has high hardware requirements and requires a mobile phone camera or a special inspection machine to scan and compare the invoice with the tax system database, and the inspection process is complicated. Summary of the invention

[0004] Since the existing methods have the above-mentioned problems, the embodiments of the present application provide an anti-counterfeiting method, device, electronic device and storage medium for electronic credentials.

[0005] Specifically, the embodiments of the present application provide the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides an anti-counterfeiting method for an electronic credential, comprising:

[0007] Obtain a blank electronic credential, fill in the electronic credential signature and the electronic credential information of each issuing agency in the blank electronic credential, and generate a valid electronic credential, so that during the inspection process of the valid electronic credential, the authenticity of the valid electronic credential can be verified based on the electronic credential signature and the electronic credential information of each issuing agency;

[0008] Among them, the electronic credential signature is generated by each issuing agency through a multi-level ordered aggregate signature method.

[0009] Optionally, obtaining a blank electronic credential includes:

[0010] Obtain blank electronic credential information for identifying the issuer, and generate a blank electronic credential based on the blank electronic credential information and the issuer's electronic credential signature.

[0011] Optionally, after the issuer generates a blank electronic credential according to the blank electronic credential information and the issuer's electronic credential signature, the method further includes:

[0012] The electronic credential signature of the issuing party is sent to the issuer, so that the issuer generates the electronic credential signature of the issuer according to the electronic credential signature of the issuing party.

[0013] Optionally, the electronic credential signature and the electronic credential information of each issuing agency are filled in a blank electronic credential to generate a valid electronic credential, including:

[0014] Obtaining the first electronic credential information used by the issuer to describe the specific information of the transaction, filling the first electronic credential information in a blank electronic credential to generate a first electronic credential, and generating the electronic credential signature of the issuer according to the electronic credential signature of the issuer, filling the electronic credential signature of the issuer in the first electronic credential, and sending the electronic credential signature of the issuer to the invoicing platform;

[0015] Obtain the second electronic credential information generated by the invoicing platform according to the first electronic credential information and the electronic credential signature of the issuer, fill the second electronic credential information in the first electronic credential to generate the second electronic credential, and generate the electronic credential signature of the invoicing platform according to the electronic credential signature of the issuer, fill the electronic credential signature of the invoicing platform in the second electronic credential, and send the electronic credential signature of the invoicing platform to the approving party;

[0016] Obtain the third electronic credential information generated by the approving party based on the second electronic credential information and the electronic credential signature of the invoicing platform, fill the third electronic credential information in the second electronic credential to generate a third electronic credential, and generate the electronic credential signature of the approving party based on the electronic credential signature of the invoicing platform, fill the electronic credential signature of the approving party in the third electronic credential to generate a valid electronic credential.

[0017] Optionally, the verification of the authenticity of the valid electronic credential based on the electronic credential signature and the electronic credential information of each issuing institution includes:

[0018] Obtaining blank electronic credential information, first electronic credential information, second electronic credential information, third electronic credential information, electronic credential signature of the approving party, and identity information submitted by each issuing agency during registration in the valid electronic credential;

[0019] The authenticity of the valid electronic credential is verified based on the blank electronic credential information, the first electronic credential information, the second electronic credential information, the third electronic credential information, the electronic credential signature of the approving party and the identity information submitted by each issuing agency during registration.

[0020] Optionally, verifying the authenticity of the valid electronic credential based on the blank electronic credential information, the first electronic credential information, the second electronic credential information, the third electronic credential information, the electronic credential signature of the approving party, and the identity information submitted by each issuing agency during registration includes:

[0021] Verify whether the identity information submitted by each issuing agency during registration is repeated. If it is repeated, the verification fails. Otherwise, calculate whether the verification equation is established based on the blank electronic credential information, the first electronic credential information, the second electronic credential information, the third electronic credential information and the electronic credential signature of the approving party. If so, the valid electronic credential is a real electronic credential.

[0022] Optionally, the verification equation is:

[0023]

[0024] Among them, e(σ a ,g) is a point on the elliptic curve, σ a is the first vector of the electronic credential signature of the approving party, g is a generator of the additive cyclic group G of order p formed by the points on the elliptic curve, σ b The second vector of the electronic credential signature of the approving party, σ c is the third vector of the electronic credential signature of the approving party, e is the elliptic curve function, H2(ID i ) is the second hash function of the identity of each issuing agency, α2g and α1g are the system public parameters generated in the initialization phase, H1(ID i ) is the first hash function of the identity of each issuing agency, H3(ID i ||m i ) is a third hash function that concatenates the identity information of each issuing agency and the confirmation message of the issuing agency.

[0025] In a second aspect, an embodiment of the present application provides an anti-counterfeiting device for electronic credentials, including:

[0026] A processing module is used to obtain a blank electronic credential, fill the electronic credential signature and the electronic credential information of each issuing agency in the blank electronic credential, and generate a valid electronic credential, so that during the inspection process of the valid electronic credential, the authenticity of the valid electronic credential can be verified according to the electronic credential signature and the electronic credential information of each issuing agency;

[0027] Among them, the electronic credential signature is generated by each issuing agency through a multi-level ordered aggregate signature method.

[0028] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the anti-counterfeiting method for electronic credentials as described in the first aspect is implemented.

[0029] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the anti-counterfeiting method for electronic credentials as described in the first aspect.

[0030] It can be seen from the above technical solution that the embodiment of the present application obtains a blank electronic credential, fills the electronic credential information and electronic credential signature corresponding to each issuing agency in the blank electronic credential, and generates a valid electronic credential, so that during the verification process, the authenticity of the valid electronic credential can be verified according to the electronic credential information and electronic credential signature corresponding to each issuing agency. Among them, the electronic credential signature corresponding to each issuing agency is generated by a multi-level ordered aggregate signature method. It can be seen that, on the one hand, the embodiment of the present application issues electronic credentials by an ordered aggregate signature method, which effectively solves the anti-counterfeiting problem of electronic credentials and ensures the security and non-tamperability of electronic credential information. On the other hand, by aggregating the signatures of multiple issuing agencies into one signature, the efficiency of verification is improved, which is suitable for online or offline application environments. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0032] Figure 1 It is a flowchart of the steps of the anti-counterfeiting method of the electronic credential provided in the embodiment of the present application;

[0033] Figure 2 It is a flowchart of the steps for issuing an electronic credential provided in an embodiment of the present application;

[0034] Figure 3 It is a flowchart of the steps of checking electronic credentials provided in an embodiment of the present application;

[0035] Figure 4 It is a schematic diagram of the structure of the anti-counterfeiting device of the electronic credential provided in the embodiment of the present application;

[0036] Figure 5 It is a schematic diagram of the structure of the anti-counterfeiting system of the electronic credential provided in the embodiment of the present application;

[0037] Figure 6 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

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

[0039] Figure 1 is a flowchart of the steps of the anti-counterfeiting method of the electronic credential provided in the embodiment of the present application, Figure 2 is a flowchart of the steps for issuing an electronic credential provided in an embodiment of the present application, Figure 3 This is a flowchart of the steps for checking electronic credentials provided by the embodiment of the present application. Figures 1 to 3 The anti-counterfeiting method of the electronic credential provided in the embodiment of the present application is explained and illustrated in detail. Figure 1 As shown, the anti-counterfeiting method of the electronic credential provided in the embodiment of the present application includes:

[0040] Step 101: Obtain a blank electronic credential, fill in the electronic credential signature and the electronic credential information of each issuing agency in the blank electronic credential, and generate a valid electronic credential, so that during the inspection process of the valid electronic credential, the authenticity of the valid electronic credential can be verified according to the electronic credential signature and the electronic credential information of each issuing agency;

[0041] Among them, the electronic credential signature is generated by each issuing agency through a multi-level ordered aggregate signature method.

[0042] In this step, firstly, blank electronic credential information for identifying the identity of the issuer is obtained, and a blank electronic credential is generated according to the blank electronic credential information and the electronic credential signature of the issuer.

[0043] In this step, after obtaining the blank electronic credential, the electronic credential signature of the issuer is sent to the issuer, so that the issuer generates the electronic credential signature of the issuer based on the electronic credential signature of the issuer.

[0044] In this step, for the issuer: first obtain the first electronic credential information used by the issuer to describe the specific information of the transaction, then fill in the first electronic credential information in the blank electronic credential to generate the first electronic credential, and generate the issuer's electronic credential signature based on the issuer's electronic credential signature, and fill in the issuer's electronic credential signature in the first electronic credential, and finally send the issuer's electronic credential signature to the invoicing platform.

[0045] In this step, for the issuing platform: first, obtain the second electronic credential information generated by the invoicing platform based on the first electronic credential information and the electronic credential signature of the issuer, then fill the second electronic credential information in the first electronic credential to generate the second electronic credential, and generate the electronic credential signature of the invoicing platform based on the electronic credential signature of the issuer, and fill the electronic credential signature of the invoicing platform in the second electronic credential. Finally, send the electronic credential signature of the invoicing platform to the approving party.

[0046] In this step, for the approving party: first obtain the third electronic credential information generated by the approving party based on the second electronic credential information and the electronic credential signature of the invoicing platform, then fill in the third electronic credential information in the second electronic credential to generate a third electronic credential, and generate the approving party's electronic credential signature based on the electronic credential signature of the invoicing platform, and fill in the approving party's electronic credential signature in the third electronic credential to finally generate a valid electronic credential.

[0047] It can be seen from the above technical solution that the embodiment of the present application obtains a blank electronic credential, fills the electronic credential information and electronic credential signature corresponding to each issuing agency in the blank electronic credential, and generates a valid electronic credential, so that the authenticity of the valid electronic credential can be verified according to the electronic credential information and electronic credential signature corresponding to each issuing agency during the verification process. Among them, the electronic credential signature corresponding to each issuing agency is generated by a multi-level ordered aggregate signature method. It can be seen that, on the one hand, the embodiment of the present application issues electronic credentials by an ordered aggregate signature method, which reduces the complexity of the cryptographic operation process, effectively solves the anti-counterfeiting problem of electronic credentials, and ensures the security and non-tamperability of electronic credential information. On the other hand, through the aggregate signature method, the signatures of multiple issuing agencies are aggregated into one signature, so that when the authenticity of the electronic credential is verified, the efficiency of the verification is improved, and it is suitable for online or offline application environments.

[0048] Based on the content of the above embodiment, in this embodiment, before obtaining a blank electronic credential, the system is first initialized, and the key generation center KGC (key generation center) inputs security parameters to generate system parameters and master keys. Optionally, this embodiment includes four issuing agencies: issuing, issuing, invoicing platform, and approving party. Each issuing agency sends the identity ID as input to KGC, and then KGC returns the corresponding user private key to each agency.

[0049] Based on the content of the above embodiment, in this embodiment, obtaining a blank electronic credential includes:

[0050] Obtain blank electronic credential information for identifying the issuer, and generate a blank electronic credential based on the blank electronic credential information and the issuer's electronic credential signature.

[0051] In this embodiment, the issuer generates initial blank electronic credential information m1 based on the invoice template information, the issuer identity ID1, the issuer identification name and other information. The issuer confirms the initial blank credential information, and after confirming that it is correct, performs an initialization signature σ0 on the initial blank electronic credential information m1, and then the issuing institution performs an electronic credential signature σ1. Based on the initial blank electronic credential information m1, the issuer generates a blank electronic credential with the electronic credential signature σ1. The generated blank electronic credential is stored in the relevant database.

[0052] Based on the content of the above embodiment, in this embodiment, after the issuer generates a blank electronic credential according to the blank electronic credential information and the issuer electronic credential signature, the following is further included:

[0053] The electronic credential signature of the issuing party is sent to the issuer, so that the issuer generates the electronic credential signature of the issuer according to the electronic credential signature of the issuing party.

[0054] In this embodiment, it should be noted that, in the process of issuing electronic credentials, multiple issuing institutions sequentially perform ordered aggregate signatures on the electronic credentials, and transmit the electronic credential information and the electronic credential signature to the next institution. Therefore, in this embodiment, after the issuer generates a blank electronic credential based on the blank electronic credential information and the issuer's electronic credential signature, the issuer's electronic credential signature is sent to the issuer, so that the issuer generates the issuer's electronic credential signature based on the issuer's electronic credential signature.

[0055] Based on the content of the above embodiment, in this embodiment, the electronic credential signature and the electronic credential information of each issuing agency are filled in the blank electronic credential to generate a valid electronic credential, including:

[0056] Obtaining the first electronic credential information used by the issuer to describe the specific information of the transaction, filling the first electronic credential information in a blank electronic credential to generate a first electronic credential, and generating the electronic credential signature of the issuer according to the electronic credential signature of the issuer, filling the electronic credential signature of the issuer in the first electronic credential, and sending the electronic credential signature of the issuer to the invoicing platform;

[0057] Obtain the second electronic credential information generated by the invoicing platform according to the first electronic credential information and the electronic credential signature of the issuer, fill the second electronic credential information in the first electronic credential to generate the second electronic credential, and generate the electronic credential signature of the invoicing platform according to the electronic credential signature of the issuer, fill the electronic credential signature of the invoicing platform in the second electronic credential, and send the electronic credential signature of the invoicing platform to the approving party;

[0058] Obtain the third electronic credential information generated by the approving party based on the second electronic credential information and the electronic credential signature of the invoicing platform, fill the third electronic credential information in the second electronic credential to generate a third electronic credential, and generate the electronic credential signature of the approving party based on the electronic credential signature of the invoicing platform, fill the electronic credential signature of the approving party in the third electronic credential to generate a valid electronic credential.

[0059] In this embodiment, after a transaction occurs, the corporate issuer sends a request to issue an electronic credential. After receiving the request to issue an electronic credential, the issuing system generates the issuance data according to the specific information content of the transaction, including basic transaction information, the issuer name, the issuer identification number, etc. The issuer confirms the issuance data, and after confirming that it is correct, calculates the first electronic credential information m2=m1||m k ||σ1, and use the issuer's private key to sign the first electronic credential information m2. The issuer obtains the electronic credential signature σ1 of the issuer of the previous node, calculates the electronic credential signature σ2 of this node, generates the first electronic credential based on the first electronic credential information m2 and the issuer's electronic credential signature σ2, and sends the generated first electronic credential to the invoicing platform.

[0060] In this embodiment, after receiving the first electronic credential, the invoicing platform generates the second electronic credential information m3=m2||σ2 according to the first electronic credential information m2 and the electronic credential signature σ2 of the issuer. The invoicing platform confirms the new second electronic credential information, and after confirming that it is correct, it signs the second electronic credential information using the private key of the invoicing platform. Obtain the signature σ2 of the previous node and calculate the signature σ3 of this node. Generate the second electronic credential according to the second electronic credential information m3 and the electronic credential signature σ3 of the invoicing platform, and send the generated second electronic credential to the approval agency.

[0061] In this embodiment, the approving party receives the second electronic credential, and generates the third electronic credential information m4=m3||σ3 according to the second electronic credential information m3 of the second electronic credential and the electronic credential signature σ3 of the invoicing platform. The approving party signs the third electronic credential information. Obtain the signature σ3 of the previous node, and calculate the signature σ4 of this node. Generate a valid electronic credential based on the third electronic credential information m4 and the electronic credential signature σ4 of the approving party. The electronic credential contains various information in the invoice that can be queried by the verification system. After the valid electronic credential is sent to the enterprise's invoicing end, the invoicing process ends. It can be seen that the embodiment of the present application adopts a certificate-free public key cryptography system, which solves the key escrow problem in identity-based public key cryptography, eliminates the requirements for certificates in certificate-based cryptography, reduces system overhead, and facilitates communication in actual production.

[0062] Based on the content of the above embodiment, in this embodiment, the authenticity of the valid electronic credential is verified according to the electronic credential signature and the electronic credential information of each issuing institution, including:

[0063] Obtaining blank electronic credential information, first electronic credential information, second electronic credential information, third electronic credential information, electronic credential signature of the approving party, and identity information submitted by each issuing agency during registration in the valid electronic credential;

[0064] The authenticity of the valid electronic credential is verified based on the blank electronic credential information, the first electronic credential information, the second electronic credential information, the third electronic credential information, the electronic credential signature of the approving party and the identity information submitted by each issuing agency during registration.

[0065] In this embodiment, in an environment with good network conditions, verification can be performed through online verification. Specifically, the user terminal first extracts the elements of the valid electronic credential, including the identity ID submitted by each issuing agency during registration. i and electronic credential informationm i The list of components The final electronic credential signature σ4. Upload the extracted elements to the electronic credential third-party service platform. The electronic credential third-party service platform first determines the identity ID of each issuing agency in the list. i Is there a duplication? If so, stop verification and the electronic credential signature verification fails. If there is no duplication, calculate whether the verification equation holds. If the equation holds, it is determined that the electronic credential signature transmitted through the information path has not been tampered with by a malicious node, otherwise the electronic credential signature verification fails. It can be seen that the method for verifying electronic credentials provided in the embodiment of the present application, compared with other current legality verification schemes for electronic credentials, only needs to calculate one signature during verification, which reduces the calculation overhead, effectively reduces the time required for verification, and improves verification efficiency.

[0066] In this embodiment, optionally, when in an offline state or in a delay-tolerant network with limited node caching capabilities and network resources, the user is required to pre-acquire system public parameters on the electronic credential personal application, such as an APP. The authenticity of the electronic credential is directly verified locally. The electronic credential is calculated according to the verification formula. If the equation holds, the electronic credential is true, and if the equation does not hold, the electronic credential is false. It can be seen that the embodiment of the present application reduces the user's dependence on the current network environment. When the user is offline or in an application scenario of a delay-tolerant network with limited node caching capabilities and network resources, the electronic credential can also be verified offline.

[0067] Based on the content of the above embodiment, in this embodiment, the verification equation is:

[0068]

[0069] Among them, e(σ a ,g) is a point on the elliptic curve, σ a is the first vector of the electronic credential signature of the approving party, g is a generator of the additive cyclic group G of order p formed by the points on the elliptic curve, σ b The second vector of the electronic credential signature of the approving party, σ c is the third vector of the electronic credential signature of the approving party, e is the elliptic curve function, H2(ID i ) is the second hash function of the identity of each issuing agency, α2g and α1g are the system public parameters generated in the initialization phase, H1(ID i ) is the first hash function of the identity of each issuing agency, H3(ID i ||m i ) is a third hash function that concatenates the identity information of each issuing agency and the confirmation message of the issuing agency.

[0070] The following is described by specific examples:

[0071] First embodiment:

[0072] In this embodiment, if Figure 2 As shown, the electronic credential issuance method provided in the embodiment of the present application includes:

[0073] During the issuance process of electronic credentials, multiple different issuing agencies sign the electronic credentials in turn to ensure the integrity and non-forgeability of the electronic credentials.

[0074] The electronic credential issuance system is first initialized to set the system public parameters and master key.

[0075] ① Select the additive cyclic group (G,+) of prime order p formed by the points on the elliptic curve, and the multiplicative cyclic group (G T ,·), bilinear mapping e:G×G→G T .

[0076] ②g is a generator of G.

[0077] ③Select a random number α1∈Zp * , α2∈Zp * .

[0078] ④Select a secure hash function H1: {0,1} * →G * , H2: {0,1} * →G * , H3:{0,1} * →G * . Publish system parameters Ω=(G,G T ,e,g,α1g,α2g,H1,H2,H3) as the system public parameter mpk, mpk will be sent to each issuing agency. (α1,α2) as the master key msk.

[0079] msk and the user's identity ID i As input, calculate (α1H1(ID i ),α2H2(ID i )), as the key sk of user i IDi Return to the respective issuing authorities.

[0080] As an enterprise user, Company A enters the invoicing subsystem from the enterprise invoicing terminal and pre-stores user information, including Company A's invoice header, unit tax number, registered address and registered telephone number, opening bank and bank account number, etc. (i.e., VAT invoice issuance information).

[0081] The issuing agency generates the initial blank invoice information m1 based on the invoice template information, the issuer identity ID1, the issuer identification name and other information. The issuing agency confirms the initial blank credential information, and after confirming that it is correct, initializes the initial blank credential information m1 with a signature σ0=(σ a ,σ b ,σ c ), and then the issuing authority calculates the signature σ1.

[0082] σ c ′=σ c +xg

[0083] σ b ′=σ b +rg

[0084] σa ′=σ a +rσ c +xσ b ′+α2H2(ID1)+H3(ID1||m1)α1H1(ID1)

[0085] σ1=(σ a ′,σ b ′,σ c ′)

[0086] According to the initial blank credential information m1, the issuing authority signs σ1 to generate a blank electronic credential, and stores the generated blank electronic credential in a related database.

[0087] After the transaction occurs, the enterprise obtains basic transaction information such as the name, specification, model, quantity, unit price, amount, etc. of the transaction goods and services from the transaction subsystem and sends it to the invoicing subsystem. The invoicing request is sent from the invoicing subsystem, including basic transaction information, seller information, buyer information, remarks, etc. After receiving the invoicing request, the issuing system generates invoicing data based on the specific information content of the transaction, including basic transaction information, issuer name, issuer identification number, etc. The issuer confirms the invoicing data, and after confirmation, calculates m2=m1||m k ||σ1, and use the issuer's private key to sign the first electronic credential information m2. Get the signature of the previous node σ1=(σ a ,σ b ,σ c ), calculate the signature of this node.

[0088] σ c ′=σ c +xg

[0089] σ b ′=σ b +rg

[0090] σ a ′=σ a +rσ c +xσ b ′+α2H2(ID2)+H3(ID2||m2)α1H1(ID2)

[0091] σ2=(σ a ′,σ b ′,σ c ′)

[0092] A first electronic credential is generated according to the first electronic credential information m2 and the issuer's signature σ2, and the generated first electronic credential is sent to the invoicing platform.

[0093] After receiving the first electronic credential information, the invoicing platform generates the second electronic credential information m3=m2||σ2 according to the first electronic credential information m2 and the signature σ2 of the issuer. The invoicing platform confirms the new second electronic credential information, and after confirming that it is correct, it signs the second electronic credential information using the private key of the invoicing platform. Obtain the signature σ2=(σ a ,σ b ,σ c ), calculate the signature of this node.

[0094] σ c ′=σ c +xg

[0095] σ b ′=σ b +rg

[0096] σ a ′=σ a +rσ c +xσ b ′+α2H2(ID3)+H3(ID3||m3)α1H1(ID3)

[0097] σ3=(σ a ′,σ b ′,σ c ′)

[0098] A second electronic credential is generated according to the second electronic credential information m3 and the invoicing platform signature σ3, and the generated second electronic credential is sent to the approval agency.

[0099] The approval agency receives the second electronic credential information and generates the third electronic invoice information m4=m3||σ3 according to the second electronic credential information m3 of the second electronic credential and the signature σ3 of the invoicing platform. The approval agency signs the third electronic credential information. Obtain the signature σ3 of the previous node=(σ a ,σ b ,σ c ), calculate the signature of this node.

[0100] σ c ′=σ c +xg

[0101] σ b ′=σ b +rg

[0102] σ a ′=σ a +rσ c +xσ b ′+α2H2(ID4)+H3(ID4||m4)α1H1(ID4)

[0103] σ4=(σ a ′,σ b ′,σ c ′)

[0104] A valid electronic invoice is generated based on the third electronic invoice information m4 and the signature σ4 of the approval agency. The invoice contains various information in the invoice and can be queried by the verification system. After the valid electronic invoice is sent to the enterprise's invoicing terminal, the invoicing process ends.

[0105] Second embodiment:

[0106] In this embodiment, if Figure 3 As shown, the method for checking electronic credentials provided in the embodiment of the present application includes:

[0107] The electronic invoice verification platform includes the electronic invoice third-party comprehensive service platform and the electronic invoice personal application components.

[0108] Under good network conditions, verification can be performed online. The electronic invoice third-party service platform needs to obtain system public parameters.

[0109] The user first extracts the elements in the electronic invoice, including the identity ID i and invoice information i The list of components Final invoice signature σ4. Upload the extracted elements to the electronic invoice third-party service platform.

[0110] The electronic invoice third-party service platform first determines the identity ID of each user in the list i Is there a duplicate situation? If so, stop verification and the invoice signature verification fails.

[0111] calculate:

[0112]

[0113] If the equation holds true, it is determined that the invoice signature transmitted through this information path has not been tampered with by a malicious node, otherwise the invoice signature verification fails.

[0114] When in an offline state or in a delay-tolerant network with limited node cache capacity and network resources, users are required to obtain system public parameters in advance in the storage subsystem on their own electronic invoice applications, such as APP. When verification is required, the authenticity of the electronic invoice is directly verified locally. The electronic invoice is calculated according to the verification formula. If the equation is established, the electronic invoice is true, and if the equation is not established, the electronic invoice is false.

[0115] The user first extracts the elements in the electronic invoice, including the identity IDi and invoice information i The list of components Final invoice signature σ4. Send the extracted elements to the verification subsystem.

[0116] The verification subsystem first determines each user ID in the list i Is there a duplicate situation? If so, stop verification and the invoice signature verification fails.

[0117] calculate:

[0118]

[0119] If the equation holds true, it is determined that the invoice signature transmitted through this information path has not been tampered with by a malicious node, otherwise the invoice signature verification fails.

[0120] Third embodiment:

[0121] In this embodiment, if Figure 5 As shown, the anti-counterfeiting system of the electronic credential provided in the embodiment of the present application includes:

[0122] Enterprise invoicing end: The server used by the enterprise for invoicing. The transaction subsystem is responsible for completing the transaction with the purchaser and sending the transaction information to the invoicing subsystem. The invoicing subsystem is connected to the invoicing API of the third-party integrated service system for electronic invoices, and is responsible for pre-storing enterprise information, sending invoicing requests and receiving electronic invoices.

[0123] User interaction terminal: A personal electronic invoice application installed by the user on a personal terminal, such as an APP. It includes a storage subsystem and a verification subsystem. The storage subsystem needs to obtain the system public parameters in advance before the user verifies the invoice. When the user needs to verify the authenticity of the electronic invoice, the verification subsystem first needs to determine whether the network condition is good. If the network is good, an online verification is performed. If the network is offline or in a delay-tolerant network with limited node cache capacity and network resources, an offline verification is performed.

[0124] Application server of the issuance system: An application server can provide multiple business services of the same or different types to multiple user interaction terminals of the same or different types. The business includes but is not limited to invoice issuance by the issuing agency, invoice issuance by the issuer, invoice issuance by the invoice issuance platform, and invoice issuance by the approval agency, and the services are provided by the corresponding subsystems.

[0125] The invoice issuance by the issuing agency is to confirm that the credential template information, the identity identification of the issuer, the identification name of the issuer and other information are correct, and to generate initial blank credential information.

[0126] The invoice issued by the issuer is to confirm the information of both parties to the transaction and the specific content of the transaction, including basic transaction information, the name of the issuer, the identification number of the issuer, etc.

[0127] The invoice issuance by the invoicing platform is to confirm the invoice information and signature in the previous step.

[0128] The invoice issuance by the approval agency is to confirm the invoice information and signature in the previous step, and send the valid electronic invoice to the enterprise's invoicing end, and the invoicing process is completed.

[0129] Based on the same inventive concept, another embodiment of the present invention provides an anti-counterfeiting device for electronic credentials, such as Figure 4 As shown, an anti-counterfeiting device for electronic credentials provided in an embodiment of the present application includes:

[0130] Processing module 1 is used to obtain a blank electronic credential, fill in the electronic credential signature and the electronic credential information of each issuing agency in the blank electronic credential, and generate a valid electronic credential, so that during the inspection process of the valid electronic credential, the authenticity of the valid electronic credential can be verified according to the electronic credential signature and the electronic credential information of each issuing agency;

[0131] Among them, the electronic credential signature is generated by each issuing agency through a multi-level ordered aggregate signature method.

[0132] In this embodiment, blank electronic credential information for identifying the issuer is first obtained, and a blank electronic credential is generated according to the blank electronic credential information and the electronic credential signature of the issuer.

[0133] In this embodiment, after obtaining the blank electronic credential, the electronic credential signature of the issuer is sent to the issuer, so that the issuer generates the electronic credential signature of the issuer according to the electronic credential signature of the issuer.

[0134] In this embodiment, for the issuer: first, obtain the first electronic credential information used by the issuer to describe the specific information of the transaction, then fill in the first electronic credential information in the blank electronic credential to generate a first electronic credential, and generate the issuer's electronic credential signature based on the issuer's electronic credential signature, and fill in the issuer's electronic credential signature in the first electronic credential, and finally send the issuer's electronic credential signature to the invoicing platform.

[0135] In this embodiment, for the issuing platform: first, the second electronic credential information generated by the invoicing platform according to the first electronic credential information and the electronic credential signature of the issuing party is obtained, and then the second electronic credential information is filled in the first electronic credential to generate the second electronic credential, and the electronic credential signature of the invoicing platform is generated according to the electronic credential signature of the issuing party, and the electronic credential signature of the invoicing platform is filled in the second electronic credential. Finally, the electronic credential signature of the invoicing platform is sent to the approving party.

[0136] In this embodiment, for the approving party: first, obtain the third electronic credential information generated by the approving party based on the second electronic credential information and the electronic credential signature of the invoicing platform, then fill in the third electronic credential information in the second electronic credential to generate a third electronic credential, and generate the approving party's electronic credential signature based on the electronic credential signature of the invoicing platform, and fill in the approving party's electronic credential signature in the third electronic credential to finally generate a valid electronic credential.

[0137] It can be seen from the above technical solution that the embodiment of the present application obtains a blank electronic credential, fills the electronic credential information and electronic credential signature corresponding to each issuing agency in the blank electronic credential, and generates a valid electronic credential, so that the authenticity of the valid electronic credential can be verified according to the electronic credential information and electronic credential signature corresponding to each issuing agency during the verification process. Among them, the electronic credential signature corresponding to each issuing agency is generated by a multi-level ordered aggregate signature method. It can be seen that, on the one hand, the embodiment of the present application issues electronic credentials by an ordered aggregate signature method, which reduces the complexity of the cryptographic operation process, effectively solves the anti-counterfeiting problem of electronic credentials, and ensures the security and non-tamperability of electronic credential information. On the other hand, through the aggregate signature method, the signatures of multiple issuing agencies are aggregated into one signature, so that when the authenticity of the electronic credential is verified, the efficiency of the verification is improved, and it is suitable for online or offline application environments.

[0138] Based on the same inventive concept, another embodiment of the present invention provides an electronic device, see Figure 6 The structural diagram of the electronic device specifically includes the following contents: a processor 601, a memory 602, a communication interface 603 and a communication bus 604;

[0139] The processor 601, the memory 602, and the communication interface 603 communicate with each other through the communication bus 604; the communication interface 603 is used to realize information transmission between various devices;

[0140] The processor 601 is used to call the computer program in the memory 602. When the processor executes the computer program, it implements all steps of the above-mentioned anti-counterfeiting method of electronic credentials, for example: obtaining a blank electronic credential, filling the electronic credential signature and the electronic credential information of each issuing agency in the blank electronic credential, and generating a valid electronic credential, so that during the verification process, the authenticity of the valid electronic credential can be verified according to the electronic credential signature and the electronic credential information of each issuing agency; wherein the electronic credential signature is generated by each issuing agency through a multi-level ordered aggregate signature method.

[0141] Based on the same inventive concept, another embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements all the steps of the above-mentioned anti-counterfeiting method of electronic credentials, for example: obtaining a blank electronic credential, filling the electronic credential signature and the electronic credential information of each issuing agency in the blank electronic credential, and generating a valid electronic credential, so that during the verification process, the authenticity of the valid electronic credential can be verified according to the electronic credential signature and the electronic credential information of each issuing agency; wherein, the electronic credential signature is generated by the each issuing agency through a multi-level ordered aggregate signature method.

[0142] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0143] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present invention. Those of ordinary skill in the art may understand and implement them without creative effort.

[0144] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the anti-counterfeiting method of the electronic credential described in each embodiment or some parts of the embodiment.

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An anti-counterfeiting method for electronic credentials, characterized in that: include: Obtain a blank electronic credential, fill in the electronic credential signature and the electronic credential information of each issuing agency in the blank electronic credential, and generate a valid electronic credential, so that during the inspection process of the valid electronic credential, the authenticity of the valid electronic credential can be verified based on the electronic credential signature and the electronic credential information of each issuing agency; Wherein, the electronic credential signature is generated by each issuing agency through a multi-level ordered aggregate signature method; The verification of the authenticity of the valid electronic credential based on the electronic credential signature and the electronic credential information of each issuing institution includes: Obtaining blank electronic credential information, first electronic credential information, second electronic credential information, third electronic credential information, electronic credential signature of the approving party, and identity information submitted by each issuing agency during registration in the valid electronic credential; Verify the authenticity of the valid electronic credential based on the blank electronic credential information, the first electronic credential information, the second electronic credential information, the third electronic credential information, the electronic credential signature of the approving party, and the identity information submitted by each issuing agency during registration; Verify the authenticity of the valid electronic credential based on the blank electronic credential information, the first electronic credential information, the second electronic credential information, the third electronic credential information, the electronic credential signature of the approving party, and the identity information submitted by each issuing agency during registration, including: Verify whether the identity information submitted by each issuing agency during registration is repeated. If it is repeated, the verification fails. Otherwise, calculate whether the verification equation is established based on the blank electronic credential information, the first electronic credential information, the second electronic credential information, the third electronic credential information and the electronic credential signature of the approving party. If it is established, the valid electronic credential is a real electronic credential; The verification equation is: Among them, e(σ a ,g) is a point on the elliptic curve, σ a is the first vector of the electronic credential signature of the approving party, g is a generator of the additive cyclic group G of order p formed by the points on the elliptic curve, σ b The second vector of the electronic credential signature of the approving party, σ c is the third vector of the electronic credential signature of the approving party, e is the elliptic curve function, H2(ID i ) is the second hash function of the identity of each issuing agency, α2g and α1g are system public parameters generated in the initialization phase, H1(ID i ) is the first hash function of the identity of each issuing agency, H3(ID i ||m i ) is a third hash function that concatenates the identity information of each issuing agency and the confirmation message of the issuing agency, ID i is the identity of the i-th issuing agency, m i The electronic credential information confirmed by the i-th issuing agency, i is the serial number of the issuing agency, and n is the total number of issuing agencies.

2. The anti-counterfeiting method of electronic credentials according to claim 1, characterized in that: The step of obtaining a blank electronic credential comprises: Obtain blank electronic credential information for identifying the issuer, and generate a blank electronic credential based on the blank electronic credential information and the issuer's electronic credential signature.

3. The anti-counterfeiting method of electronic credentials according to claim 2, characterized in that: After the issuer generates a blank electronic credential according to the blank electronic credential information and the issuer's electronic credential signature, the method further includes: The electronic credential signature of the issuing party is sent to the issuer, so that the issuer generates the electronic credential signature of the issuer according to the electronic credential signature of the issuing party.

4. The anti-counterfeiting method of electronic credentials according to claim 3, characterized in that: The electronic credential signature and the electronic credential information of each issuing agency are filled in the blank electronic credential to generate a valid electronic credential, including: Obtaining the first electronic credential information used by the issuer to describe the specific information of the transaction, filling the first electronic credential information in a blank electronic credential to generate a first electronic credential, and generating the electronic credential signature of the issuer according to the electronic credential signature of the issuer, filling the electronic credential signature of the issuer in the first electronic credential, and sending the electronic credential signature of the issuer to the invoicing platform; Obtain the second electronic credential information generated by the invoicing platform according to the first electronic credential information and the electronic credential signature of the issuer, fill the second electronic credential information in the first electronic credential to generate the second electronic credential, and generate the electronic credential signature of the invoicing platform according to the electronic credential signature of the issuer, fill the electronic credential signature of the invoicing platform in the second electronic credential, and send the electronic credential signature of the invoicing platform to the approving party; Obtain the third electronic credential information generated by the approving party based on the second electronic credential information and the electronic credential signature of the invoicing platform, fill the third electronic credential information in the second electronic credential to generate a third electronic credential, and generate the electronic credential signature of the approving party based on the electronic credential signature of the invoicing platform, fill the electronic credential signature of the approving party in the third electronic credential to generate a valid electronic credential.

5. An anti-counterfeiting device for electronic credentials, characterized in that: include: A processing module is used to obtain a blank electronic credential, fill the electronic credential signature and the electronic credential information of each issuing agency in the blank electronic credential, and generate a valid electronic credential, so that during the inspection process of the valid electronic credential, the authenticity of the valid electronic credential can be verified according to the electronic credential signature and the electronic credential information of each issuing agency; Wherein, the electronic credential signature is generated by each issuing agency through a multi-level ordered aggregate signature method; The verification of the authenticity of the valid electronic credential based on the electronic credential signature and the electronic credential information of each issuing institution includes: Obtaining blank electronic credential information, first electronic credential information, second electronic credential information, third electronic credential information, electronic credential signature of the approving party, and identity information submitted by each issuing agency during registration in the valid electronic credential; Verify the authenticity of the valid electronic credential based on the blank electronic credential information, the first electronic credential information, the second electronic credential information, the third electronic credential information, the electronic credential signature of the approving party, and the identity information submitted by each issuing agency during registration; Verify the authenticity of the valid electronic credential based on the blank electronic credential information, the first electronic credential information, the second electronic credential information, the third electronic credential information, the electronic credential signature of the approving party, and the identity information submitted by each issuing agency during registration, including: Verify whether the identity information submitted by each issuing agency during registration is repeated. If it is repeated, the verification fails. Otherwise, calculate whether the verification equation is established based on the blank electronic credential information, the first electronic credential information, the second electronic credential information, the third electronic credential information and the electronic credential signature of the approving party. If it is established, the valid electronic credential is a real electronic credential; The verification equation is: Among them, e(σ a ,g) is a point on the elliptic curve, σ a is the first vector of the electronic credential signature of the approving party, g is a generator of the additive cyclic group G of order p formed by the points on the elliptic curve, σ b The second vector of the electronic credential signature of the approving party, σ c is the third vector of the electronic credential signature of the approving party, e is the elliptic curve function, H2(ID i ) is the second hash function of the identity of each issuing agency, α2g and α1g are system public parameters generated in the initialization phase, H1(ID i ) is the first hash function of the identity of each issuing agency, H3(ID i ||m i ) is a third hash function that concatenates the identity information of each issuing agency and the confirmation message of the issuing agency, ID i is the identity of the i-th issuing agency, m i The electronic credential information confirmed by the i-th issuing agency, i is the serial number of the issuing agency, and n is the total number of issuing agencies.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the anti-counterfeiting method for electronic credentials as described in any one of claims 1-4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the anti-counterfeiting method for electronic credentials as described in any one of claims 1 to 4 are implemented.