Supply chain financial distributed digital identity authentication method based on block chain

By using blockchain technology to perform distributed digital identity authentication in supply chain finance, a decentralized trust network is established, the information security problem of centralized identity authentication is solved, the trustworthy verification of identity and credentials is realized, and the supply chain is improved Financial security and efficiency.

CN118940313APending Publication Date: 2024-11-12JILIN PROVINCE JIKE SOFT INFORMATION TECH CO LTD
View PDF 0 Cites 11 Cited by

Patent Information

Application Number
CN202411020543.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In existing supply chain finance, due to the information security problems of centralized identity authentication, it is susceptible to attacks and tampering, and identity authentication information is difficult to ensure authenticity and credibility.

Method used

采用基于区块链的分布式数字身份认证方法,通过区块链上注册唯一的分布式数字身份DID,利用加密算法生成密钥对,建立去中心化的区块链信任网络,通过动态共识机制 Verify identity and credentials to ensure the security and non-forgery of identity information.

Benefits of technology

It effectively solves the problem of mutual identity trust in supply chain finance, eliminates the risks of information asymmetry and false identity, improves the efficiency of business audits of financial services, reduces costs, and improves the flexibility and security of identity and credential verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940313A_ABST
    Figure CN118940313A_ABST
Patent Text Reader

Abstract

The invention discloses a supply chain finance distributed digital identity authentication method based on a block chain. The method comprises the steps that S100, participants register unique distributed digital identities (DID) respectively; s200, registering a certificate issuing party of the authority as a digital certificate authorization mechanism, and registering and providing a digital certificate declaration template; step S300, the financing enterprise applicant applies for an enterprise qualification digital certificate to the authority certificate issuer, and the authority certificate issuer verifies a distributed digital identity (DID) of the financing enterprise applicant; step S400, the financing enterprise applicant signs an electronic transaction contract and signs the contract by using a private key, and the authority certificate issuer signs and issues a digital certificate and stores the certificate on the chain; and step S500, the financial service provider verifies the financing enterprise applicant DID by using a dynamic consensus mechanism and checks the enterprise qualification digital certificate and the electronic contract digital certificate of the financing enterprise applicant.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of supply chain finance data security technology, and in particular to a trusted identification and authentication method for distributed digital identities of multiple participants in supply chain finance, specifically a distributed digital identity authentication method for supply chain finance based on blockchain. Background Art

[0002] Existing supply chain finance involves multiple parties. Participants in each link need to provide a large number of paper documents and manual seals to prove their identity information and transaction information. The above-mentioned identity proof methods are not only cumbersome, but also prone to forgery and tampering, and the authenticity and credibility of the information are difficult to guarantee; the identity data of participants in multiple links of the supply chain are managed and controlled by a single authoritative organization, which poses information security issues; the user's identity and privacy data is stored in a centralized identity authentication server, which is vulnerable to risks caused by external attacks, internal malicious behavior and misoperation, resulting in illegal access to sensitive data and leakage of user identity authentication information and privacy information data. Summary of the invention

[0003] The purpose of the present invention is to provide a distributed digital identity authentication method for supply chain finance based on blockchain to solve the problems raised in the above background technology.

[0004] In order to solve the above technical problems, the present invention provides the following technical solutions: a distributed digital identity authentication method for supply chain finance based on blockchain, the method comprising:

[0005] Step S100: The financing enterprise applicant, the authority certificate issuer and the financial service provider each register a unique distributed digital identity DID and generate a key pair through an encryption algorithm. The distributed digital identity DID is stored on the blockchain;

[0006] Step S200: The authority issuing the certificate registers as a digital certificate authority, which is used to register and provide digital certificate declaration templates;

[0007] Step S300: The financing enterprise applicant applies for the enterprise qualification digital certificate from the authority certificate issuer, and the authority certificate issuer verifies the identity holder relationship of the distributed digital identity DID of the financing enterprise applicant;

[0008] Step S400: The financing enterprise applicant signs the electronic transaction contract online, using the private key of the financing enterprise applicant's DID to sign the electronic contract data, and the electronic contract digital certificate is issued by the authority and stored on the chain;

[0009] Step S500: The financial service provider uses a dynamic consensus mechanism to verify the DID identity holder relationship of the financing enterprise applicant, and checks the enterprise qualification digital certificate and electronic contract digital certificate of the financing enterprise applicant.

[0010] Furthermore, step S100 includes:

[0011] Step S101: The financial service provider and the authority that issues the certificate jointly establish a blockchain alliance network. The blockchain node devices in the alliance chain network are maintained by each participant and become consensus nodes. The consensus nodes participate in the transaction consensus of the entire alliance chain, and all member nodes deploy DID smart contracts;

[0012] Step S102: Any participant in supply chain finance uses the DID digital identity wallet to initiate a DID registration application, becoming an applicant. After receiving the applicant's request, the DID service center generates a key pair using the ECDSA elliptic curve digital signature algorithm based on the specific elliptic curve parameter set secp256k1. The key pair includes a public key and a private key. The public key cannot be used to deduce the private key. The DID service center writes the public key into the DID document and stores it in the blockchain, and sends the private key back to the applicant, who stores the private key in the DID digital identity wallet. The DID service center generates a hexadecimal string based on the public key and concatenates the hexadecimal string with the applicant's specific DID identifier prefix to form a complete and unique applicant DID. All DIDs are stored on the blockchain to ensure that identity information is globally visible and cannot be forged.

[0013] Step S103: Create a DID document, an authentication attribute unit, and a DID service endpoint in the blockchain. The DID document is used to store authentication information. The authentication information includes the DID of the identity holder. The DID document encodes the public key of the identity holder in Multicodec, formats the Multicodec-encoded public key through Base58 encoding, and then adds it to the authentication attribute unit. The DID service endpoint is a specific network address or interface pointing to the verification service, which is used to verify the identity of the DID holder or request access rights;

[0014] Step S104: Request the DID service center to call the DID smart contract to store the created DID and DID document metadata in the blockchain, which is then synchronously distributed to all nodes by the consortium chain network.

[0015] Further, step S200 includes:

[0016] Step S201: The authority issuing the certificate registers as a digital certificate authority, which collects certificate requirements from various participants and defines the data structure and verification logic and rules for each type of certificate;

[0017] Step S202: The digital credential authority registers, deploys and publishes the designed digital credential declaration template to the blockchain. The template includes but is not limited to basic corporate information, credit ratings, financial reports and transaction contracts. The digital credential authority monitors the use of the template and updates and optimizes it based on feedback from various participants.

[0018] Furthermore, step S300 includes:

[0019] Step S301: The financing enterprise applicant uses the distributed digital identity DID it holds and provides relevant materials to submit a request for an enterprise qualification digital certificate to the authority issuing the certificate;

[0020] Step S302: The DID verifier requests the DID service center to parse the DID submitted by the financing enterprise applicant, decompose and separate the DID identifier prefix and extract the address string in the DID terminal data, and send a query request for querying the DID document metadata based on the DID to the DID smart contract in the blockchain. The DID smart contract parsing interface obtains the DID document metadata information from the blockchain storage and returns it to the DID service center;

[0021] Step S303: The authority issuing the credential uses the service endpoint address in the metadata of the DID document and adopts a challenge-response mechanism to send an identity authentication challenge request to the financing enterprise applicant. The authority issuing the credential uses the distributed digital identity DID of the financing enterprise applicant to query the corresponding DID document on the blockchain to obtain the public key of the DID holder who accepts the identity authentication challenge, and then generates a random string and encrypts it with the public key. The encrypted string is sent to the financing enterprise applicant. The financing enterprise applicant uses the DID private key it holds to decrypt the encrypted string, restore the random string and send it back to the authority issuing the credential for verification. The authority issuing the credential verifies whether the DID and the decrypted content are consistent with the random string at the time of the challenge. If the results are consistent, it is determined that the identity of the DID holder of the financing enterprise applicant is secure and reliable, and the identity authentication is completed;

[0022] Step S304: The authority issuing the certificate uses the DID of the authority issuing the certificate to issue the enterprise qualification digital certificate to the financing enterprise applicant based on the digital certificate declaration template and enterprise information, calculates the hash value of the certificate data and stores the hash value in the blockchain.

[0023] Furthermore, step S400 includes:

[0024] Step S401: In supply chain finance, the party in need of an electronic contract digital certificate initiates an application to the authoritative institution, the certificate issuer. The authoritative institution, the certificate issuer, obtains the distributed digital identity DID of the applicant and requests the DID service center to resolve it. The DID service center queries whether the applicant's DID exists through the DID smart contract. When the applicant's DID exists, it obtains the corresponding DID document and sends the DID document metadata information back to the DID service center. Then, it extracts the encoded public key in the identity authentication attributes to restore the public key. After restoration, it encrypts a random string using the public key and outputs the encrypted random string ciphertext.

[0025] Step S402: The authoritative institution, the certificate issuer, initiates a challenge request for authenticating the identity of the DID holder through the service endpoint address in the applicant's DID document metadata, and sends the applicant's DID and the ciphertext of the encrypted random string to the applicant. The applicant decrypts the ciphertext using the DID private key it holds and restores it to the random string plaintext.

[0026] Step S403: The applicant sends the DID and the decrypted random string plaintext back to the authoritative institution, the certificate issuer, for verification. When it is consistent with the random string generated by the authoritative institution, the certificate issuer, it is considered that the identity of the applicant as the DID holder is credible.

[0027] Step S404: The authoritative institution, the certificate issuer, as the digital certificate issuer, generates digital certificate information based on the applicant's certificate claim information content and the digital certificate claim template. The digital certificate information writes the signature information of the digital certificate by the digital certificate issuer's DID and the digital certificate issuer's DID private key.

[0028] Using the Keccak256 cryptographic hash function, convert the digital certificate information data into a 256-bit fixed-length message digest, generate a random large integer L (0 < L < N, where N is the order of the elliptic curve), and through the formula:

[0029] Z = L * G

[0030] where G is the base point on the elliptic curve;

[0031] Calculate a point Z, extract the x coordinate from Z, and the x coordinate is r in the signature;

[0032] Through the formula:

[0033] F = k^(-1) * (H(m) + r * d) mod N

[0034] where H(m) is the digital certificate message digest, d is the digital certificate issuer's private key, and k^(-1) is the multiplicative inverse of k modulo N of the elliptic curve order;

[0035] Generate an F value calculated by the private key of the digital certificate issuer;

[0036] Calculate a recovery identifier v and finally get the signature data (r, s, v). The base64-encoded signature data is written into the information of the digital certificate issuer to verify whether the digital certificate issuer is legal and credible and whether the data content has been tampered with.

[0037] Step S405: The generated complete digital credential information is encrypted using the Keccak256 hash function to generate an information summary, which is the credential hash. The DID smart contract in the blockchain creates a credential logic unit, and the digital credential information summary is stored in the blockchain. Information related to user privacy is not stored on the chain, but is stored in the digital credential issuer. The privacy attribute of the applicant is proved by the statement issued by the digital credential issuer. The digital credential issuer sends the digital credential information back to the applicant, which is stored in the applicant's DID digital identity wallet.

[0038] Furthermore, step S500 includes:

[0039] Step S501: In the context of supply chain finance, the financial service provider is the digital credential verifier. The digital credential verifier uses a dynamic consensus mechanism to classify participants into different levels according to their business types and credit scores, and sets different numbers and types of digital credential verifiers according to the levels to perform dynamic consensus verification of supply chain finance;

[0040] Step S502: The digital credential verification party in supply chain finance that needs to verify the digital credential sends a request to the digital credential holder to apply for verification of the digital credential. The digital credential verification party obtains the distributed digital identity DID of the digital credential holder, requests the DID service center to resolve it, and queries whether the DID exists through the blockchain DID smart contract. If it exists, the corresponding DID document is obtained and the DID document metadata information is sent back;

[0041] The digital credential verifier extracts the encoded public key in the identity authentication attribute, decodes and restores the public key, uses the restored public key to encrypt a random string, and outputs the encrypted ciphertext. The digital credential verifier initiates a challenge request for the DID holder's identity authentication through the service endpoint address in the metadata of the digital credential holder's DID document, and sends the digital credential holder's DID and the ciphertext of the encrypted random string to the digital credential holder;

[0042] The digital certificate holder uses the private key corresponding to the DID to decrypt the ciphertext, restore the ciphertext to a random string plaintext, and send the DID and the decrypted random string plaintext back to the digital certificate verifier for verification. When the decrypted random string is consistent with the random string generated by the digital certificate verifier, the identity of the digital certificate holder DID holder is considered credible;

[0043] Step S503: The digital certificate holder submits the digital certificate information to the verifier. The digital certificate verifier queries whether the digital certificate issuer is legal and credible based on the issuer DID in the digital certificate, and uses the issuer's public key to sign and verify the digital certificate. After the signature verification is passed, the digital certificate is considered to be issued by a credible authority. Then, the digital certificate information is encrypted using the Keccak256 hash function to generate an information summary. According to the blockchain address where the digital certificate is stored on the chain, the verification interface of the blockchain certificate storage smart contract is called. When the information summary of the digital certificate is verified to be consistent, it is considered that the digital certificate information has not been tampered with.

[0044] Step S504: The DID account of the financial service provider requests the enterprise qualification digital certificate from the DID account of the financing enterprise applicant. The financing enterprise applicant authorizes the financial service provider to access the enterprise qualification digital certificate. The financial service provider obtains the enterprise qualification digital certificate from the authentication center and verifies whether the DID that issues the enterprise qualification digital certificate is the DID of the authority issuing the certificate. After the verification is true, continue to verify whether the certificate hash of the enterprise qualification digital certificate stored in the blockchain is consistent with the locally calculated hash. If they are consistent, it is deemed that it has not been tampered with, and the enterprise qualification digital certificate is checked;

[0045] Step S505: The DID account of the financial service provider requests the transaction contract digital certificate from the DID account of the financing enterprise applicant. The financing enterprise applicant authorizes the financial service provider to access the transaction contract digital certificate. The financial service provider obtains the transaction contract digital certificate from the authentication center and verifies whether the DID that issues the transaction contract digital certificate is the DID of the authority that issues it. After the verification is true, continue to verify whether the certificate hash of the transaction contract digital certificate stored in the blockchain is consistent with the locally calculated hash. If they are consistent, it is deemed that it has not been tampered with, and the transaction contract digital certificate is checked.

[0046] Furthermore, the dynamic consensus mechanism includes:

[0047] In the blockchain, through the reputation scoring formula:

[0048]

[0049] Where R i is the reputation score of participant i, α is the success rate adjustment factor given according to the actual scenario, β is the activity adjustment factor given according to the actual scenario, Sij is the success score of participant i in the jth transaction, n is the total number of transactions used for evaluation, and t i is the time since the first transaction, λ is the decay constant used to adjust the effect of time on reputation, and e is the base of the natural logarithm;

[0050] Define the reputation scores of the participants;

[0051] The reputation score is proportional to the weight of the participant in the consensus decision;

[0052] Through the consensus node weight formula:

[0053]

[0054] Where Wi is the weight of the selected consensus node, m is the total number of candidate consensus nodes, and R k It is the sum of reputation scores of all candidate nodes;

[0055] Define the weight of candidate consensus nodes;

[0056] When the financing enterprise applicant submits a digital credential verification request, the DID service center selects a group of consensus nodes based on the transaction;

[0057] By consensus decision threshold formula:

[0058]

[0059] Where θ is the consensus decision threshold, V i is the verification result of node i. If the verification result is true, V i =1, if the verification result is not true, V i =0, p is the number of nodes participating in formula verification;

[0060] Determine the threshold required for consensus decision making;

[0061] The selected consensus nodes will independently verify the authenticity of the DID and digital credentials of the financing enterprise applicant. Each node will submit the verification results to the blockchain. When the threshold required for consensus decision is exceeded, the verification is deemed valid.

[0062] The formula is set by security parameters:

[0063] q=γ·m

[0064] Where q is the minimum number of validating nodes, γ is a coefficient between 0 and 1, and m is the total number of nodes participating in the consensus;

[0065] Dynamically adjust the minimum number of consensus nodes used for verification.

[0066] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: a distributed digital identity authentication method for supply chain finance based on blockchain forms an alliance among multiple participants and establishes a decentralized blockchain trust network, which can solve the identity mutual trust problem among various participants such as financing enterprise applicants and financial service providers in supply chain finance. The digital certificate verification method for the applicant's qualification information and transaction information can eliminate the financial risks such as information asymmetry, false identity, and difficulty in reviewing false transactions among various participants in the supply chain finance chain, improve the business review efficiency of financial service providers, and reduce review costs. The dynamic consensus mechanism improves the flexibility and security of identity and certificate verification, which is particularly suitable for processing large-scale and complex supply chain finance. The present invention effectively promotes the large-scale and efficient implementation of supply chain finance and forms a good supply chain finance ecosystem. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0068] Figure 1 It is a schematic diagram of the process of distributed digital identity DID registration and blockchain storage of a distributed digital identity authentication method for supply chain finance based on blockchain in the present invention;

[0069] Figure 2 It is a schematic diagram of the DID holder identity authentication process of a distributed digital identity authentication method for supply chain finance based on blockchain in the present invention;

[0070] Figure 3 It is a schematic diagram of the digital certificate application and issuance process of a distributed digital identity DID in a distributed digital identity authentication method for supply chain finance based on blockchain of the present invention;

[0071] Figure 4 This is a digital credential verification process based on a distributed digital identity DID in a supply chain finance distributed digital identity authentication method based on blockchain. DETAILED DESCRIPTION

[0072] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0073] See also Figure 1-Figure 4The present invention provides a technical solution: a distributed digital identity authentication method for supply chain finance based on blockchain, the method comprising:

[0074] Step S100: The financing enterprise applicant, the authority certificate issuer and the financial service provider each register a unique distributed digital identity DID and generate a key pair through an encryption algorithm. The distributed digital identity DID is stored on the blockchain;

[0075] Wherein, step S100 includes:

[0076] Step S101: The financial service provider and the authority that issues the certificate jointly establish a blockchain alliance network. The blockchain node devices in the alliance chain network are maintained by each participant and become consensus nodes. The consensus nodes participate in the transaction consensus of the entire alliance chain, and all member nodes deploy DID smart contracts;

[0077] Step S102: Any participant in supply chain finance uses the DID digital identity wallet to initiate a DID registration application, becoming an applicant. After receiving the applicant's request, the DID service center generates a key pair using the ECDSA elliptic curve digital signature algorithm based on the specific elliptic curve parameter set secp256k1. The key pair includes a public key and a private key. The public key cannot be used to deduce the private key. The DID service center writes the public key into the DID document and stores it in the blockchain, and sends the private key back to the applicant, who stores the private key in the DID digital identity wallet. The DID service center generates a hexadecimal string based on the public key and concatenates the hexadecimal string with the applicant's specific DID identifier prefix to form a complete and unique applicant DID.

[0078] Step S103: Create a DID document, an authentication attribute unit, and a DID service endpoint in the blockchain. The DID document is used to store authentication information. The authentication information includes the DID of the identity holder. The DID document encodes the public key of the identity holder in Multicodec, formats the Multicodec-encoded public key through Base58 encoding, and then adds it to the authentication attribute unit. The DID service endpoint is a specific network address or interface pointing to the verification service, which is used to verify the identity of the DID holder or request access rights;

[0079] Step S104: Request the DID service center to call the DID smart contract to store the created DID and DID document metadata in the blockchain, which is then synchronously distributed to all nodes by the consortium chain network;

[0080] Step S200: The authority issuing the certificate registers as a digital certificate authority, which is used to register and provide digital certificate declaration templates;

[0081] Wherein, step S200 includes:

[0082] Step S201: The authority issuing the certificate registers as a digital certificate authority, which collects certificate requirements from various participants and defines the data structure and verification logic and rules for each type of certificate;

[0083] Step S202: The digital credential authority registers, deploys and publishes the designed digital credential declaration template to the blockchain, and the digital credential authority monitors the use of the template and updates and optimizes it based on the feedback from various participants;

[0084] Step S300: The financing enterprise applicant applies for the enterprise qualification digital certificate from the authority certificate issuer, and the authority certificate issuer verifies the identity holder relationship of the distributed digital identity DID of the financing enterprise applicant;

[0085] Wherein, step S300 includes:

[0086] Step S301: The financing enterprise applicant uses the distributed digital identity DID it holds to submit a request for an enterprise qualification digital certificate to the authority issuing the certificate;

[0087] Step S302: The DID verifier requests the DID service center to parse the DID submitted by the financing enterprise applicant, decompose and separate the DID identifier prefix and extract the address string in the DID terminal data, and send a query request for querying the DID document metadata based on the DID to the DID smart contract in the blockchain. The DID smart contract parsing interface obtains the DID document metadata information from the blockchain storage and returns it to the DID service center;

[0088] Step S303: The authority issuing the credential uses the service endpoint address in the metadata of the DID document and adopts a challenge-response mechanism to send an identity authentication challenge request to the financing enterprise applicant. The authority issuing the credential uses the distributed digital identity DID of the financing enterprise applicant to query the corresponding DID document on the blockchain to obtain the public key of the DID holder who accepts the identity authentication challenge, and then generates a random string and encrypts it with the public key. The encrypted string is sent to the financing enterprise applicant. The financing enterprise applicant uses the DID private key it holds to decrypt the encrypted string, restore the random string and send it back to the authority issuing the credential for verification. The authority issuing the credential verifies whether the DID and the decrypted content are consistent with the random string at the time of the challenge. If the results are consistent, it is determined that the identity of the DID holder of the financing enterprise applicant is secure and reliable, and the identity authentication is completed;

[0089] Step S304: The authoritative institution certificate issuer issues an enterprise qualification digital certificate to the financing enterprise applicant according to the digital certificate statement template and enterprise information, calculates the hash value of the certificate data, and stores the hash value in the blockchain using the DID of the authoritative institution certificate issuer;

[0090] Step S400: The financing enterprise applicant signs the electronic transaction contract online, signs the electronic contract data with the private key of the DID of the financing enterprise applicant, and the authoritative institution certificate issuer issues an electronic contract digital certificate and stores it on the chain;

[0091] Among them, Step S400 includes:

[0092] Step S401: The participant in the supply chain finance who needs the electronic contract digital certificate initiates an application to the authoritative institution certificate issuer. The authoritative institution issuer obtains the distributed digital identity DID of the applicant and requests the DID service center to parse it. The DID service center queries whether the applicant's DID exists through the DID smart contract. When the applicant's DID exists, it obtains the corresponding DID document and sends the DID document metadata information back to the DID service center. Then, it extracts the encoded public key in the identity authentication attributes to restore the public key. After the restoration is completed, it encrypts a random string using the public key and outputs the encrypted random string ciphertext;

[0093] Step S402: The authoritative institution certificate issuer initiates a challenge request for the DID holder identity verification through the service endpoint address in the DID document metadata of the applicant, and sends the applicant's DID and the ciphertext of the encrypted random string to the applicant. The applicant decrypts the ciphertext using the DID private key it holds and restores it to the random string plaintext;

[0094] Step S403: The applicant sends the DID and the decrypted random string plaintext back to the authoritative institution certificate issuer for verification. When it is consistent with the random string generated by the authoritative institution certificate issuer, the applicant's DID holder identity is considered trustworthy;

[0095] Step S404: The authoritative institution certificate issuer, as the digital certificate issuer, generates digital certificate information according to the certificate statement information content of the applicant and the digital certificate statement template. The digital certificate information writes the signature information of the DID of the digital certificate issuer and the private key of the DID of the digital certificate issuer for the digital certificate;

[0096] Using the Keccak256 cryptographic hash function, convert the digital certificate information data into a 256-bit fixed-length message digest, generate a random large integer L (0 < L < N, N is the order of the elliptic curve), through the formula:

[0097] Z = L * G

[0098] Where G is the base point on the elliptic curve;

[0099] Calculate a point Z, extract the x coordinate from Z, the x coordinate is r in the signature;

[0100] By formula:

[0101] F=k^(-1)*(H(m)+r*d)mod N

[0102] Where H(m) is the message digest of the digital certificate, d is the private key of the digital certificate issuer, and k^(-1) is the multiplicative inverse of k with respect to the elliptic curve order modulus N;

[0103] Generate an F value calculated by the private key of the digital certificate issuer;

[0104] Calculate a recovery identifier v and finally get the signature data (r, s, v). The base64-encoded signature data is written into the information of the digital certificate issuer to verify whether the digital certificate issuer is legal and credible and whether the data content has been tampered with.

[0105] Step S405: The generated complete digital credential information is encrypted using the Keccak256 hash function to generate an information summary, which is the credential hash. The DID smart contract in the blockchain creates a credential logic unit, and the digital credential information summary is stored in the blockchain. Information related to user privacy is not stored on the chain, but is stored in the digital credential issuer. The privacy attribute of the applicant is proved by the statement issued by the digital credential issuer. The digital credential issuer sends the digital credential information back to the applicant, which is stored in the applicant's DID digital identity wallet.

[0106] Step S500: The financial service provider uses a dynamic consensus mechanism to verify the DID identity holder relationship of the financing enterprise applicant, and checks the enterprise qualification digital certificate and electronic contract digital certificate of the financing enterprise applicant;

[0107] Wherein, step S500 includes:

[0108] Step S501: In the context of supply chain finance, the financial service provider is the digital credential verifier. The digital credential verifier uses a dynamic consensus mechanism to classify participants into different levels according to their business types and credit scores, and sets different numbers and types of digital credential verifiers according to the levels to perform dynamic consensus verification of supply chain finance;

[0109] Step S502: The digital credential verification party in supply chain finance that needs to verify the digital credential sends a request to the digital credential holder to apply for verification of the digital credential. The digital credential verification party obtains the distributed digital identity DID of the digital credential holder, requests the DID service center to resolve it, and queries whether the DID exists through the blockchain DID smart contract. If it exists, the corresponding DID document is obtained and the DID document metadata information is sent back;

[0110] The digital credential verifier extracts the encoded public key in the identity authentication attribute, decodes and restores the public key, uses the restored public key to encrypt a random string, and outputs the encrypted ciphertext. The digital credential verifier initiates a challenge request for the DID holder's identity authentication through the service endpoint address in the metadata of the digital credential holder's DID document, and sends the digital credential holder's DID and the ciphertext of the encrypted random string to the digital credential holder;

[0111] The digital certificate holder uses the private key corresponding to the DID to decrypt the ciphertext, restore the ciphertext to a random string plaintext, and send the DID and the decrypted random string plaintext back to the digital certificate verifier for verification. When the decrypted random string is consistent with the random string generated by the digital certificate verifier, the identity of the digital certificate holder DID holder is considered credible;

[0112] Step S503: The digital certificate holder submits the digital certificate information to the verifier. The digital certificate verifier queries whether the digital certificate issuer is legal and credible based on the issuer DID in the digital certificate, and uses the issuer's public key to sign and verify the digital certificate. After the signature verification is passed, the digital certificate is considered to be issued by a credible authority. Then, the digital certificate information is encrypted using the Keccak256 hash function to generate an information summary. According to the blockchain address where the digital certificate is stored on the chain, the verification interface of the blockchain certificate storage smart contract is called. When the information summary of the digital certificate is verified to be consistent, it is considered that the digital certificate information has not been tampered with.

[0113] Step S504: The DID account of the financial service provider requests the enterprise qualification digital certificate from the DID account of the financing enterprise applicant. The financing enterprise applicant authorizes the financial service provider to access the enterprise qualification digital certificate. The financial service provider obtains the enterprise qualification digital certificate from the authentication center and verifies whether the DID that issues the enterprise qualification digital certificate is the DID of the authority issuing the certificate. After the verification is true, continue to verify whether the certificate hash of the enterprise qualification digital certificate stored in the blockchain is consistent with the locally calculated hash. If they are consistent, it is deemed that it has not been tampered with, and the enterprise qualification digital certificate is checked;

[0114] Step S505: The DID account of the financial service provider requests the transaction contract digital certificate from the DID account of the financing enterprise applicant. The financing enterprise applicant authorizes the financial service provider to access the transaction contract digital certificate. The financial service provider obtains the transaction contract digital certificate from the authentication center and verifies whether the DID that issues the transaction contract digital certificate is the DID of the authority issuing the certificate. After the verification is true, the DID continues to verify whether the certificate hash of the transaction contract digital certificate stored in the blockchain is consistent with the locally calculated hash. If they are consistent, it is deemed that it has not been tampered with, and the transaction contract digital certificate is checked;

[0115] Among them, the dynamic consensus mechanism includes:

[0116] In the blockchain, through the reputation scoring formula:

[0117]

[0118] Where R i is the reputation score of participant i, α is the success rate adjustment factor given according to the actual scenario, β is the activity adjustment factor given according to the actual scenario, S ij is the success score of participant i in the jth transaction, n is the total number of transactions used for evaluation, and t i is the time since the first transaction, λ is the decay constant used to adjust the effect of time on reputation, and e is the base of the natural logarithm;

[0119] Define the reputation scores of the participants;

[0120] The reputation score is proportional to the weight of the participant in the consensus decision;

[0121] Through the consensus node weight formula:

[0122]

[0123] Where Wi is the weight of the selected consensus node, m is the total number of candidate consensus nodes, and R k It is the sum of reputation scores of all candidate nodes;

[0124] Define the weight of candidate consensus nodes;

[0125] When the financing enterprise applicant submits a digital credential verification request, the DID service center selects a group of consensus nodes based on the transaction;

[0126] By consensus decision threshold formula:

[0127]

[0128] Where θ is the consensus decision threshold, V i is the verification result of node i. If the verification result is true, V i=1, if the verification result is not true, V i =0, p is the number of nodes participating in formula verification;

[0129] Determine the threshold required for consensus decision making;

[0130] The selected consensus nodes will independently verify the authenticity of the DID and digital credentials of the financing enterprise applicant. Each node will submit the verification results to the blockchain. When the threshold required for consensus decision is exceeded, the verification is deemed valid.

[0131] The formula is set by security parameters:

[0132] q=γ·m

[0133] Where q is the minimum number of validating nodes, γ is a coefficient between 0 and 1, and m is the total number of nodes participating in the consensus;

[0134] Dynamically adjust the minimum number of consensus nodes used for verification.

[0135] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0136] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A distributed digital identity authentication method for supply chain finance based on blockchain, characterized in that: The method comprises: Step S100: The financing enterprise applicant, the authority certificate issuer and the financial service provider respectively register a unique distributed digital identity DID and generate a key pair through an encryption algorithm. The distributed digital identity DID is stored on the blockchain; Step S200: The authority issuing the certificate registers as a digital certificate authority, which is used to register and provide digital certificate declaration templates; Step S300: The financing enterprise applicant applies for the enterprise qualification digital certificate from the authority certificate issuer, and the authority certificate issuer verifies the identity holder relationship of the distributed digital identity DID of the financing enterprise applicant; Step S400: The financing enterprise applicant signs the electronic transaction contract online, uses the private key of the financing enterprise applicant's DID to sign the electronic contract data, and the electronic contract digital certificate is issued by the authority and stored on the chain; Step S500: The financial service provider uses a dynamic consensus mechanism to verify the DID identity holder relationship of the financing enterprise applicant, and checks the enterprise qualification digital certificate and electronic contract digital certificate of the financing enterprise applicant.

2. According to a blockchain-based supply chain finance distributed digital identity authentication method according to claim 1, it is characterized in that: The step S100 includes: Step S101: The financial service provider and the authority that issues the certificate jointly establish a blockchain alliance network. The blockchain node devices in the alliance chain network are maintained by each participant and become consensus nodes. The consensus nodes participate in the transaction consensus of the entire alliance chain. All member nodes deploy DID smart contracts; Step S102: Any participant in supply chain finance uses the DID digital identity wallet to initiate a DID registration application, that is, becomes an applicant. After receiving the applicant's request, the DID service center generates a key pair using the ECDSA elliptic curve digital signature algorithm based on a specific elliptic curve parameter set secp256k1. The key pair includes a public key and a private key. The public key cannot be used to deduce the private key. The DID service center writes the public key into the DID document and stores it in the blockchain, and sends the private key back to the applicant, who stores the private key in the DID digital identity wallet. The DID service center generates a hexadecimal string based on the public key and concatenates the hexadecimal string with the applicant's specific DID identifier prefix to form a complete and unique applicant DID; Step S103: Create a DID document, an authentication attribute unit, and a DID service endpoint in the blockchain. The DID document is used to store identity authentication information, which includes the DID of the identity holder. The DID document encodes the public key of the identity holder by Multicodec, formats the Multicodec-encoded public key by Base58 encoding, and then adds it to the authentication attribute unit. The DID service endpoint is a specific network address or interface pointing to a verification service, which is used to verify the identity of the DID holder or request access rights. Step S104: Request the DID service center to call the DID smart contract to store the created DID and DID document metadata in the blockchain, which is then synchronously distributed to all nodes by the consortium chain network.

3. A distributed digital identity authentication method for supply chain finance based on blockchain according to claim 2, characterized in that: The step S200 includes: Step S201: The authority issuing the certificate registers as a digital certificate authority, which collects certificate requirements from various participants and defines the data structure and verification logic and rules for each type of certificate; Step S202: The digital credential authority registers, deploys and publishes the designed digital credential declaration template to the blockchain. The digital credential authority monitors the use of the template and updates and optimizes it based on the feedback from various participants.

4. A distributed digital identity authentication method for supply chain finance based on blockchain according to claim 3, characterized in that: The step S300 includes: Step S301: The financing enterprise applicant uses the distributed digital identity DID it holds to submit a request for an enterprise qualification digital certificate to the authority issuing the certificate; Step S302: The DID verifier requests the DID service center to parse the DID submitted by the financing enterprise applicant, decompose and separate the DID identifier prefix and extract the address string in the DID terminal data, and send a query request for querying the DID document metadata based on the DID to the DID smart contract in the blockchain. The DID smart contract parsing interface obtains the DID document metadata information from the blockchain storage and returns it to the DID service center; Step S303: The authority issuing the certificate uses the service endpoint address in the metadata of the DID document and adopts a challenge-response mechanism to send an identity authentication challenge request to the financing enterprise applicant. The authority issuing the certificate uses the distributed digital identity DID of the financing enterprise applicant to query the corresponding DID document on the blockchain to obtain the public key of the DID holder who accepts the identity authentication challenge, and then generates a random string and encrypts it using the public key, and sends the encrypted string to the financing enterprise applicant; The financing enterprise applicant uses the DID private key it holds to decrypt the encrypted string, restore the random string and send it back to the authority issuing the certificate for verification. The authority issuing the certificate verifies whether the DID and the decrypted content are consistent with the random string at the time of the challenge. If the results are consistent, the DID holder of the financing enterprise applicant is deemed to be secure and credible, and the identity authentication is completed; Step S304: The authority issuing the certificate uses the DID of the authority issuing the certificate to issue the enterprise qualification digital certificate to the financing enterprise applicant based on the digital certificate declaration template and enterprise information, calculates the hash value of the certificate data and stores the hash value in the blockchain.

5. A distributed digital identity authentication method for supply chain finance based on blockchain according to claim 4, characterized in that: The step S400 includes: Step S401: The party in the supply chain finance that requires the participation of the electronic contract digital certificate initiates an application to the authoritative institution, the certificate issuer. The authoritative institution, the certificate issuer, obtains the distributed digital identity DID of the applicant and requests the DID service center to resolve it. The DID service center queries whether the applicant's DID exists through the DID smart contract. When the applicant's DID exists, it obtains the corresponding DID document and sends the DID document metadata information back to the DID service center. Then, it extracts the encoded public key in the identity authentication attributes to restore the public key. After the restoration is completed, it encrypts a random string using the public key and outputs the encrypted random string ciphertext; Step S402: The authoritative institution, the certificate issuer, initiates a challenge request for the authentication of the DID holder's identity through the service endpoint address in the DID document metadata of the applicant, and sends the applicant's DID and the ciphertext of the encrypted random string to the applicant. The applicant decrypts the ciphertext using the DID private key it holds and restores it to the random string plaintext; Step S403: The applicant sends the DID and the decrypted random string plaintext back to the authoritative institution, the certificate issuer, for verification. When it is consistent with the random string generated by the authoritative institution, the certificate issuer, it is considered that the identity of the applicant as the DID holder is credible; Step S404: The authoritative institution, the certificate issuer, as the digital certificate issuer, generates digital certificate information according to the certificate statement information content of the applicant and the digital certificate statement template. Among them, the digital certificate information writes the signature information of the digital certificate issuer's DID and the digital certificate issuer's DID private key for the digital certificate; Using the Keccak256 encryption hash function, convert the digital certificate information data into a 256-bit fixed-length message digest, generate a random large integer L (0 < L < N, where N is the order of the elliptic curve), and through the formula: Z = L * G where G is the base point on the elliptic curve; Calculate a point Z, and extract the x coordinate from Z. The x coordinate is r in the signature; Through the formula: F = k^(-1) * (H(m) + r * d) mod N where H(m) is the digital certificate message digest, d is the digital certificate issuer's private key, and k^(-1) is the multiplicative inverse of k modulo N of the elliptic curve order; Generate the F value calculated by the digital certificate issuer's private key; Calculate a recovery identifier v, and finally obtain the signature data (r, s, v). The signature data after base64 encoding is written into the information of the digital certificate issuer for verifying whether the digital certificate issuer is legal and credible and whether the data content has been tampered with; Step S405: The generated complete digital credential information is encrypted using the Keccak256 hash function to generate an information summary, which is the credential hash. The DID smart contract in the blockchain creates a credential logic unit, and the digital credential information summary is stored in the blockchain. Information related to user privacy is not stored on the chain, but is stored in the digital credential issuer. The privacy attribute of the applicant is proved by the statement issued by the digital credential issuer. The digital credential issuer sends the digital credential information back to the applicant, which is stored in the applicant's DID digital identity wallet.

6. A distributed digital identity authentication method for supply chain finance based on blockchain according to claim 5, characterized in that: The step S500 includes: Step S501: In the context of supply chain finance, the financial service provider is the digital credential verifier. The digital credential verifier uses a dynamic consensus mechanism to classify participants into different levels according to their business types and credit scores, and sets different numbers and types of digital credential verifiers according to the levels to perform dynamic consensus verification of supply chain finance; Step S502: The digital credential verification party in supply chain finance that needs to verify the digital credential sends a request to the digital credential holder to apply for verification of the digital credential. The digital credential verification party obtains the distributed digital identity DID of the digital credential holder, requests the DID service center to resolve it, and queries whether the DID exists through the blockchain DID smart contract. If it exists, the corresponding DID document is obtained and the DID document metadata information is sent back; The digital credential verifier extracts the encoded public key in the identity authentication attribute, decodes and restores the public key, uses the restored public key to encrypt a random string, and outputs the encrypted ciphertext. The digital credential verifier initiates a challenge request for the DID holder's identity authentication through the service endpoint address in the metadata of the digital credential holder's DID document, and sends the digital credential holder's DID and the ciphertext of the encrypted random string to the digital credential holder; The digital certificate holder uses the private key corresponding to the DID to decrypt the ciphertext, restore the ciphertext to a random string plaintext, and send the DID and the decrypted random string plaintext back to the digital certificate verifier for verification. When the decrypted random string is consistent with the random string generated by the digital certificate verifier, the identity of the digital certificate holder DID holder is considered credible; Step S503: The digital certificate holder submits the digital certificate information to the verifier. The digital certificate verifier queries whether the digital certificate issuer is legal and credible based on the issuer DID in the digital certificate, and uses the issuer's public key to sign and verify the digital certificate. After the signature verification is passed, the digital certificate is considered to be issued by a credible authority. Then, the digital certificate information is encrypted using the Keccak256 hash function to generate an information summary. According to the blockchain address where the digital certificate is stored on the chain, the verification interface of the blockchain certificate storage smart contract is called. When the information summary of the digital certificate is verified to be consistent, it is considered that the digital certificate information has not been tampered with. Step S504: The DID account of the financial service provider requests the enterprise qualification digital certificate from the DID account of the financing enterprise applicant. The financing enterprise applicant authorizes the financial service provider to access the enterprise qualification digital certificate. The financial service provider obtains the enterprise qualification digital certificate from the authentication center and verifies whether the DID that issues the enterprise qualification digital certificate is the DID of the authority issuing the certificate. After the verification is true, continue to verify whether the certificate hash of the enterprise qualification digital certificate stored in the blockchain is consistent with the locally calculated hash. If they are consistent, it is deemed that it has not been tampered with, and the enterprise qualification digital certificate is checked; Step S505: The DID account of the financial service provider requests the transaction contract digital certificate from the DID account of the financing enterprise applicant. The financing enterprise applicant authorizes the financial service provider to access the transaction contract digital certificate. The financial service provider obtains the transaction contract digital certificate from the authentication center and verifies whether the DID that issues the transaction contract digital certificate is the DID of the authority that issues it. After the verification is true, continue to verify whether the certificate hash of the transaction contract digital certificate stored in the blockchain is consistent with the locally calculated hash. If they are consistent, it is deemed that it has not been tampered with, and the transaction contract digital certificate is checked.

7. A distributed digital identity authentication method for supply chain finance based on blockchain according to claim 6, characterized in that: The dynamic consensus mechanism includes: In the blockchain, through the reputation scoring formula: Where R i is the reputation score of participant i, α is the success rate adjustment factor given according to the actual scenario, β is the activity adjustment factor given according to the actual scenario, S ij is the success score of participant i in the jth transaction, n is the total number of transactions used for evaluation, and t i is the time since the first transaction, λ is the decay constant used to adjust the effect of time on reputation, and e is the base of the natural logarithm; Define the reputation scores of the participants; The reputation score is proportional to the weight of the participant in the consensus decision; Through the consensus node weight formula: Where Wi is the weight of the selected consensus node, m is the total number of candidate consensus nodes, and R k It is the sum of reputation scores of all candidate nodes; Define the weight of candidate consensus nodes; When the financing enterprise applicant submits a digital credential verification request, the DID service center selects a group of consensus nodes based on the transaction; By consensus decision threshold formula: Where θ is the consensus decision threshold, V i is the verification result of node i. If the verification result is true, V i =1, if the verification result is not true, V i =0, p is the number of nodes participating in formula verification; Determine the threshold required for consensus decision making; The selected consensus nodes will independently verify the authenticity of the DID and digital credentials of the financing enterprise applicant. Each node will submit the verification results to the blockchain. When the threshold required for consensus decision is exceeded, the verification is deemed valid. The formula is set by security parameters: q=γ·m Where q is the minimum number of validating nodes, γ is a coefficient between 0 and 1, and m is the total number of nodes participating in the consensus; Dynamically adjust the minimum number of consensus nodes used for verification.

Citation Information

Cited By

  • Multi-participant supervision data management method

    CN119128951A

  • Computing power access method, computer equipment, storage medium and program product

    CN119788417A

  • Security protection transaction settlement method based on artificial intelligence

    CN119850214A

  • Data trusted computing framework based on alliance block chain

    CN119885267A

  • DID transplantation method and system suitable for supply chain finance, equipment and medium

    CN120106867A