DID transplantation method and system suitable for supply chain finance, equipment and medium
By generating local DIDs for each batch of raw materials in the supply chain financial scenario and mapping them into virtual DIDs, cross-chain migration and association of DIDs are achieved, and the problem of delay and resource competition for cross-chain communication between multiple blockchains is solved, and the efficiency and security of identity authentication are improved.
Patent Information
- Application Number
- CN202510047742.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2045-01-13
AI Technical Summary
In the supply chain finance scenario, cross-chain communication between multiple blockchains relies on relay chains, resulting in transaction delays and resource competition, and the lack of unified identity authentication standards, resulting in problems that data integrity and authenticity are difficult to guarantee during cross-chain migration and authentication.
By generating local DIDs for each batch of raw materials on the supplier chain and mapping them into virtual DIDs, cross-chain migration and association of DIDs are realized, duplicate registration is reduced, and the response speed of identity authentication is improved.
It realizes seamless migration of DID between different chains, improves the efficiency of identity authentication, reduces the verification cost of users on different chains, and provides an efficient, secure and scalable solution for multi-chain identity management in supply chain financial scenarios.
Smart Images

Figure CN120106867A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular, to a DID transplantation method and system, an electronic device, and a computer-readable storage medium applicable to supply chain finance. Background Art
[0002] Blockchain technology, also known as distributed ledger technology, is an emerging technology in which several computer devices jointly participate in "bookkeeping" and jointly maintain a complete distributed database. Blockchain technology is favored by different fields because of its decentralized, open and transparent characteristics. Every computer on the blockchain has data records, and data can be synchronized in real time between various computer devices, ensuring the security and timeliness of the data. Decentralized Identifier DID (Decentralized Identifier) is a new type of identifier that can realize verifiable decentralized digital identity. DID refers to any subject (for example, individuals, organizations, things, data models, abstract entities, etc.) determined by the DID controller. Unlike typical joint identifiers, DID is designed to be separated from centralized registration centers, identity providers, and certificate authorities. DID identifiers are strings in a specific format used to represent the digital identity of an entity. Each DID identifier corresponds to a DID document. The identity authentication process is the process of DID subjects proving that they are associated with DIDs through encryption.
[0003] The supply chain finance scenario includes multiple blockchains, and multiple blockchains communicate across chains to ensure the synchronization of data and information. At present, the common cross-chain communication method is through the relay chain. As the core of connecting multiple blockchains, all cross-chain communications need to go through the relay chain. Since the relay chain needs to verify and synchronize the status of each parallel chain, this process may introduce higher transaction delays, especially in high-concurrency scenarios; in addition, if the cross-chain transaction volume is too large, the relay chain may become a performance bottleneck, affecting the overall efficiency. Moreover, multiple parallel chains need to share the computing resources and network resources of the relay chain, which is easy to cause resource competition and thus affect the transaction processing efficiency. In addition, as the hub of cross-chain communication, the security of the relay chain is directly related to the security of the entire ecosystem. Once the relay chain is attacked or fails, all related chains will be affected. Therefore, direct cross-chain communication between multiple blockchains has become a new research direction, which does not require a relay chain and is conducive to improving security and processing efficiency. However, due to the lack of a unified identity authentication standard between different chains, DID has problems with data integrity and authenticity during cross-chain transplantation and authentication. In addition, in a multi-chain environment, how to build traceable links in decentralized identity information to avoid the performance overhead caused by repeated authentication has also become a problem that needs to be solved urgently. Summary of the invention
[0004] The present invention provides a DID migration method and system, electronic device, and computer-readable storage medium suitable for supply chain finance, which can realize seamless migration of DID between different chains without the need to repeatedly register DID on different chains, and can also improve the response speed of identity authentication and reduce the verification cost of users on different chains.
[0005] According to one aspect of the present invention, a DID migration method applicable to supply chain finance is provided. The multi-chain scenario of supply chain finance includes a supplier chain, a manufacturer chain, a retailer chain, and a customer chain, including the following contents:
[0006] Generate a first local DID for each batch of raw materials on the supplier chain, map the first local DID to a first virtual DID, and then transplant the first virtual DID to the producer chain;
[0007] Generate a second local DID for each batch of products on the producer chain, and associate the second local DID with the first virtual DID in the production record;
[0008] Synchronize the production record information on the manufacturer chain to the retailer chain, and the retailer chain verifies the authenticity of the production record and stores the relevant DID information;
[0009] The customer chain sends a request to the retailer chain to purchase the product. The retailer chain verifies the production process of the product by calling the detailed production records on the manufacturer chain. After verifying the authenticity of the supplier's identity, it generates a transaction record and synchronizes it to the customer chain.
[0010] Furthermore, the process of generating a first local DID for each batch of raw materials on the supplier chain, mapping the first local DID to a first virtual DID, and then transplanting the first virtual DID to the manufacturer chain includes the following:
[0011] The supplier generates a unique first local DID and DID document on the supplier chain for each batch of raw materials. The supplier chain maps the first local DID to the first virtual DID through the first cross-chain virtual identity proxy layer, and synchronizes the first virtual DID to the second cross-chain virtual identity proxy layer of the producer chain;
[0012] The producer issues a cross-chain identity verification request on the producer chain to the supplier chain;
[0013] The first cross-chain virtual identity proxy layer generates a migration credential in response to the cross-chain identity authentication request, and synchronizes the migration credential and the first virtual DID to the second cross-chain virtual identity proxy layer of the producer chain through the inter-chain trust bridge;
[0014] After receiving the transplant certificate and the first virtual DID, the second cross-chain virtual identity proxy layer verifies the authenticity of the first virtual DID and the first local DID. After the verification is passed, the first virtual DID is officially registered on the producer chain.
[0015] Furthermore, the DID document is stored in a distributed storage system, and the hash value of the storage address is stored on the supplier chain after hash encryption.
[0016] Furthermore, the migration credential includes a zero-knowledge proof, and the second cross-chain virtual identity proxy layer verifies the authenticity of the first virtual DID and the first local DID through the zero-knowledge proof.
[0017] Furthermore, detailed production records are stored in a distributed storage system, and the hash value of the storage address after hash encryption is stored on the producer chain.
[0018] Furthermore, the production record information includes a hash value of the detailed production record storage address, the second local DID, the first virtual DID, and the manufacturer's signature.
[0019] Furthermore, the customer chain sends a commodity purchase request to the retail chain. The retail chain verifies the production process of the commodity by calling the detailed production record on the manufacturer chain. After verifying the authenticity of the supplier's identity, the transaction record is generated and synchronized to the customer chain. The process includes the following:
[0020] The customer sends a purchase request to the retailer on the customer chain and provides the customer's third local DID and signature. The third cross-chain virtual identity proxy layer of the retailer chain verifies the customer's third local DID and synchronizes the third virtual DID through the inter-chain trust bridge.
[0021] The retailer chain decrypts the hash value in the production record information shared by the manufacturer chain to obtain the storage address of the detailed production record, and calls the detailed production record of the product on the manufacturer chain through the cross-chain smart contract integration layer to verify the production process of the product, and calls the DID management contract on the supplier chain through the cross-chain smart contract integration layer to verify the authenticity of the supplier's identity;
[0022] The retailer chain generates transaction records and synchronizes them to the customer chain through the cross-chain smart contract integration layer.
[0023] In addition, the present invention also provides a DID transplantation system applicable to supply chain finance, including:
[0024] A DID transplantation module is used to generate a first local DID for each batch of raw materials on the supplier chain, map the first local DID to a first virtual DID, and then transplant the first virtual DID to the manufacturer chain;
[0025] A DID association module, for generating a second local DID for each batch of products on the producer chain, and associating the second local DID with the first virtual DID in the production record;
[0026] The cross-chain sharing module is used to synchronize the production record information on the manufacturer chain to the retailer chain. The retailer chain verifies the authenticity of the production record and stores the relevant DID information.
[0027] The cross-chain verification module is used to send a commodity purchase request to the retailer chain on the customer chain. The retailer chain verifies the production process of the commodity by calling the detailed production records on the manufacturer chain. After verifying the authenticity of the supplier's identity, it generates a transaction record and synchronizes it to the customer chain.
[0028] In addition, the present invention also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the above method by calling the computer program stored in the memory.
[0029] In addition, the present invention also provides a computer-readable storage medium for storing a computer program suitable for DID migration for supply chain finance, wherein the computer program executes the steps of the method described above when running on a computer.
[0030] The present invention has the following beneficial effects:
[0031] The DID transplantation method applicable to supply chain finance of the present invention, after generating the first local DID for each batch of raw materials on the supplier chain, maps the first local DID to the first virtual DID through identity mapping and transplants it to the producer chain, so that the DID can be dynamically transplanted to the target chain without re-registration, and can achieve seamless migration of DID between different chains. In addition, after generating the second local DID for each batch of products on the producer chain, the second local DID is also associated with the first virtual DID in the production record, and the production record information on the producer chain is synchronized to the retailer chain. The retailer chain can verify the production process of the product by calling the detailed production record on the producer chain, and generate the transaction record after verifying the authenticity of the supplier's identity and synchronize it to the customer chain, thus building a traceable identity link in a multi-chain environment, which can greatly improve the response speed of identity authentication, reduce the verification cost of users on different chains, and provide an efficient, secure and scalable solution for multi-chain identity management in supply chain finance scenarios.
[0032] In addition, the DID transplantation system applicable to supply chain finance of the present invention also has the above advantages.
[0033] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0035] Figure 1 It is a flowchart of a DID transplantation method applicable to supply chain finance according to a preferred embodiment of the present application;
[0036] Figure 2 yes Figure 1 Schematic diagram of the sub-process of step S1;
[0037] Figure 3 yes Figure 1 Schematic diagram of the sub-process of step S4;
[0038] Figure 4 It is a schematic diagram of the module structure of a DID transplantation system suitable for supply chain finance according to another embodiment of the present application. DETAILED DESCRIPTION
[0039] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0040] Reference Figure 1 The preferred embodiment of the present application provides a DID migration method applicable to supply chain finance. The multi-chain scenario of supply chain finance includes supplier chain, manufacturer chain, retailer chain and customer chain, including the following contents:
[0041] Step S1: Generate a first local DID for each batch of raw materials on the supplier chain, map the first local DID to a first virtual DID, and then transplant the first virtual DID to the manufacturer chain;
[0042] Step S2: Generate a second local DID for each batch of products on the manufacturer chain, and associate the second local DID with the first virtual DID in the production record;
[0043] Step S3: Synchronize the production record information on the manufacturer chain to the retailer chain. The retailer chain verifies the authenticity of the production record and stores the relevant DID information.
[0044] Step S4: A commodity purchase request is issued to the retailer chain on the customer chain. The retailer chain verifies the production process of the commodity by calling the detailed production records on the manufacturer chain. After verifying the authenticity of the supplier's identity, a transaction record is generated and synchronized to the customer chain.
[0045] It can be understood that the DID transplantation method applicable to supply chain finance in this embodiment, after generating the first local DID for each batch of raw materials on the supplier chain, maps the first local DID to the first virtual DID through identity mapping and transplants it to the producer chain, so that the DID can be dynamically transplanted to the target chain without re-registration, and can achieve seamless migration of DID between different chains. In addition, after generating the second local DID for each batch of products on the producer chain, the second local DID is also associated with the first virtual DID in the production record, and the production record information on the producer chain is synchronized to the retailer chain. The retailer chain can verify the production process of the product by calling the detailed production record on the producer chain, and generate a transaction record after verifying the authenticity of the supplier's identity and synchronize it to the customer chain. In a multi-chain environment, a traceable identity link is constructed, which can greatly improve the response speed of identity authentication, reduce the verification cost of users on different chains, and provide an efficient, secure and scalable solution for multi-chain identity management in supply chain finance scenarios.
[0046] It is understandable that Figure 2 As shown, in step S1, the process of generating a first local DID for each batch of raw materials on the supplier chain, mapping the first local DID to a first virtual DID, and then transplanting the first virtual DID to the manufacturer chain includes the following:
[0047] Step S11: The supplier generates a unique first local DID and DID document for each batch of raw materials on the supplier chain. The supplier chain maps the first local DID to a first virtual DID through the first cross-chain virtual identity proxy layer, and synchronizes the first virtual DID to the second cross-chain virtual identity proxy layer of the manufacturer chain;
[0048] Step S12: The manufacturer sends a cross-chain identity authentication request to the supplier chain on the manufacturer chain;
[0049] Step S13: The first cross-chain virtual identity proxy layer generates a migration credential in response to the cross-chain identity authentication request, and synchronizes the migration credential and the first virtual DID to the second cross-chain virtual identity proxy layer of the producer chain through the inter-chain trust bridge;
[0050] Step S14: After receiving the migration certificate and the first virtual DID, the second cross-chain virtual identity proxy layer verifies the authenticity of the first virtual DID and the first local DID, and after the verification is passed, officially registers the first virtual DID to the manufacturer chain.
[0051] For example, register DID first, which can be expressed as: Register(DID_M, PublicKey, IPFS_Address). Specifically, supplier S generates a unique first local DID (e.g., L_DID) and DID document for each batch of raw materials on the supplier chain L1, wherein the DID document is stored in a distributed storage system (e.g., IPFS), and the hash value of the storage address after hash encryption is stored on the supplier chain L1. In addition, the first cross-chain virtual identity proxy layer VIA_L1 of the supplier chain maps the first local DID (L_DID) to the first virtual DID (V_DID) through identity mapping, and synchronizes V_DID to the second cross-chain virtual identity proxy layer VIA_L2 of the producer chain L2.
[0052] Then the DID migration is triggered, that is, the producer P sends a cross-chain authentication request RequestMigration (DID_S, DID_P, Timestamps, Signature) to the supplier chain L1 on the producer chain L2.
[0053] Then the migration and verification are carried out. The first cross-chain virtual identity agent layer VIA_L1 responds to the cross-chain identity authentication request and generates a migration certificate MigrationProof (L_DID_S, V_DID_S, Signature, ZKP). ZKP is a zero-knowledge proof, and synchronizes V_DID and the migration certificate to the production chain L2 through the inter-chain trust bridge.
[0054] Finally, DID verification and authorization are performed. After receiving the migration certificate, the second cross-chain virtual identity agent layer VIA_L2 verifies the authenticity of L_DID and V_DID through zero-knowledge proof ZKP. That is, the manufacturer P calls the DID management contract of the supplier chain L1 through the cross-chain smart contract integration layer ICC to verify the migration certificate VerifyProof (L_DID_S, V_DID_S, MigrationProof). After the verification is passed, V_DID_S is officially registered to the manufacturer chain L2 to complete the identity migration.
[0055] Among them, the cross-chain virtual identity agent layer (VIA) can provide a virtualized identity agent for each chain, as a cross-chain interface for distributed digital identities (DIDs), manage DID mappings between chains, support DID cross-chain migration, data synchronization, and authorization verification, and achieve seamless DID migration and dynamic updates. VIA maintains the correspondence between the virtual DID (V_DID) and the original DID (L_DID) on the chain through the identity mapping table, ensuring the uniqueness and traceability of the same identity in different chains. When a DID is migrated from one chain to another, VIA is responsible for generating migration credentials and synchronizing data with the VIA of the target chain, and using zero-knowledge proof (ZKP) to verify the authenticity of the DID migration to avoid identity forgery. VIA can also provide a standardized interface for external chain calls, hide the differences in the underlying chains, and play an intermediary role in cross-chain transactions, record verification and other operations. The inter-chain trust bridge (TCB) can provide a trust connection between different blockchains, ensure the secure synchronization and verification of data, and handle the authenticity verification and consistency maintenance of cross-chain data. It realizes data interoperability between multiple chains based on cross-chain consensus, and uses lightweight block header synchronization technology to reduce the overhead of cross-chain communication. During cross-chain synchronization, the authenticity of data is verified through ZKP without exposing sensitive information. In addition, the distributed storage system, namely the distributed storage and cache layer (DStorage&Cache), can provide distributed storage for identity documents, transaction records, etc., to avoid single point failures, and provide intelligent caching mechanisms in high-frequency access scenarios to optimize cross-chain data access performance. The separation of distributed storage and on-chain records can improve system storage efficiency and scalability. For example, when using the IPFS distributed file system to store DID documents and transaction data, the blockchain only records the hash value of the storage address (such as the Merkle root), which reduces the storage burden on the chain, and can also use the storage hash value to verify data integrity to prevent data tampering. In addition, the inter-chain smart contract integration layer (ICC) can provide smart contract support for cross-chain identity authentication, record storage, and transaction processing to ensure logical consistency and security. It can provide a multi-chain unified traceability mechanism to achieve transparent management of the entire process from suppliers to customers. The ICC contract interface is standardized and supports multiple blockchain platforms. It can provide distributed identity and record management functions, and use distributed transaction protocols to ensure cross-chain transaction consistency. In addition, for supply chain finance scenarios, dedicated smart contract modules (such as production traceability and transaction settlement) can also be designed.
[0056] It can be understood that the present invention realizes a new mechanism of identity mapping through a cross-chain virtual identity agent (VIA). DID can be dynamically transplanted to the target chain without re-registration, and the trust bridge supports the forwarding of identity authentication requests and synchronization of credential status between multiple chains, which greatly improves the efficiency of multi-chain identity authentication. By combining the cross-chain virtual identity agent (VIA) with the inter-chain trust bridge (TCB), seamless docking of DID transplantation is achieved. In addition, ZKP and lightweight verification mechanisms are used to achieve efficient and secure cross-chain data transmission, and dynamic trust management in a multi-chain environment is also supported, reducing direct dependence between nodes. In addition, distributed storage is separated from on-chain records, which improves system storage efficiency and scalability, reduces the risk of single point failure, and improves the overall availability of the system. Modular design and cross-chain protocol support are also adopted to improve the scalability and compatibility of the solution in a multi-chain environment, and cross-chain smart contract integration realizes unified logical management in a multi-chain environment.
[0057] It can be understood that in step S2, the manufacturer P generates a new second local DID (L_DID_P) for each batch of products, and associates L_DID_P with V_DID_S in the production record, which can be expressed as: ProductionRecord (L_DID_P, V_DID_S, Details, Timestamp, Signature). Among them, the detailed production records are stored in the distributed storage system, and the hash value of the storage address after hash encryption is stored on the manufacturer chain. The distributed storage is separated from the on-chain records, which improves the system storage efficiency and scalability, reduces the risk of single point failure, and improves the overall availability of the system.
[0058] It can be understood that in step S3, the manufacturer chain shares and synchronizes the production record information to the retailer chain L3 through the cross-chain smart contract integration layer ICC. The production record information includes the hash value of the detailed production record storage address, the second local DID, the first virtual DID and the manufacturer's signature, which can be expressed as ShareRecord (L_DID_P, V_DID_S, Hash, Signature). The third cross-chain virtual identity agent layer VIA_L3 of the retailer chain L3 verifies the authenticity of the production record information through the signature and caches L_DID_P and V_DID_S.
[0059] It is understandable that Figure 3 As shown, in step S4, the customer chain sends a commodity purchase request to the retail chain. The retail chain verifies the production process of the commodity by calling the detailed production record on the manufacturer chain. After verifying the authenticity of the supplier's identity, the transaction record is generated and synchronized to the customer chain. The process includes the following:
[0060] Step S41: The customer sends a product purchase request to the retailer on the customer chain and provides the customer's third local DID and signature. The third cross-chain virtual identity proxy layer of the retailer chain verifies the customer's third local DID and synchronizes the third virtual DID through the inter-chain trust bridge.
[0061] Step S42: The retailer chain decrypts the hash value in the production record information shared by the manufacturer chain to obtain the storage address of the detailed production record, and calls the detailed production record of the product on the manufacturer chain through the cross-chain smart contract integration layer to verify the production process of the product, and calls the DID management contract on the supplier chain through the cross-chain smart contract integration layer to verify the authenticity of the supplier's identity;
[0062] Step S43: The retailer chain generates transaction records and synchronizes the transaction records to the customer chain through the cross-chain smart contract integration layer.
[0063] Specifically, customer C sends a purchase request to retailer R on customer chain L4, and provides its own third local DID and signature. The purchase request can be expressed as PurchaseRequest(L_DID_C, ProductID, Timestamp, Signature). Retailer chain L3 can verify the customer's third local DID (L_DID_C) through the customer's signature, and synchronize V_DID_C information through the inter-chain trust bridge TCB. Among them, customer C's DID has been registered on retailer chain L3. For example, if a customer purchases a membership of Sam's Club, when the customer purchases goods, Sam's Club can verify the customer's membership. Then, the retailer chain L3 decrypts the Hash in ShareRecord(L_DID_P, V_DID_S, Hash, Signature) to obtain the storage address of the detailed production record, and calls the production record of the manufacturer chain L2 through ICC to verify the production process of the product and obtain the production certificate VerifyProduction(ProductID, ProductionRecord, V-DID_S), and then calls the DID management contract on the supplier chain L1 through ICC to verify the authenticity of V-DID_S. After the verification is passed, the retailer chain L3 will generate a transaction record, which can be expressed as Transaction(L-DID_C, V-DID_R, ProductID, Details, Timestamp, Signature), and synchronize the transaction record to the customer chain L4 through ICC to achieve full chain traceability. Among them, V-DID_R represents the retailer's virtual DID.
[0064] It can be understood that the present invention constructs a traceable identity link in a multi-chain environment, which can greatly improve the response speed of identity authentication, reduce the verification cost of users on different chains, and provide an efficient, secure and scalable solution for multi-chain identity management in supply chain finance scenarios.
[0065] In addition, if Figure 4 As shown, another embodiment of the present invention further provides a DID transplantation system applicable to supply chain finance, preferably using the DID transplantation method applicable to supply chain finance as described above, including:
[0066] A DID migration module is used to generate a first local DID for each batch of raw materials on the supplier chain, map the first local DID to a first virtual DID, and then migrate the first virtual DID to the manufacturer chain;
[0067] A DID association module, for generating a second local DID for each batch of products on the producer chain, and associating the second local DID with the first virtual DID in the production record;
[0068] The cross-chain sharing module is used to synchronize the production record information on the manufacturer chain to the retailer chain. The retailer chain verifies the authenticity of the production record and stores the relevant DID information.
[0069] The cross-chain verification module is used to send a commodity purchase request to the retailer chain on the customer chain. The retailer chain verifies the production process of the commodity by calling the detailed production records on the manufacturer chain. After verifying the authenticity of the supplier's identity, it generates a transaction record and synchronizes it to the customer chain.
[0070] It can be understood that the DID transplantation system for supply chain finance in this embodiment, after generating the first local DID for each batch of raw materials on the supplier chain, maps the first local DID to the first virtual DID through identity mapping and then transplants it to the producer chain, so that the DID can be dynamically transplanted to the target chain without re-registration, and can achieve seamless migration of DID between different chains. In addition, after generating the second local DID for each batch of products on the producer chain, the second local DID is also associated with the first virtual DID in the production record, and the production record information on the producer chain is synchronized to the retailer chain. The retailer chain can verify the production process of the product by calling the detailed production record on the producer chain, and generate a transaction record after verifying the authenticity of the supplier's identity and synchronize it to the customer chain. In a multi-chain environment, a traceable identity link is constructed, which can greatly improve the response speed of identity authentication, reduce the verification cost of users on different chains, and provide an efficient, secure and scalable solution for multi-chain identity management in supply chain finance scenarios.
[0071] In addition, another embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the above method by calling the computer program stored in the memory.
[0072] In addition, another embodiment of the present invention further provides a computer-readable storage medium for storing a computer program for DID migration suitable for supply chain finance, wherein the computer program executes the steps of the method described above when running on a computer.
[0073] The general form of computer readable storage media includes: floppy disk, flexible disk, hard disk, magnetic tape, any other magnetic medium, CD-ROM, any other optical medium, punch cards, paper tape, any other physical medium with a pattern of holes, random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), flash erasable programmable read-only memory (FLASH-EPROM), any other memory chip or cartridge, or any other medium that can be read by a computer. The instructions can further be transmitted or received by a transmission medium. The term transmission medium can include any tangible or intangible medium that can be used to store, encode or carry instructions for execution by a machine, and includes digital or analog communication signals or other intangible media that facilitate the communication of the above instructions. Transmission media include coaxial cables, copper wires and optical fibers, which include the wires of a bus used to transmit a computer data signal.
[0074] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0075] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0076] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0077] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0078] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0079] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0080] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. 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 DID transplantation method applicable to supply chain finance, wherein the multi-chain scenario of supply chain finance includes supplier chain, manufacturer chain, retailer chain and customer chain, characterized in that: Includes the following: Generate a first local DID for each batch of raw materials on the supplier chain, map the first local DID to a first virtual DID, and then transplant the first virtual DID to the producer chain; Generate a second local DID for each batch of products on the producer chain, and associate the second local DID with the first virtual DID in the production record; Synchronize the production record information on the manufacturer chain to the retailer chain, and the retailer chain verifies the authenticity of the production record and stores the relevant DID information; The customer chain sends a request to the retailer chain to purchase the product. The retailer chain verifies the production process of the product by calling the detailed production records on the manufacturer chain. After verifying the authenticity of the supplier's identity, it generates a transaction record and synchronizes it to the customer chain.
2. The DID transplantation method applicable to supply chain finance as claimed in claim 1, characterized in that: The process of generating a first local DID for each batch of raw materials on the supplier chain, mapping the first local DID to a first virtual DID, and then transplanting the first virtual DID to the manufacturer chain includes the following: The supplier generates a unique first local DID and DID document on the supplier chain for each batch of raw materials. The supplier chain maps the first local DID to the first virtual DID through the first cross-chain virtual identity proxy layer, and synchronizes the first virtual DID to the second cross-chain virtual identity proxy layer of the producer chain; The producer issues a cross-chain identity verification request on the producer chain to the supplier chain; The first cross-chain virtual identity proxy layer generates a migration credential in response to the cross-chain identity authentication request, and synchronizes the migration credential and the first virtual DID to the second cross-chain virtual identity proxy layer of the producer chain through the inter-chain trust bridge; After receiving the transplant certificate and the first virtual DID, the second cross-chain virtual identity proxy layer verifies the authenticity of the first virtual DID and the first local DID. After the verification is passed, the first virtual DID is officially registered on the producer chain.
3. The DID transplantation method applicable to supply chain finance as claimed in claim 2, characterized in that: DID documents are stored in a distributed storage system, and the hash value of the storage address is stored on the supplier chain after hash encryption.
4. The DID transplantation method applicable to supply chain finance as claimed in claim 2, characterized in that: The migration credential includes a zero-knowledge proof, and the second cross-chain virtual identity proxy layer verifies the authenticity of the first virtual DID and the first local DID through the zero-knowledge proof.
5. The DID transplantation method applicable to supply chain finance as claimed in claim 1, characterized in that: Detailed production records are stored in a distributed storage system, and the hash value of the storage address after hash encryption is stored on the producer chain.
6. The DID transplantation method applicable to supply chain finance as claimed in claim 5, characterized in that: The production record information includes a hash value of the detailed production record storage address, the second local DID, the first virtual DID, and the manufacturer's signature.
7. The DID transplantation method applicable to supply chain finance as claimed in claim 6, characterized in that: The customer chain sends a commodity purchase request to the retailer chain. The retailer chain verifies the production process of the commodity by calling the detailed production records on the manufacturer chain. After verifying the authenticity of the supplier's identity, the transaction record is generated and synchronized to the customer chain. The process includes the following: The customer sends a purchase request to the retailer on the customer chain and provides the customer's third local DID and signature. The third cross-chain virtual identity proxy layer of the retailer chain verifies the customer's third local DID and synchronizes the third virtual DID through the inter-chain trust bridge. The retailer chain decrypts the hash value in the production record information shared by the manufacturer chain to obtain the storage address of the detailed production record, and calls the detailed production record of the product on the manufacturer chain through the cross-chain smart contract integration layer to verify the production process of the product, and calls the DID management contract on the supplier chain through the cross-chain smart contract integration layer to verify the authenticity of the supplier's identity; The retailer chain generates transaction records and synchronizes them to the customer chain through the cross-chain smart contract integration layer.
8. A DID transplantation system suitable for supply chain finance, characterized in that: include: A DID migration module is used to generate a first local DID for each batch of raw materials on the supplier chain, map the first local DID to a first virtual DID, and then migrate the first virtual DID to the manufacturer chain; A DID association module, for generating a second local DID for each batch of products on the producer chain, and associating the second local DID with the first virtual DID in the production record; The cross-chain sharing module is used to synchronize the production record information on the manufacturer chain to the retailer chain. The retailer chain verifies the authenticity of the production record and stores the relevant DID information. The cross-chain verification module is used to send a commodity purchase request to the retailer chain on the customer chain. The retailer chain verifies the production process of the commodity by calling the detailed production records on the manufacturer chain. After verifying the authenticity of the supplier's identity, it generates a transaction record and synchronizes it to the customer chain.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the method according to any one of claims 1 to 7 by calling the computer program stored in the memory.
10. A computer-readable storage medium for storing a computer program for DID migration applicable to supply chain finance, characterized in that: When the computer program is run on a computer, the steps of the method according to any one of claims 1 to 7 are executed.
Citation Information
Patent Citations
Blockchain supply chain financial supply method and system based on DID and zero knowledge proof
CN112732832A
Data transmission system based on cross-chain architecture and identity privacy protection
CN115664760A
Supply chain data credible sharing-oriented multi-chain collaborative traceability system and method
CN118037314A
Cross-chain identity authentication method and system based on group signature and zero-knowledge proof
CN118473637A
Supply chain financial distributed digital identity authentication method based on block chain
CN118940313A