Industrial chain atlas transaction method and device based on block chain, equipment and medium
By generating unique identifiers and verification information for the industry chain map and using blockchain smart contracts for evidence storage, the problems of unclear ownership and insecure transfer of the industry chain map are solved, achieving clear definition of ownership and traceability of the entire transfer trajectory, thereby improving transaction efficiency and legality.
Patent Information
- Application Number
- CN202610063519.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-19
- Publication Date
- 2026-02-24
AI Technical Summary
Existing technologies lack a reliable identification system that can strongly bind ownership of the industry chain map to the identity of the entity, and a closed-loop mechanism that supports secure data transfer and full-chain traceability. This results in ambiguous ownership of the industry chain map and a lack of tamper-proof records during the transfer process, which seriously restricts its market circulation as a data asset.
By generating unique map identifiers and verification information for the industry chain map, integrating them into map documents, and storing them through pre-set smart contracts on the blockchain, the ownership of the map is clearly defined and the information is reliably solidified. The information of all current owners is automatically updated and historical records are retained, and the authenticity of the data is strengthened by relying on verification information.
It achieves clear definition of ownership of the industrial chain map and traceability of the entire circulation trajectory, automates the confirmation of ownership and transaction flow of the map, reduces the risks and management costs of manual operation, and improves transaction efficiency and legality.
Smart Images

Figure CN121563533A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to blockchain technology, industrial chain technology, and in particular to a blockchain-based industrial chain graph trading method, apparatus, equipment, and medium. Background Technology
[0002] Blockchain technology, with its core characteristics of decentralization, immutability, and traceability, has been widely applied in areas such as ownership confirmation and transaction traceability of digital assets (e.g., supply chain maps). As the digital transformation of supply chains deepens, the data value of supply chain maps, as the core carrier integrating upstream and downstream entities, links, and data connections, is becoming increasingly prominent. This creates an urgent need for the definition of ownership, secure transfer, and reliable traceability of supply chain maps. However, no dedicated solution for supply chain maps has yet been developed in related technologies. There is a lack of a reliable identification system that can strongly bind ownership and entity identity within the supply chain map, and no closed-loop mechanism to support secure data transfer and full-chain traceability. This results in ambiguous ownership of supply chain maps, a lack of immutable records during the transfer process, and easily broken traceability chains, severely restricting their market circulation as data assets. Summary of the Invention
[0003] To address the aforementioned technical issues, this disclosure provides a blockchain-based method, apparatus, device, and medium for trading supply chain graphs.
[0004] One aspect of this disclosure provides a blockchain-based method for trading supply chain graphs, comprising: in response to detecting a first user's publishing operation on a first supply chain graph, generating a first graph identifier and a first graph document, the first graph document including the first graph identifier, current owner information, and verification information of the first supply chain graph, the current owner information including the first user identifier of the first user; registering the first graph document into a first preset smart contract to store the first graph document in a blockchain, the first preset smart contract being set in the blockchain; in response to determining that a second user has successfully traded the first supply chain graph, updating the current owner information in the first graph document to the second user identifier of the second user, and updating the first user identifier to historical owner information, obtaining an updated first graph document; and registering the updated first graph document into the first preset smart contract to provide evidence of the updated first graph document.
[0005] Another aspect of this disclosure provides a blockchain-based supply chain graph trading device, comprising: a first identifier generation module, configured to generate a first graph identifier and a first graph document in response to detecting a first user's publishing operation on a first supply chain graph, the first graph document including the first graph identifier, current owner information, and verification information of the first supply chain graph, the current owner information including the first user identifier of the first user; a first registration module, configured to register the first graph document to a first preset smart contract to store the first graph document in the blockchain, the first preset smart contract being set in the blockchain; a first document update module, configured to update the current owner information in the first graph document to the second user identifier of the second user and update the first user identifier to historical owner information in response to determining that a second user has successfully traded the first supply chain graph, thereby obtaining an updated first graph document; and a second registration module, configured to register the updated first graph document to the first preset smart contract to preserve the updated first graph document.
[0006] In another aspect of this disclosure, an electronic device is provided, comprising: a memory for storing a computer program; and a processor for executing the computer program stored in the memory, wherein when the computer program is executed, it implements the method described above.
[0007] In another aspect of this disclosure, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the method described above.
[0008] Based on the embodiments of this disclosure, by generating a unique first graph identifier for the industry chain graph, the first graph identifier, current owner information, and verification information are integrated into a first graph document and stored on the blockchain through a first preset smart contract. This achieves clear definition of graph ownership and reliable information solidification, while also strengthening the authenticity of graph data through verification information. After a successful transaction of the first industry chain graph, the current owner information in the first graph document is automatically updated, and the original owner information is retained as a record of historical owner information. This enables complete tracing of the ownership transfer trajectory of the first industry chain graph, providing a reliable basis for ownership verification and dispute resolution. At the same time, the registration and storage of the first graph document are completed automatically without third-party intervention, improving the efficiency of graph ownership confirmation, transaction flow, and ownership update, reducing the risks and management costs of manual operation, and comprehensively ensuring the legality, traceability, and compliant circulation capability of the industry chain graph as a data asset.
[0009] The technical solutions of this disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0010] The accompanying drawings, which form part of this specification, illustrate embodiments of this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0011] This disclosure will become clearer with reference to the accompanying drawings and the following detailed description, wherein: Figure 1 A flowchart illustrating the blockchain-based supply chain graph trading method in this embodiment of the present disclosure is shown. Figure 2 A flowchart illustrating a blockchain-based supply chain graph trading method is shown in another embodiment of this disclosure. Figure 3 A flowchart illustrating a blockchain-based supply chain graph trading method is shown in yet another embodiment of this disclosure. Figure 4 A flowchart illustrating a blockchain-based supply chain graph trading method is shown in another embodiment of this disclosure. Figure 5 A schematic diagram illustrating an application example of the blockchain-based supply chain graph trading method disclosed herein is shown. Figure 6 A block diagram of a blockchain-based supply chain graph trading device is shown in an embodiment of this disclosure; Figure 7 This is a schematic diagram of the structure of an application embodiment of the electronic device disclosed herein. Detailed Implementation
[0012] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.
[0013] Those skilled in the art will understand that the terms "first," "second," etc., in the embodiments of this disclosure are only used to distinguish different steps, devices, or modules, and do not represent any specific technical meaning, nor do they indicate a necessary logical order between them.
[0014] It should also be understood that in the embodiments disclosed herein, "a plurality of" may refer to two or more, and "at least one" may refer to one, two or more.
[0015] It should also be understood that any component, data or structure mentioned in the embodiments of this disclosure can generally be understood as one or more unless expressly defined or given to the contrary in the context.
[0016] Furthermore, the term "and / or" in this disclosure is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this disclosure generally indicates that the preceding and following related objects have an "or" relationship.
[0017] It should also be understood that the description of the various embodiments in this disclosure emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.
[0018] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.
[0019] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use.
[0020] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0021] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0022] The embodiments disclosed herein can be applied to electronic devices such as terminal devices, computer systems, and servers, and can operate together with a wide range of other general-purpose or special-purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments, and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, and servers include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments including any of the above systems, etc.
[0023] Electronic devices such as terminal devices, computer systems, and servers can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in distributed cloud computing environments, where tasks are executed by remote processing devices linked through communication networks. In distributed cloud computing environments, program modules can reside on local or remote computing system storage media, including storage devices.
[0024] Blockchain is a chain-like data structure that combines data blocks sequentially in chronological order, and uses cryptography to ensure that the data is immutable and unforgeable.
[0025] A supply chain map is a core carrier for visualizing and digitizing the industrial ecosystem, constructed in a digital and structured form. The core of a supply chain map is the systematic integration of upstream and downstream participants (such as suppliers, manufacturers, and distributors), all business processes (such as supply, production, distribution, and services), element relationships (such as cooperation, transactions, and dependencies), and key attribute data (such as qualifications, capacity, and price). It standardizes and presents the complete flow path from upstream supply to downstream end-users and the interaction rules between various elements according to industry logic.
[0026] Figure 1 This illustration shows a flowchart of a blockchain-based supply chain graph trading method according to an embodiment of this disclosure. This embodiment can be applied to electronic devices, such as… Figure 1 As shown, the blockchain-based supply chain graph trading method of this embodiment may include the following steps: Step S100: In response to detecting the first user's publishing operation on the first industry chain map, generate the first map identifier and the first map document.
[0027] The first graph document includes: the first graph identifier, current owner information, and verification information of the first industry chain graph. The current owner information includes: the first user identifier of the first user.
[0028] The first user identifier is used to uniquely identify the first user. For example, the first user identifier can be a BID (Blockchain-based Identity). The first user can be an enterprise, organization, group, or individual. A BID is a distributed identifier developed based on the W3C (World Wide Web Consortium) DID (Decentralized Identity) standard, and supports variable-length encoding of 39-57 bits. The first graph identifier is used to uniquely identify the first industry chain graph. The first graph identifier can also be a BID. The first graph document is used to store relevant information about the first industry chain graph. For example, the first graph document can also include industry chain graph data, which may include data required to generate the first industry chain graph, such as upstream enterprise information and logistics information. The first graph document can be a BID document. The semantic scope of the first graph document can follow the W3C DID standard. In one example, the first graph document and the first graph identifier can be bound together to establish a mapping relationship between them.
[0029] The current owner information represents the relevant information corresponding to the entity (user) that currently owns the industry chain map. In this embodiment, when the current owner information of the first BID document includes the first user identifier, it indicates that the first user owns the first industry chain map. The verification information of the first industry chain map may include: the hash value of the first industry chain map.
[0030] In one example, the first user logs into the supply chain graph trading system and generates a first supply chain graph in the system. The first user triggers a publishing request for the first supply chain graph in the system. The supply chain graph trading system generates a first graph BID (first graph identifier) and a first BID document (first graph document) for the first supply chain graph. The first BID document may include: the first graph BID, current owner information, and the hash value of the first supply chain graph, etc. The current owner information includes: the first user BID (first user identifier).
[0031] Step S120: Register the first graph document into the first preset smart contract to store the first graph document in the blockchain.
[0032] The first pre-defined smart contract is set up in the blockchain. This first pre-defined smart contract is used to store the industry chain map on the blockchain and to parse the industry chain map based on the map's identifiers.
[0033] For example, a document fingerprint of the first graph document can be generated based on a first preset smart contract, and this document fingerprint can be stored in the blockchain to register the first BID document into the first preset smart contract. Specifically, the industry chain graph trading system can call the first preset smart contract from the blockchain. The first preset smart contract can generate a document fingerprint of the first BID document, including the first graph BID, the hash value of the first BID document, the first user BID, and the storage information of the first BID document. Then, the document fingerprint is stored in the blockchain to complete the operation of registering the first BID document into the first preset smart contract. The industry chain graph trading system can also store the first BID document in IPFS (InterPlanetary File System), and the storage information of the first BID document includes the storage address of the first BID document in IPFS. When the first BID document is needed, the first preset smart contract can be invoked. The first preset smart contract obtains the document fingerprint of the first BID document from the blockchain based on the first graph BID. Then, based on the storage information of the first BID document in the document fingerprint, the first BID document is obtained. The hash value of the obtained first BID document is compared with the hash value of the first BID document in the document fingerprint. When the hash value of the obtained first BID document matches the hash value of the first BID document in the document fingerprint, it is determined that the obtained first BID document is accurate.
[0034] Alternatively, the first preset smart contract establishes a mapping relationship between the first graph BID and the first BID document, and then stores the mapping relationship and the first BID document in the blockchain. When the first BID document is needed, the first preset smart contract can be called, and the first preset smart contract retrieves the first BID document from the blockchain based on the first document BID.
[0035] Step S140: In response to determining that the second user has successfully completed the transaction of the first industry chain map, the current owner information in the first map document is updated to the second user's second user identifier, and the first user identifier is updated to the historical owner information to obtain the updated first map document.
[0036] The second user can be an enterprise, organization, group, or individual. A successful transaction of the first industry chain map by the second user signifies that the second user has successfully purchased the first industry chain map, and the second user is the owner of the first industry chain map. The second user identifier is used to uniquely identify the second user; for example, a BID can be used. The updated first industry chain map document can include the first industry chain map identifier, current owner information, verification information for the first industry chain map, and historical owner information. The current owner information includes the second user's BID (second user identifier), and the historical owner information includes the first user's BID. Historical owner information represents information about all past holders of rights to the first industry chain map. When the historical owner information includes the first user's identifier, it indicates that the first user was previously the holder of the first industry chain map.
[0037] For example, when a second user logs into the supply chain map trading system and successfully purchases the first supply chain map in the system (confirming a successful transaction), the supply chain map trading system obtains the first BID document. Then, it updates all party information in the first BID document with the second user's BID and determines the historical party information as the first user's BID, thus obtaining the updated first BID document.
[0038] Step S160: Register the updated first graph document into the first preset smart contract to store the updated first graph document.
[0039] The method of registering the updated first graph document to the first preset smart contract is the same as the method of registering the first graph document to the first preset smart contract, and will not be repeated here.
[0040] In this embodiment, a unique first graph identifier is generated for the industry chain graph. The first graph identifier, current owner information, and verification information are integrated into a first graph document and stored on the blockchain through a first preset smart contract. This achieves clear definition of graph ownership and reliable information solidification, while strengthening the authenticity of graph data through verification information. After a successful transaction of the first industry chain graph, the current owner information in the first graph document is automatically updated, and the original owner information is retained as a record of historical owner information. This enables complete tracing of the ownership transfer trajectory of the first industry chain graph, providing a reliable basis for ownership verification and dispute resolution. At the same time, the registration and storage of the first graph document are completed automatically without third-party intervention, improving the efficiency of graph ownership confirmation, transaction flow, and ownership update, reducing the risks and management costs of manual operation, and fully guaranteeing the legality, traceability, and compliant circulation capability of the industry chain graph as a data asset.
[0041] Figure 2A flowchart illustrating a blockchain-based supply chain graph trading method according to another embodiment of this disclosure is shown. In some alternative implementations, such as... Figure 2 As shown, the following steps may be included before step S100: Step S200: Based on the preset verification algorithm, determine the verification information of the first industrial chain map.
[0042] The preset verification algorithm may include MD5 (Message-Digest Algorithm 5) or CRC (Cyclic Redundancy Check). For example, when the supply chain graph trading system detects that the first user has published the first supply chain graph, it calculates the hash value of the first supply chain graph based on the preset verification algorithm and uses this hash value as the verification information of the first supply chain graph.
[0043] Step S210: Based on the verification information of the first industry chain map, determine whether the blockchain stores a map that is the same as the first industry chain map.
[0044] In one example, the blockchain stores verification information for multiple industry chain maps. The industry chain map trading system can match the hash value (verification information) of the first industry chain map with the hash values (verification information) of the industry chain maps stored in the blockchain to determine if there is a matching hash value. If a hash value matching the hash value of the first industry chain map exists in the blockchain, it is determined that a map identical to the first industry chain map exists in the blockchain, and the publishing operation ends. If no hash value matching the hash value of the first industry chain map exists in the blockchain, it is determined that a map identical to the first industry chain map does not exist in the blockchain, and step S230 is executed.
[0045] Step S220: In response to the absence of a graph identical to the first industry chain graph in the blockchain, the operation of generating a first graph identifier and a first graph document is performed.
[0046] When the supply chain graph trading system determines that there is no graph in the blockchain that is identical to the first supply chain graph, it generates the first graph BID and the first BID document, and stores the verification information of the first supply chain graph in the blockchain.
[0047] In some optional implementations, in this embodiment of the disclosure, before step S100, the method may further include: obtaining the verifiable credentials and the first user identifier of the first user, performing compliance verification on the verifiable credentials and the first user identifier of the first user, and in response to the first user's verifiable credentials and the first user identifier both passing the compliance verification, allowing the first user to generate and publish the first industry chain map.
[0048] In this context, the first user's BID corresponds to (is bound to) the first user's verifiable credentials (VC). Verifiable credentials are used to endorse or prove that the user identified by their corresponding user ID possesses certain attributes. The first user's verifiable credentials may include: the first user's name, the first user's BID, the attributes possessed by the first user, the credential's validity date, the credential ID (IdentityDocument), the name of the third-party authority that issued the credential, and the credential's signature. The credential signature can be a signature made by the third-party authority that issued the credential using the private key from its public-private key pair.
[0049] In one example, the first user can apply for a digital identity from a third-party authority. This digital identity includes the first user's BID and verifiable credentials. The first user has a blockchain wallet (plugin wallet) that stores their BID and verifiable credentials. For instance, a supply chain mapping trading system can retrieve the first user's BID and verifiable credentials from the blockchain wallet via its SDK (Software Development Kit) interface.
[0050] The first user logs into the industry chain trading system. The system requests the first user's verifiable credentials and identifier from their blockchain wallet. The first user's blockchain wallet presents the verifiable credentials and identifier to the system. The system then verifies the signature of the first user's verifiable credentials using the public key from the public-private key pair of the third-party authority that issued the verifiable credentials. If the signature passes verification, the system confirms the user's verifiable credentials have passed compliance verification. The system also checks if the first user's BID format conforms to a preset identifier format; if so, the BID has passed compliance verification. If both the first user's verifiable credentials and BID pass compliance verification, the user can generate, publish, and trade first industry chain graphs within the system. If the first user's verifiable credentials and / or BID fail compliance verification, the operation ends, and the user is not allowed to generate first industry chain graphs within the system.
[0051] Figure 3 A flowchart illustrating a blockchain-based supply chain graph trading method is shown in yet another embodiment of this disclosure. In some alternative implementations, such as... Figure 3 As shown, the steps between S120 and S140 may also include: Step S130: Based on the second preset smart contract, generate map display information of the first industry chain map, and display the first industry chain map and the map display information of the first industry chain map.
[0052] The information displayed in the first industry chain map includes: the first map identifier and the current owner information of the first map identifier. Specifically, the map display information may also include: the name, brief description, name of the first user, and creation time of the first industry chain map.
[0053] In one example, the second pre-defined smart contract is used to create graph display information and display industry chain graphs and graph display information, execute and record industry chain graph transaction behaviors, and automatically drive the ownership change of the blockchain graph after the transaction is completed. The second pre-defined smart contract is set in the blockchain. The industry chain graph transaction system calls the second pre-defined smart contract from the blockchain. The second pre-defined smart contract can generate graph display information of the first industry chain graph based on the relevant information of the first industry chain graph input by the first user, or generate graph display information based on the industry chain graph data of the first industry chain graph in the first BID document.
[0054] In some optional implementations, in this embodiment of the disclosure, before steps S130 and S140, the method may further include: in response to detecting a transaction operation by a second user on the first industry chain graph, generating signature transaction information of the transaction operation on the first industry chain graph based on a second preset smart contract, and then storing the signature transaction information in the blockchain to determine that the transaction on the first industry chain graph is successful.
[0055] The second user possesses verifiable credentials. The second user's BID corresponds to (is bound to) the second user's verifiable credentials. The method by which the second user obtains the second user's BID and the second user's verifiable credentials can be the same as the method by which the first user's BID and the first user's verifiable credentials are obtained; please refer to the method for obtaining the first user's BID and the first user's verifiable credentials, which will not be repeated here.
[0056] The second user has a blockchain wallet (plug-in wallet) that stores the second user's BID, verifiable credentials, and public-private key pair. The second user can create their own public-private key pair within their blockchain wallet, or they can request it from a third-party authority. The public-private key pair consists of a public key and a private key. The public key is used to verify signatures generated from the private key, and the private key is used to sign data or information. The public-private key pair can be generated using the SM2 (Chinese national cryptographic algorithm), symmetric encryption algorithms, or asymmetric encryption algorithms.
[0057] In one example, a second user logs into the supply chain graph trading system. When the second user performs a purchase operation (transaction) on the first supply chain graph, the supply chain graph trading system calls a second preset smart contract from the blockchain. Based on the second preset smart contract, transaction information for this purchase operation is generated and sent to the second user's blockchain wallet. The second user's blockchain wallet uses the private key in the second user's public-private key pair to sign the transaction information, obtaining signed transaction information, which is then sent to the supply chain graph trading system. The supply chain graph trading system transfers the fee (Gas) paid by the second user (payer) to the first user (receiver) based on the second preset smart contract and stores the signed transaction information in the blockchain. When it is confirmed that the signed transaction information has been uploaded to the blockchain, the second user's transaction on the first supply chain graph is confirmed to be successful. The supply chain graph trading system then executes step S140 to transfer ownership of the first supply chain graph to the second user. The second user logs into the supply chain graph trading system in the same way as the first user logs into the supply chain graph. Please refer to the method for the first user to log into the supply chain graph. The transaction information may include: first user BID, second user BID, first graph BID, transaction fee, transaction number, etc.
[0058] In some alternative implementations, in this embodiment of the disclosure, before step S140, the method may further include: in response to the user identifier of the payee in the transaction operation being consistent with the current owner information in the first graph document, performing a transfer operation to the payee, and performing an operation to store the signed transaction information in the blockchain.
[0059] Before executing a transfer to the recipient, the supply chain graph trading system can perform a consistency match between the recipient's user identifier and the first user BID (the current owner information in the first graph document). If the recipient's user identifier matches the first user BID, the transfer is executed, and the signed transaction information is stored on the blockchain, confirming the success of the transaction for the first supply chain graph. If the recipient's user identifier does not match the first user BID, the transaction for the first supply chain graph fails, and the operation ends.
[0060] In the disclosed embodiments, the transfer operation is executed only after verifying whether the recipient's user identifier is consistent with the current owner information, and the signed transaction information is stored on the blockchain. This not only ensures the compliance and security of fund transfer, but also avoids malicious behavior by leveraging the immutability of blockchain, ensuring that the transaction process is trustworthy and traceable.
[0061] Figure 4 A flowchart illustrating a blockchain-based supply chain graph trading method is shown in another embodiment of this disclosure. In some alternative implementations, such as... Figure 4 As shown in the embodiments of this disclosure, the blockchain-based supply chain graph trading method may further include the following steps: Step S300: In response to the detection of a request to publish the second industry chain map, the verification information of the second industry chain map is determined based on a preset verification algorithm.
[0062] The second industry chain map is generated based on the first industry chain map. Verification information for the second industry chain map includes its hash value.
[0063] In one example, a second user can modify the first industry chain map in the industry chain map trading system to obtain the second industry chain map. The second user triggers a request to publish the second industry chain map in the industry chain map trading system. The industry chain map trading system calculates the hash value of the second industry chain map based on a preset verification algorithm and uses the hash value as the verification information of the second industry chain map.
[0064] Step S310: Determine whether the blockchain stores a graph identical to the second industry chain graph based on the verification information of the second industry chain graph.
[0065] The supply chain graph trading system can match the hash value (verification information) of the second supply chain graph with the hash value (verification information) of the supply chain graph stored in the blockchain to determine whether there is a matching hash value. If there is a hash value in the blockchain that is the same as the hash value of the second supply chain graph, it is determined that there is a graph in the blockchain that is the same as the second supply chain graph, and the publishing operation ends. If there is no hash value in the blockchain that is the same as the hash value of the second supply chain graph, it is determined that there is no graph in the blockchain that is the same as the second supply chain graph, and step S320 is executed.
[0066] Step S320: In response to the absence of a graph identical to the second industry chain graph in the blockchain, a second graph identifier and a second graph document of the second industry chain graph are generated.
[0067] The second graph document (second BID document) includes: second graph identifier (second graph BID), current owner information of the second industrial chain graph and first graph document. The current owner information of the second industrial chain graph includes: second user identifier.
[0068] The second graph identifier is used to uniquely identify the second industry chain graph. The second graph identifier can be, for example, a BID (Browser ID). The second graph document is used to store relevant information about the second industry chain graph. For example, the second graph document may also include industry chain graph data, which may include data required to generate the second industry chain graph, such as upstream enterprise information and logistics information. The second graph document can also be, for example, a BID document. The semantic scope of the second graph document can conform to the W3C's DID (Digital ID) standard. In one example, the second graph document and the second graph identifier can be bound together to establish a mapping relationship between them.
[0069] Step S330: Register the second graph document into the first preset smart contract to store the second graph document.
[0070] The method for registering the second graph document into the first preset smart contract is the same as the method for registering the first graph document into the first preset smart contract. Please refer to the method for registering the first graph document into the first preset smart contract, which will not be repeated here.
[0071] Step S340: Based on the second preset smart contract, generate map display information of the second industry chain map, and display the map display information of the second industry chain map.
[0072] The second industry chain map displays information including: the second industry chain identifier and its current owner information. Specifically, this information may also include: the name of the second industry chain map, a brief description, the name of the first user, and the creation time.
[0073] In one example, the supply chain graph trading system calls a second preset smart contract from the blockchain. The second preset smart contract can generate graph display information of the second supply chain graph based on the relevant information of the second supply chain graph input by the second user, or generate the graph display information based on the supply chain graph data of the second supply chain graph in the second BID document, and display the second supply chain graph and the graph display information.
[0074] In some alternative implementations, including the disclosed embodiments, the step between S320 and S330 may further include: Determine whether the current owner information in the second graph document is consistent with the current owner information in the first graph document. In response to the consistency between the current owner information in the second graph document and the current owner information in the first graph document, perform the operation of registering the second graph document into the first preset smart contract.
[0075] Specifically, after generating the second graph document, the industry chain graph trading system determines whether the current owner information in the second graph document is consistent with the current owner information in the first graph document. If both the current owner information in the second graph document and the current owner information in the first graph document are the second user BID, it is determined that the current owner information in the second graph document is consistent with the current owner information in the first graph document, and step S330 is executed. If the current owner information in the second graph document is not the second user BID and / or the current owner information in the first graph document is not the second user BID, it is determined that the current owner information in the second graph document is inconsistent with the current owner information in the first graph document, and the operation ends.
[0076] In this embodiment of the disclosure, after verifying whether the current owner information of the second graph document is consistent with that of the first graph document, the second graph document is registered to the preset smart contract. This ensures the compliance of the ownership of the graph operation, and also avoids malicious behavior by relying on the automated execution of the smart contract, thus ensuring the credibility of the on-chain evidence.
[0077] Figure 5 This diagram illustrates an application example of the blockchain-based supply chain graph trading method disclosed herein. For example... Figure 5 As shown, both the publisher A (first user) and participant B (second user) of the industry chain map have digital wallets (blockchain wallets). Taking publisher A as an example, this explains how to obtain publisher BID (first user BID), verifiable credentials, and identity verification. Participant B can refer to this. In digital wallets: 1. The industry chain map publisher A installs a digital wallet on its electronic devices (e.g., computers, tablets, etc.); 2. Create an account BID. Specifically, the industry chain map publisher A creates an account BID by using the digital wallet participant BID. 3. Apply for certification; specifically, apply for verifiable credentials from an authoritative third-party organization. 4. Complete the authentication and obtain the verifiable credential VC (the first user's verifiable credential). Specifically, after a third-party authoritative institution completes the authentication of the industry chain map publisher A, it issues the industry chain map publisher A's verifiable credential. The industry chain map publisher A's digital wallet stores the verifiable credential and the participant's BID. In the industry chain mapping trading system: 5. Industry chain map publisher A logs in. Specifically, industry chain map publisher A logs in to the industry chain publishing system through a digital wallet. 6. Present verifiable credentials to complete identity verification. Specifically, the digital wallet of the industry chain map publisher A presents the participant BID and the verifiable credentials of the industry chain map publisher A to the industry chain map trading system. The industry chain map trading system performs compliance verification on the verifiable credentials and the participant BID. When both pass the compliance verification, the identity verification is confirmed to be complete. 7. Create / import the first industry chain map and submit a sending request. That is, the industry chain map publisher A creates / imports the first industry chain map and then submits a sending request. 8. Perform hash calculation (preset verification algorithm) on the first industry chain map to generate the hash value (verification information) of the first industry chain map; 9. Graph deduplication verification: Specifically, determine whether the blockchain stores a hash value that is the same as the hash value of the first industry chain graph. If it does not exist, proceed to step 10. If it exists, end the operation. 10. Generate a unique identifier BID1 (first map identifier) and a BID1 document (first map document) for the first industry chain map, and write BID1 into the BID1 document; 11. Call Contract 1 (the first preset smart contract) to register the BID1 document into Contract 1; 12. Call Contract 2 (the second preset smart contract) to generate graph display information and publish the graph display information and the first industry chain graph; 13. Display the first industrial chain map and map display information; 14. Participant B purchases the first industry chain map, that is, conducts a transaction operation on the first industry chain map; 15. Call Contract 2 to sign the purchase transaction on the blockchain. That is, Contract 2 generates signed transaction information and stores the signed transaction information on the blockchain. 16. Update the BID1 document, that is, update the current owner information in the BID1 document to the participant BID (second user BID) of participant B, and update the publisher BID to the historical owner information, and register the updated BID1 document to the first preset smart contract; 17. Participant B has successfully purchased the first industry chain map and can view and edit the first industry chain map; 18. Participant B modifies the first industry chain map, generates the second industry chain map, and publishes the second industry chain map; 19. Perform hash calculation on the second industry chain map to generate the hash value of the second industry chain map; 20. Graph deduplication verification: Specifically, determine whether the blockchain stores a hash value that is the same as the hash value of the second industry chain graph. If it does not exist, proceed to step 21; if it does exist, end the operation. 21. Generate a unique identifier BID2 (second map identifier) and a BID2 document (second map document) for the first industry chain map, and write BID2 into the BID2 document; 22. Call contract 1 to register the BID2 document into contract 1; 23. Call contract 2 to generate map display information and publish the map display information and the second industry chain map; 24. Display the second industrial chain map and map display information.
[0078] Figure 6 This diagram illustrates a block diagram of a blockchain-based supply chain graph trading device according to an embodiment of this disclosure. Figure 6 As shown, this embodiment of the blockchain-based industry chain graph trading device includes: The first identifier generation module 400 is used to generate a first map identifier and a first map document in response to detecting a first user's publishing operation on the first industry chain map. The first map document includes the first map identifier, current owner information and verification information of the first industry chain map. The current owner information includes the first user identifier of the first user. The first registration module 410 is used to register the first graph document to a first preset smart contract so as to store the first graph document in the blockchain. The first preset smart contract is set in the blockchain. The first document update module 420 is used to update the current owner information in the first graph document to the second user's second user identifier and update the first user identifier to the historical owner information in response to determining that the second user has successfully transacted with the first industry chain graph, thereby obtaining an updated first graph document. The second registration module 430 is used to register the updated first graph document into the first preset smart contract to store the updated first graph document.
[0079] In one optional embodiment, the blockchain-based industry chain map trading device in this disclosure further includes: The first verification module is used to determine the verification information of the first industry chain map based on a preset verification algorithm; determine whether the blockchain stores a map that is the same as the first industry chain map based on the verification information of the first industry chain map; and, in response to the absence of a map that is the same as the first industry chain map in the blockchain, perform the operation of generating the first map identifier and the first map document.
[0080] In one optional embodiment, the blockchain-based industry chain map trading device in this disclosure further includes: The first verification module is used to obtain the verifiable credentials and the first user identifier of the first user; to perform compliance verification on the verifiable credentials and the first user identifier; and to allow the first user to generate and publish the first industry chain map in response to the fact that both the verifiable credentials and the first user identifier have passed the compliance verification.
[0081] In one optional embodiment, the blockchain-based industry chain map trading device in this disclosure further includes: The first publishing and display module is used to generate graph display information of the first industry chain graph based on the second preset smart contract, and to display the first industry chain graph and the graph display information. The graph display information includes the first graph identifier and the current owner information of the first graph identifier.
[0082] In one optional embodiment, the blockchain-based industry chain map trading device in this disclosure further includes: The transaction module is used to respond to the detection of a transaction operation by the second user on the first industry chain graph, generate a signature transaction information of the transaction operation on the first industry chain graph based on the second preset smart contract, store the signature transaction information in the blockchain, and determine that the transaction on the first industry chain graph is successful.
[0083] In one optional embodiment, the blockchain-based industry chain map trading device in this disclosure further includes: The transaction module is also used to perform a transfer operation to the payee in response to the fact that the user identifier of the payee in the transaction operation is consistent with the current owner information, and to perform the operation of storing the signed transaction information in the blockchain.
[0084] In one optional embodiment, the blockchain-based industry chain map trading device in this disclosure further includes: The second verification module is used to respond to the detection of a request to publish the second industry chain map, and to determine the verification information of the second industry chain map based on a preset verification algorithm. The second industry chain map is generated based on the first industry chain map. Based on the verification information of the second industry chain map, it is used to determine whether the blockchain stores a map that is the same as the second industry chain map. The second identifier generation module is used to generate a second identifier and a second map document for the second industrial chain map in response to the absence of a map identical to the second industrial chain map in the blockchain. The second map document includes the second map identifier, the current owner information of the second industrial chain map, and the first map document. The current owner information of the second industrial chain map includes the second user identifier. The third registration module is used to register the second graph document into the first preset smart contract to preserve the second graph document; The second publishing and display module is used to generate the graph display information of the second industry chain map based on the second preset smart contract, and to display the second industry chain map and the graph display information of the second industry chain map. The graph display information of the second industry chain map includes the second map identifier and the current owner information of the second map identifier.
[0085] In one optional embodiment, the blockchain-based industry chain map trading device in this disclosure further includes: The second registration module is further configured to determine whether the current owner information in the second graph document is consistent with the current owner information in the first graph document; in response to the consistency between the current owner information in the second graph document and the current owner information in the first graph document, the module executes the operation of registering the second graph document to the first preset smart contract.
[0086] The blockchain-based supply chain graph trading device disclosed herein corresponds to the embodiments of the blockchain-based supply chain graph trading methods disclosed above, and the relevant contents can be referred to each other, which will not be repeated here.
[0087] The beneficial technical effects of the exemplary embodiment of the blockchain-based industry chain graph trading device disclosed herein can be found in the corresponding beneficial technical effects in the exemplary method section above, and will not be repeated here.
[0088] In addition, this disclosure also provides an electronic device, including: Memory, used to store computer programs; A processor is configured to execute a computer program stored in the memory, and when the computer program is executed, to implement the blockchain-based supply chain graph trading method described in any of the above embodiments of this disclosure.
[0089] Figure 7 This is a schematic diagram illustrating the structure of an application embodiment of the electronic device disclosed herein. Below, reference is made to… Figure 7 This describes an electronic device according to embodiments of the present disclosure. The electronic device may be either or both of a first device and a second device, or a standalone device independent of them, which may communicate with the first device and the second device to receive acquired input signals from them.
[0090] like Figure 7 As shown, the electronic device includes one or more processors and memory.
[0091] A processor can be a central processing unit (CPU) or other form of processing unit with data processing and / or instruction execution capabilities, and can control other components in an electronic device to perform desired functions.
[0092] The memory may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor may execute the program instructions to implement the blockchain-based supply chain graph trading method and / or other desired functions described in the various embodiments of this disclosure above.
[0093] In one example, the electronic device may also include input devices and output devices, which are interconnected via a bus system and / or other forms of connection mechanism (not shown).
[0094] In addition, the input device may include, for example, a keyboard, a mouse, etc.
[0095] This output device can output various information to the outside, including determined distance information, direction information, etc. The output device may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.
[0096] Of course, for the sake of simplicity, Figure 7 Only some of the components of the electronic device relevant to this disclosure are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device may include any other suitable components depending on the specific application.
[0097] In addition to the methods and devices described above, embodiments of this disclosure may also be computer program products, including computer program instructions that, when executed by a processor, cause the processor to perform the steps in the blockchain-based supply chain graph trading method according to various embodiments of this disclosure as described in the foregoing sections of this specification.
[0098] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this disclosure. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on a user's computing device, partially on a user's computing device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0099] Furthermore, embodiments of this disclosure may also be computer-readable storage media storing computer program instructions that, when executed by a processor, cause the processor to perform the steps in the blockchain-based supply chain graph trading method according to various embodiments of this disclosure as described in the foregoing portion of this specification.
[0100] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.
[0101] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as ROM, RAM, magnetic disk, or optical disk.
[0102] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.
[0103] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For system embodiments, since they largely correspond to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0104] The block diagrams of devices, apparatuses, devices, and systems disclosed herein are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0105] The methods and apparatus of this disclosure may be implemented in many ways. For example, they may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps for the methods is for illustrative purposes only, and the steps of the methods of this disclosure are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, this disclosure may also be implemented as a program recorded on a recording medium, the program including machine-readable instructions for implementing the methods according to this disclosure. Thus, this disclosure also covers recording media storing programs for performing the methods according to this disclosure.
[0106] It should also be noted that in the apparatus, devices, and methods of this disclosure, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions to this disclosure.
[0107] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.
[0108] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.
Claims
1. A blockchain-based method for trading supply chain graphs, characterized in that, include: In response to detecting a first user's publishing operation on a first industry chain map, a first map identifier and a first map document are generated. The first map document includes the first map identifier, current owner information, and verification information of the first industry chain map. The current owner information includes the first user identifier of the first user. The first graph document is registered to a first preset smart contract to store the first graph document in the blockchain, and the first preset smart contract is set in the blockchain; In response to the determination that the second user has successfully transacted with the first industry chain map, the current owner information in the first map document is updated to the second user's second user identifier, and the first user identifier is updated to the historical owner information to obtain the updated first map document; The updated first graph document is registered in the first preset smart contract to preserve the updated first graph document.
2. The method according to claim 1, characterized in that, Before generating the first atlas identifier and the first atlas document, the process also includes: Based on a preset verification algorithm, the verification information of the first industry chain map is determined; Based on the verification information of the first industry chain map, determine whether the blockchain stores a map that is the same as the first industry chain map; In response to the absence of a graph identical to the first industry chain graph in the blockchain, the operation of generating the first graph identifier and the first graph document is performed.
3. The method according to claim 1, characterized in that, The response prior to detecting the first user's publishing operation on the first industry chain map further includes: Obtain the verifiable credentials of the first user and the identifier of the first user; Perform compliance verification on the verifiable credentials and the first user identifier; In response to the fact that both the verifiable credentials and the first user identifier have passed compliance verification, the first user is allowed to generate and publish the first industry chain map.
4. The method according to claim 1, characterized in that, After registering the first graph document into the first preset smart contract, the method further includes: Based on the second preset smart contract, the graph display information of the first industry chain graph is generated, and the first industry chain graph and the graph display information are displayed. The graph display information includes the first graph identifier and the current owner information of the first graph identifier.
5. The method according to claim 4, characterized in that, The response prior to determining that the second user has successfully transacted with the first industry chain map includes: In response to detecting a transaction operation by the second user on the first industry chain map, a signature transaction information of the transaction operation on the first industry chain map is generated based on the second preset smart contract; The signed transaction information is stored in the blockchain to confirm that the transaction for the first industry chain map was successful.
6. The method according to claim 5, characterized in that, The response prior to determining that the second user has successfully transacted with the first industry chain map also includes: In response to the fact that the user identifier of the payee in the transaction operation matches the current owner information, a transfer operation is performed to the payee, and the operation of storing the signed transaction information in the blockchain is executed.
7. The method according to any one of claims 1-6, characterized in that, Also includes: In response to the detection of a request to publish a second industry chain map, the verification information of the second industry chain map is determined based on a preset verification algorithm. The second industry chain map is generated based on the first industry chain map. Based on the verification information of the second industry chain map, determine whether the blockchain stores a map that is the same as the second industry chain map; In response to the absence of a graph identical to the second industry chain graph in the blockchain, a second graph identifier and a second graph document of the second industry chain graph are generated. The second graph document includes the second graph identifier, the current owner information of the second industry chain graph, and the first graph document. The current owner information of the second industry chain graph includes the second user identifier. Register the second graph document into the first preset smart contract to preserve evidence of the second graph document; Based on the second preset smart contract, the graph display information of the second industry chain map is generated, and the second industry chain map and the graph display information of the second industry chain map are displayed. The graph display information of the second industry chain map includes the second map identifier and the current owner information of the second map identifier.
8. The method according to claim 7, characterized in that, Also includes: Determine whether the current owner information in the second atlas document is consistent with the current owner information in the first atlas document; In response to the fact that the current owner information in the second graph document is consistent with the current owner information in the first graph document, the operation of registering the second graph document into the first preset smart contract is performed.
9. A blockchain-based supply chain graph trading device, characterized in that, include: The first identifier generation module is used to generate a first map identifier and a first map document in response to detecting a first user's publishing operation on the first industry chain map. The first map document includes the first map identifier, current owner information and verification information of the first industry chain map. The current owner information includes the first user identifier of the first user. The first registration module is used to register the first graph document to a first preset smart contract so as to store the first graph document in the blockchain. The first preset smart contract is set in the blockchain. The first document update module is used to update the current owner information in the first graph document to the second user's second user identifier and update the first user identifier to the historical owner information in response to determining that the second user has successfully transacted with the first industry chain graph, thereby obtaining the updated first graph document. The second registration module is used to register the updated first graph document into the first preset smart contract to store the updated first graph document.
10. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing a computer program stored in the memory, wherein when the computer program is executed, it implements the method described in any one of claims 1-8.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1-8.
Citation Information
Patent Citations
Query system for management and tracing of knowledge graph based on block chain technology
CN109783653A
Block chain cross-chain information interaction verification method and system based on knowledge graph
CN115659403A
Identity and electronic signature verification in blockchain
US10425230B1