A cross-chain interoperability platform based on blockchain
Through the modular design and standardized interface blockchain cross-chain platform, the problem of poor scalability and compatibility of cross-chain platforms in the existing technology is solved, and efficient and flexible cross-chain business processing is achieved.
Patent Information
- Application Number
- CN202311268786.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2043-09-28
AI Technical Summary
The existing blockchain cross-chain platform design is integrated, resulting in poor scalability and compatibility, and it cannot be combined on demand.
Adopting a modular design, the data layer, platform layer and application layer are loosely coupled to communicate through standardized interfaces, and each module is independently reused and flexibly combined to realize the full life cycle processing of cross-chain transactions.
The scalability and compatibility of the cross-chain platform have been improved. Users can add or remove modules as needed, make rational use of resources, and achieve flexible combination and efficient operation of cross-chain services.
Smart Images

Figure CN117252701B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain, and in particular to a cross-chain intercommunication platform based on blockchain. Background Art
[0002] With the development of blockchain technology, the single-chain architecture can no longer meet the needs of supply chain finance business, and it is urgent to achieve interconnection between blockchain networks. However, the existing blockchain technology has significant defects in cross-chain.
[0003] The cross-chain platforms of existing technologies often adopt an integrated design, with each component tightly coupled and unable to be combined as needed, which leads to the problems of poor scalability and compatibility of existing technologies. Summary of the invention
[0004] The purpose of this invention is to provide a cross-chain intercommunication platform based on blockchain to solve the problems of poor scalability and compatibility of the cross-chain platform with integrated design.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] A cross-chain interoperability platform based on blockchain, including: data layer, platform layer and application layer;
[0007] The data layer includes a heterogeneous chain cross-chain data aggregation module and a data consistency verification module;
[0008] The platform layer includes a registration module, a routing module, a smart contract module, an access control module and a cross-chain transaction processing module; the registration module is connected to the cross-chain transaction processing module through the routing module; the cross-chain transaction processing module communicates loosely with the heterogeneous chain cross-chain data aggregation module and the data consistency verification module through a standardized interface; the cross-chain transaction processing module also communicates loosely with the unified cross-chain API interface module in the application layer through a standardized interface;
[0009] The application layer includes a unified cross-chain API interface module, a cross-chain financing module, a digital asset module, a cross-chain evidence storage module, and a cross-chain payment module;
[0010] Each module in the same layer communicates loosely through standardized interfaces, and the decoupled modules in the blockchain-based cross-chain interoperability platform can be reused and flexibly combined.
[0011] Optionally, the heterogeneous chain cross-chain data aggregation module is used to collect cross-chain data from different blockchain networks and format the cross-chain data;
[0012] The data consistency verification module is used to verify the cross-chain data.
[0013] Optionally, the platform layer also includes: a message forwarding module, an asset transfer module, a cross-chain collaboration module, a cross-chain monitoring module, a privacy protection module and a security audit module connected to the cross-chain transaction processing module through a standardized interface.
[0014] Optionally, the cross-chain transaction processing module is used to process the entire life cycle of the cross-chain transaction based on the data information sent by each module; the entire life cycle includes submitting cross-chain transactions, parsing cross-chain transactions, verifying cross-chain transactions, executing cross-chain transactions, and writing back execution results.
[0015] Optionally, the routing module is used to collect topological information of each chain, obtain node location and network connectivity information; analyze business traffic and communication requirements between different chains, and evaluate the priority of inter-chain interconnection; calculate the best interconnection path for each pair of chains based on inter-chain transaction throughput requirement indicators and network delay indicators; build a routing table to store the best routing paths between different chains, and dynamically update it according to real-time status.
[0016] Optionally, the smart contract module is used to develop, deploy and execute cross-chain smart contracts suitable for supply chain scenarios.
[0017] Optionally, the cross-chain collaboration module is used to call and orchestrate business processes and coordinate business interactions among multi-chain nodes.
[0018] Optionally, the cross-chain monitoring module is used to monitor cross-chain financial activities in real time; the cross-chain financial activities include the cross-chain transfer of digital assets and tracking the execution effect of cross-chain transactions.
[0019] Optionally, the application layer further includes: a supply chain module;
[0020] The supply chain module is used to achieve collaboration among various supply chain entities through cross-chain technology.
[0021] Optional, cross-chain payment module, used to realize payment and settlement of value between different supply chains through cross-chain technology.
[0022] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: the present invention adopts a modular design, each functional module is relatively independent, and the modules are connected through standardized interfaces. Users can add or remove modules as needed to make rational use of resources; in addition, the modular design can install and customize specific functions as needed, and different modules communicate through standardized interfaces. The standardized interfaces achieve loose coupling between modules, and the decoupled modules can be reused and flexibly combined, thereby improving scalability and compatibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0024] Figure 1 is the scene graph;
[0025] Figure 2 This is the architecture diagram of the cross-chain interoperability platform based on blockchain;
[0026] Figure 3 It is a module interaction diagram between various modules of the cross-chain intercommunication platform based on blockchain;
[0027] Figure 4 It is the module interaction diagram between modules in the platform layer;
[0028] Figure 5 It is the module interaction diagram between modules in the application layer;
[0029] Figure 6 A schematic diagram of the supply chain. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] The purpose of the present invention is to provide a cross-chain intercommunication platform based on blockchain, which can improve scalability and compatibility.
[0032] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0033] Collaborative Figure 1 The scene diagram shown in FIG. 1 illustrates the present invention. Figure 1 As shown, there are five types of roles: blockchain, chain users, data providers, service consumers, service operators and regulators. The specific functions of each role are as follows.
[0034] Blockchain: Chain nodes refer to nodes participating in a specific blockchain network. Chain nodes are used to run blockchain client software, perform tasks such as transaction verification and ledger storage, and maintain the blockchain network.
[0035] Data provider: Data provider refers to the role that provides the original on-chain data to the cross-chain platform. The data provider provides the on-chain data required for specific business scenarios to the cross-chain platform.
[0036] Service consumers: Cross-chain service consumers are users who use the services provided by the cross-chain platform. For example, enterprises and banks targeting supply chain finance scenarios can all be consumers of cross-chain services.
[0037] Service operator: The cross-chain service operator is responsible for the construction, operation and management of the cross-chain platform. Its main tasks include link entry management, service management, authority control, accounting and settlement, and problem troubleshooting.
[0038] Regulators: Regulators are responsible for supervising and managing cross-chain activities. In cross-chain scenarios, it is necessary to design interfaces for regulators to provide regulatory support.
[0039] like Figure 2-Figure 3 As shown, the present invention provides a cross-chain intercommunication platform based on blockchain, including: a data layer, a platform layer and an application layer; the data layer includes a heterogeneous chain cross-chain data aggregation module and a data consistency verification module; the platform layer includes a registration module, a routing module, a smart contract module, an access control module and a cross-chain transaction processing module; the registration module is connected to the cross-chain transaction processing module through the routing module; the cross-chain transaction processing module communicates loosely with the heterogeneous chain cross-chain data aggregation module and the data consistency verification module through a standardized interface; the cross-chain transaction processing module also communicates loosely with the unified cross-chain API interface module in the application layer through a standardized interface; the application layer includes a unified cross-chain API interface module, a cross-chain financing module, a digital asset module, a cross-chain evidence storage module and a cross-chain payment module; each module in the same layer communicates loosely coupled through a standardized interface, and the decoupled modules in the cross-chain intercommunication platform based on blockchain can be reused and flexibly combined.
[0040] In practical applications, the data layer includes a heterogeneous chain cross-chain data aggregation module and a cross-chain data consistency verification module.
[0041] The heterogeneous chain cross-chain data aggregation module is used to collect relevant data from different blockchain networks and format the data. The source data format on the heterogeneous chain will vary from chain to chain. For example: the source data on the alliance chain A is in a custom binary format, the source data on the public chain B is in JSON format, and the data on the alliance chain C is in XML format; the module will perform necessary conversions based on the source data format, converting the chain A data from binary to JSON, keeping the JSON format of chain B unchanged, and converting the chain C data from XML to JSON; finally, the data of each chain will be encapsulated in a unified JSON format and necessary meta information will be added:
[0042] {
[0043] "chainId":"A",
[0044] "dataType":"trade",
[0045] "dataHash":"xxx",
[0046] "data":{
[0047] "trader":"Tom",
[0048] "amount":100,
[0049] ... / / Business data
[0050] }
[0051] }
[0052] Among them, chainId indicates the data source chain, dataType indicates the data type, dataHash is the data hash, and the data field contains the formatted business json data. Then submit it to the user registration, cross-chain transaction processing, smart contract and security audit modules of the cross-chain platform layer. Then submit it to the user registration, cross-chain transaction processing, smart contract and security audit modules of the cross-chain platform layer. Among them, the user registration module needs to collect the identity, account and other information of users on different chains to realize cross-chain identity mapping. The data aggregation module can submit such registration information to the user registration module; the data aggregation module can submit the original data of cross-chain transactions to the cross-chain transaction processing module to provide the source data source for transaction parsing and verification; if it is business data that needs to trigger a cross-chain smart contract, such as the buyer confirming receipt and triggering the seller's payment contract, it can be submitted to the smart contract module as input to trigger the contract execution; similarly, the data aggregation module can submit data summary, source identification and other information to the security audit module for the security audit of cross-chain data.
[0053] The cross-chain data consistency verification module relies on the cross-chain data provided by the data aggregation module as input. For the same transaction data obtained from different chains, the module will compare and verify each item one by one to ensure that key data fields are consistent, such as the transaction initiator, the recipient's account address or the transaction content: transfer amount, currency and contract method, etc. If there is inconsistency in the data, the module can detect which fields the difference lies in and identify the data source; then trigger an alarm to prompt manual processing to solve the problem of data inconsistency, and the alarm method is email or SMS reminder.
[0054] In actual applications, the platform layer mainly includes user registration module, routing module, cross-chain transaction processing module, message forwarding module, asset transfer module, smart contract module, access control module, cross-chain collaboration module, monitoring module, privacy protection module and security audit module. The relationship between modules is as follows: Figure 4 shown.
[0055] The user registration module is responsible for handling the registration, login, and management of users in the blockchain network. It mainly includes: user registration, providing an interface for new users to enter registration information, such as user name, password, role, etc., and complete user registration; user management, including user query, modification of user information, user logout and other functions; permission management, different user roles have different blockchain permissions, which require permission setting and management; multi-chain identity mapping, realizing unique identity mapping of users across chains; user asset management, viewing user digital asset information.
[0056] The routing module collects the topological information of each chain, obtains the node location and network connectivity information; analyzes the business traffic and communication requirements between different chains, and evaluates the priority of inter-chain interconnection; calculates the best interconnection path for each pair of chains based on inter-chain transaction throughput requirements, network latency and other indicators; builds a routing table to store the best routing paths between different chains, and can be dynamically updated according to real-time status.
[0057] The cross-chain transaction processing module is responsible for handling the entire life cycle of cross-chain transactions; specifically, it includes:
[0058] 1) Submit cross-chain transactions. This module provides an interface for submitting cross-chain transactions. The interface will check whether the transaction format, parameters, etc. are legal and then accept the transaction. JSON schema is used to define the data format of the transaction. When receiving the transaction, the schema validator is used to check whether the data format meets the requirements. Regular expressions can also be set for key parameters in the transaction, such as account address, asset identifier, etc. When receiving the transaction, regular expressions are used to verify whether the parameter format is correct. If the check fails, a detailed error code can be returned to inform the user of the specific reason.
[0059] 2) Parse cross-chain transactions. The module needs to implement the parsing function of cross-chain transactions, including signature verification.
[0060] Specifically: extract the signature from the transaction data. The original data of the cross-chain transaction comes from the blockchain network, and the block data after the transaction is broadcast by the node; the cross-chain transaction processing module will obtain the latest block and transaction from the connected blockchain node; the module will parse the transaction data in the new block when receiving it; the block data uses a serialized format, such as Json; the module needs to deserialize it; get the deserialized Json object string; in the transaction object, there will be a special field to store the signature in the format of a byte array; the module uses the function GetObjectField(transaction, "signature") to obtain the signature field in the object, which implements the extraction of the specified byte array field from the Json object according to the field name.
[0061] Use GetObjectField(transaction, "key") to extract the public key of the transaction initiator, and rely on the public key to verify the signature. Use the public key and transaction information as input to generate a signature. Compare the generated signature with the signature extracted from the transaction to verify the binding relationship between the public key and the account; query the blockchain account book to check whether the extracted public key is bound to the initiator's account. If all the above verifications are passed, it means that the transaction is truly initiated by the account holding the corresponding private key. Otherwise, the transaction verification fails and will not be confirmed to be written into the blockchain. The transaction processing module will discard this transaction and will not continue to process subsequent actions. The module will record this failure event in the log or alarm system to track verification errors. Failed transactions will be counted in statistics, such as transaction failure rate and other indicators; if it is a malicious transaction, the module can record the initiating address in the blacklist to monitor the criminal address.
[0062] Parse the target chain by looking up the target chain identification field in the transaction PAYLOAD. The cross-chain transaction PAYLOAD will carry the unique identifier of the target chain, such as the target chain ID; query the mapping table according to the target chain ID to obtain the target chain information. The system will maintain a mapping table of the cross-chain network topology, recording the IDs and key information of different chains, such as network addresses, consensus mechanisms, interface protocols, etc.; query the mapping table to obtain the network, nodes, interfaces and other information of the target chain, and verify whether the target chain is connected to the source chain through a channel. Cross-chain must have an established channel between the source chain and the target chain.
[0063] 3) Verify cross-chain transactions. After parsing, it is necessary to further call the on-chain rules to verify the cross-chain transactions to ensure their validity. The specific time is: query the account information of the transaction initiator on the source chain to verify whether its account status is legal; call the corresponding chain API according to the source chain ID, and verify whether the transaction format, elements, etc. are correct according to the on-chain rules; query the transaction input on the source chain to verify whether the initiator's account balance is sufficient for payment; verify the legality of the transaction according to the transaction type rules of the source chain and the target chain; if the transaction involves cross-chain asset transfer, verify whether the asset flow during the transfer process is consistent.
[0064] 4) Execute cross-chain transactions. The module will drive the execution of cross-chain transactions on the target chain and receive the execution results.
[0065] 5) Write back the execution results, and write back the execution results of the cross-chain transaction on the target chain to the source chain.
[0066] The message forwarding module plays the role of message transfer in the cross-chain platform architecture, and is responsible for reliably delivering messages from the source blockchain network to the target network module. First, subscribe to the events of the source blockchain network and monitor whether cross-chain messages are generated on the chain; when a cross-chain message is detected, the module will obtain the message content and parse the target chain identifier. According to the message target chain identifier, query the cross-chain routing table to obtain the forwarding path, and the module will forward the message hop by hop along the path; when the message successfully reaches the target chain entry node, it is necessary to query the recipient address on the target chain. Finally, the module delivers the message to the recipient through the target chain interface.
[0067] The asset transfer module is responsible for the transfer of digital assets between different blockchain networks, and mainly includes the following functions:
[0068] 1) Asset locking: The module receives a transaction request to initiate a cross-chain asset transfer, calls the source chain’s locking contract interface, and locks the specified asset on the source chain. The source chain contract transfers the asset from the user account to the locking contract address, and the source chain generates a locking certificate to prove that the asset has been locked.
[0069] 2) Cross-chain transmission: The module establishes a point-to-point payment channel between the source chain and the target chain. The source chain transmits the lock certificate to the target chain through the payment channel. During the transmission process, the Cosmos IBC cross-chain communication protocol is used for message encapsulation and routing. The IBC protocol provides multi-chain addresses, transaction codes, client management and other mechanisms to identify different blockchain networks, and realize message encapsulation, transmission, reception and confirmation. After receiving the cross-chain message, the target chain verifies it and checks whether the format of the message is correct, such as whether the signature, hash, etc. comply with the data format specification of the IBC protocol, and determines the legitimacy of the asset transfer request. After completing the cross-chain asset transmission, the clients of the source chain and the target chain will update the status.
[0070] 3) Asset release. The target chain’s asset release contract receives an asset release request from the cross-chain module. The release request contains the cross-chain proof sent by the source chain and the user’s target chain receiving address. The release contract then queries the target chain’s asset mapping information to determine the local assets that are equivalent to the source chain. A transfer transaction is constructed to transfer the local assets from the release contract address to the user’s receiving address and submit the transfer transaction to the target chain’s transaction pool for packaging. The target chain nodes reach a consensus on the release transaction and write a new block to complete the asset release. The target chain’s transfer result is passed back to the source chain, notifying that the asset has been successfully released. The source chain’s lock contract receives the release confirmation message and destroys the original asset lock. At this point, the asset transfer and release process on the source and target chains is completed.
[0071] 4) Exception handling: If the status between the source chain and the target chain is not synchronized during the cross-chain asset transfer, for example, the source chain shows that the asset has been transferred out, but the target chain has not received the asset, the transfer is considered to have failed. The asset transfer module will call the refund contract on the source chain to return the assets before the transfer to the original user account and cancel the transfer. If the assets on the target chain have been released by mistake, such as repeated release of the same asset, a rollback is required. The target chain generates a rollback transaction to return the excess assets to the release contract account. The asset transfer records of the source chain and the target chain need to be fully preserved for reconciliation and auditing in case of anomalies. Abnormal transfer transactions should be marked to prompt users to the reason for the transfer failure. Cross-chain replay attacks should be prevented, and multiple dimensions such as transaction time, random numbers, and status changes should be prevented from being reused. Alarms should be sent for abnormal events to trigger manual intervention to handle abnormal situations such as asynchrony between chains.
[0072] The smart contract module is used to develop, deploy and execute cross-chain smart contracts suitable for supply chain scenarios, with the following functions:
[0073] 1) Standardized supply chain contract templates, quickly implement typical supply chain business processes, and provide standard supply chain business process templates, including purchase orders, logistics transportation, warehouse management, credit payment and other core links. These templated contracts can be directly used in the supply chain systems of various companies to quickly realize blockchain.
[0074] 2) The contract supports cross-chain calls. One contract can trigger a contract on another chain. By defining the contract interface standard, the loose coupling connection between contracts on different enterprise chains is realized, and the contracts can trigger calls to each other. Each contract exposes a standard external call interface, which is defined in the form of interface name + parameter; the caller needs to know the address of the target contract, which can be queried through the registry; the caller constructs a transaction to call the contract, specifying the target address, interface and parameters; the platform's transaction processing module parses the transaction and finds that it is a cross-chain contract call; according to the target contract address, it is routed to the corresponding chain; on the target chain, the interface of the target contract is triggered by calling the local interface; after the contract is executed, the result is returned to the caller; the new transaction or data generated by the call contract is then transmitted back to the caller chain through the cross-chain mechanism; finally, the caller receives the callback result and completes a cross-chain contract call. Realize an end-to-end supply chain collaboration process.
[0075] 3) Support putting logistics information on the chain to form traceable supply chain data. By using the blockchain's evidence storage function, the contract can automatically put the logistics location, environment and management events on the chain to form a traceable supply chain data record. This enhances the transparency and credibility of the supply chain, realizes automatic triggering of payments according to contracts, and automates the flow of funds in the supply chain. The contract can be connected to the company's existing systems such as logistics, warehousing, and orders. When a payment instruction is received, it automatically initiates payment to the cooperative bank to complete the flow of funds and reduce the cost of manual settlement.
[0076] The access control module is responsible for identity authentication and permission control.
[0077] 1) Identity authentication establishes a role-based digital identity for each department in the enterprise, generates public and private keys, and issues certificates. The public and private key generation can use the national secret SM2 algorithm to generate a key pair, and then generate a digital certificate that complies with the X.509 standard through the digital certificate management system. The user's identity information, public key, etc. are bound to the certificate, and the certificate authority applies a digital signature to complete the issuance of the certificate; two-factor authentication can be performed in the form of password + verification code. The user first enters the account password, and the password is transmitted to the server via ciphertext. After the server verifies, a random verification code is sent to the user's bound mobile phone, and the user enters the verification code to complete the authentication. Asymmetric cryptographic methods such as third-party biometrics can also be used. The two-factor mechanism improves login security and prevents direct login to the system after stealing the password. At the same time, it is also necessary to strengthen the management of mobile phone number binding to prevent binding from being tampered with.
[0078] 2) Permission control can use (n, m) threshold signature technology to implement multi-party access control, which requires that transactions need to collect signatures of at least m different private keys from the specified n keys. The specific process is: the platform registers multiple management roles for the enterprise, and each role is configured with an independent private key; in important transaction smart contracts, add multi-signature verification logic, such as 2 / 3 signatures; when one party initiates a transaction, the platform first requests other signing roles to sign the transaction; after collecting enough signatures, the cross-chain transaction processing module will assemble the transaction and submit it to the blockchain; when the transaction signed by multiple parties is submitted to the blockchain, the smart contract will verify that the number of signatures meets the policy; if the number of signatures is insufficient, the transaction verification fails; if the verification passes, the transaction is executed to complete the security control of multiple signatures.
[0079] The cross-chain collaboration module implements cross-chain calls and orchestration of business processes and coordinates business interactions among multi-chain nodes. Developers can use a graphical editor to define a complex cross-chain business process involving calls to multiple on-chain contracts. The process orchestration intelligent engine analyzes the process, optimizes the execution order of each sub-process, and calculates the critical path for cross-chain execution. The engine coordinates the calls, parameter transfer, and execution of contracts on each chain node, ultimately completing an end-to-end cross-chain process.
[0080] The cross-chain monitoring module can effectively reduce the operational risks of supply chain finance by monitoring cross-chain financial activities in real time, including:
[0081] 1) Monitor the cross-chain transfer of digital assets to prevent transfer failure or asset loss. The monitoring module embeds a monitoring interface in the asset transfer module to obtain real-time transfer status data; from the transfer status data, the monitoring module can monitor whether the asset is currently undergoing cross-chain transfer. If the predetermined transfer timeout is exceeded, it is judged as an abnormal transfer; the monitoring module can also count indicators such as the time, number of transfers, and number of failures of asset transfers; by analyzing these indicators, the smoothness of asset transfers can be evaluated. If it is detected that the asset transfer has not been completed for a long time, an early warning will be triggered; monitoring personnel can query the detailed log of asset transfers and conduct troubleshooting; the monitoring module ultimately generates monitoring reports such as the normal rate and timeliness rate of asset transfers.
[0082] 2) Monitor the status and progress of asset transfers to prevent risks caused by long-term funds in transit. The unique ID of each asset transfer will be maintained during asset transfers; at each stage of the transfer, the asset transfer module will report a status change event, including the transfer ID and the new status; after receiving the status change event, the monitoring module will update the status corresponding to the internal transfer ID; the main status of asset transfers include: initiating transfer, source chain locking, cross-chain, target chain release, transfer failure, transfer success, etc.; according to the time sequence of status changes, the monitoring module can calculate the time period of each status; through the mapping of status and time, the current transfer stage of the asset can be counted in real time; if the transfer progress exceeds expectations, an abnormal alarm will be triggered and manual intervention will be required; the monitoring module can also count the total duration of different transfer stages to find the bottleneck of the system; finally, a transfer progress monitoring report is generated to evaluate the timeliness and efficiency of asset transfers.
[0083] 3) Track the execution effect of cross-chain transactions. If the execution fails, compensation can be made in time. Retry or compensation processing can be selected according to business needs, such as re-initiating transactions, revoking transactions, returning assets, etc. According to the cause of failure, the monitoring module will send compensation instructions to the corresponding business module; if the failure is caused by cross-chain transmission anomalies, the cross-chain transaction can be re-initiated; if the target chain execution fails, the state change on the target chain needs to be rolled back; in the case where the source chain assets cannot be reached after being transferred out, the assets need to be returned through the fault contract of the source chain; the business module performs specific compensation operations according to the compensation instructions of the monitoring module; after the compensation is completed, the business module will feedback the results to the monitoring module; the monitoring module updates the transaction status to compensated and records the log of the compensation operation; finally, a compensation report is generated to analyze the compensation efficiency of the system.
[0084] The privacy protection module supports anonymization processing to protect sensitive data. It uses hashing, obfuscation and other technologies to de-identify data, such as user identity ID, transaction account and other sensitive information. It performs irreversible anonymous conversion on key fields during data aggregation and sharing. Different systems use different anonymous mappings for the same user ID to avoid associated identification.
[0085] Encrypted storage of shared data, control of access rights, use of the national secret SM2 algorithm to encrypt sensitive data, SM2 algorithm uses elliptic curve encryption, can generate public and private key pairs. Data is encrypted using a private key and decrypted using a public key. The SM2 private key used for encryption and decryption is securely stored in the database, and the use of the private key is strictly controlled by permissions.
[0086] When a user accesses data, the module uses the SM2 public key to decrypt, and then checks whether the user identity and attributes meet the policy. The access policy is uniformly defined by the access control module, and the privacy protection module controls data decryption according to the policy.
[0087] The security audit module is responsible for the audit rule base. According to regulatory requirements, it subscribes to different categories of security events for auditing, such as abnormal logins, frequent cross-chain transactions, capital outflow and other risk events. According to industry security standards, it predefines detailed rules for determining various types of events, such as how many cross-chain transactions in a single day are considered frequent cross-chain transactions. It regularly evaluates the effectiveness of existing rules and adds audit rules for emerging risks. It supports third-party security vendors and regulators to customize and extend audit rules.
[0088] Important log records, identify operations that trigger audit rules, and record all logs of execution status, such as interface parameters, return results, timestamps, etc.; for evidence-type data, such as transaction documents, contracts, etc., the full text or file hash needs to be stored for review; all logs are saved using blockchain and other technologies to ensure that they cannot be tampered with and are traceable; define the maximum retention period for each type of log as required, and automatically clear expired logs.
[0089] Risk rating: analyze the behavioral characteristics of the participants and calculate the risk score in real time based on the rule engine; adaptively adjust the abnormal trigger threshold to balance the risk coverage and false alarm rate; support multi-dimensional calculation to evaluate financial risk, operational risk, compliance risk, etc.; the rating results automatically trigger approval, early warning and other management processes.
[0090] Integrity audit, obtain the execution details of the source chain and target chain of cross-chain transactions, compare the consistency of state changes and data, etc.; use the associated fields, timestamps and other information in the source data to perform association analysis; replay checks on abnormal transactions to prevent double-spending attacks; summarize audit results and generate integrity audit reports regularly;
[0091] In actual applications, the application layer includes a unified cross-chain API module, a digital asset module, a supply chain module, and a cross-chain payment module. The interactions between the modules are as follows: Figure 5 shown.
[0092] The unified cross-chain API module provides a unified and concise cross-chain service interface for blockchain applications. Developers can use simple and unified interfaces to call cross-chain functions, such as cross-chain transfers and cross-chain data access. The module has a service registration and discovery mechanism, so users can easily find the cross-chain services they need. The module provides developer-friendly access methods such as interface documentation and SDK. Through this abstract encapsulation, developers only need to use simple and consistent interfaces to complete cross-chain services without having to pay attention to the underlying complex blockchain types and implementation differences, which greatly reduces the difficulty of development and learning costs.
[0093] The digital asset module mainly provides the following functions: define asset metadata specifications using Protobuf to define the asset specification architecture, which is language neutral and suitable for cross-chain calls. The specifications include basic attributes, required fields for rights description, and optional extended descriptions; rights descriptions are refined into ownership, usufruct, etc., and are specific to tradability, trustee rules, etc.; converted into client language objects through code generation and integrated into applications.
[0094] Build an asset database using a distributed NewSQL database that supports large-scale transaction throughput. The asset record table is associated with the account table, and asset ownership information can be queried. The database middleware provides transaction management to ensure data consistency across nodes, cache hot asset data, and optimize read access performance.
[0095] Realize cross-chain asset mapping and generate UUID as the unique identifier of the asset. The cross-chain registration module maintains the cross-chain mapping table of the asset UUID. The smart contract can call the registration mapping table interface to parse the asset identifier. The asset module also caches hot asset mappings to reduce call latency.
[0096] It supports custom attribute extensions. The database uses a distributed NewSQL database, which can flexibly extend fields and provide predefined common extensions, such as market value, risk rating, etc. Businesses can develop customized extension fields based on extension interfaces, and custom extensions can also be registered in metadata specifications.
[0097] The supply chain module uses cross-chain technology to achieve collaboration among various supply chain entities, realize a unified digital identity for suppliers, manufacturers, logistics and other participants, and can be identified across chains; it supports the signing of smart contracts by multiple parties, which can be triggered across chains, such as logistics receipt triggering payment settlement; combined with the IoT system, it automatically collects sensor data on the chain, such as temperature, GPS location, etc.; it provides standard templates to quickly customize cross-chain collaboration processes suitable for supply chain scenarios.
[0098] Specifically, it realizes the unified digital identity of the participants. In the cross-chain identity registration module, a blockchain digital identity is generated for each participant, and its public key and other information is recorded; the identity registration module generates a mapping record of the ID on each chain; after the access control module on each chain is connected to the identity, a unified access audit can be performed.
[0099] It supports multi-party signing of smart contracts, and can customize contract templates suitable for supply chain scenarios; the multi-party signature conditions are defined in the template, and different participants need to add their own signatures; multi-party signatures are checked during on-chain verification, and asset transfers require approval from all relevant parties.
[0100] Automatically collect IoT data and upload it to the chain, connect to sensor devices through the IoT gateway to receive data; format the data, package it and upload it to the chain, and store the hash pointing to the IoT data warehouse; smart contracts can be automatically triggered according to preset rules, such as detecting excessive temperature.
[0101] Provide standard cross-chain process templates, and design configurable process templates based on general supply chain business processes; the templates can plug and unplug contract components on the chain to complete the business; pre-set sub-process templates such as logistics tracking, order execution, payment settlement, etc.; configure business processes according to parameters and quickly apply them to different enterprises.
[0102] The payment module uses cross-chain technology to realize the payment and settlement of values between different chains. Specific functions include: supporting cross-chain asset mapping and realizing the association of assets on different chains; users can initiate cross-chain transfers or payment requests, and the payment module is responsible for processing the request.
[0103] The atomicity of cross-chain transactions is ensured through a distributed order mechanism, specifically: the customer initiates a cross-chain purchase order in the business module of the application layer; the order information is submitted to the transaction processing module of the platform layer; the transaction processing module stores the order data in the distributed database of the platform layer; the monitoring module of the platform layer monitors the status of new orders in real time; when the order is accepted and processed, the monitoring module pushes the status update to the application layer; the business module of the application layer receives the order status update and presents it to the customer immediately; at the same time, the business module will also query the blockchain node of the platform layer to obtain the accounting proof of the order on the blockchain; the blockchain proof is also presented to the customer at the application layer; if there is a problem with the order, the application layer can quickly respond to customer inquiries through the monitoring module; the order is finally confirmed and the relevant assets are transferred by the asset transfer module of the platform layer; the platform layer notifies the application layer of the result, and the application layer completes the record update of the customer order.
[0104] Cross-chain payment relies on the cross-chain asset transfer module to realize cross-chain asset transfer. On the target chain, the release payment of assets is completed according to the lock proof. After the payment, the user is notified that the transaction has been confirmed and the corresponding business system update is completed; a payment query interface is provided so that users can view the cross-chain payment status.
[0105] like Figure 6The example of a specific supply chain is shown in the figure. The buyer initiates a purchase order in the supply chain module and submits it to the transaction processing module. The transaction processing module calls the smart contract module to generate a purchase contract based on the purchase order. The smart contract is deployed on the blockchain network where the buyer is located. The buyer confirms the generated purchase contract. The supply chain module notifies the supplier that a new purchase order has been generated. The supplier ships the goods according to the purchase order and notifies the supply chain module. The supply chain module receives the shipping notification, triggering the payment terms of the purchase contract. The purchase contract calls the asset transfer module and transfers payment from the buyer's bank to the supplier's bank. In the entire execution process, the data module provides product information, the data aggregation module summarizes the order data, and the platform's monitoring module continuously monitors the execution process to ensure the normal operation of the overall business.
[0106] The overall design, through layered abstraction and modular pluggable architecture, can effectively solve the problems existing in existing cross-chain technologies and provide reliable, efficient and secure cross-chain services to meet the needs of scenarios such as supply chain finance.
[0107] The present invention realizes the configurability and callability of cross-chain services through modularization and standardized interfaces, supports data sharing between heterogeneous blockchain networks, and provides smart contracts and business process templates for supply chain finance scenarios to achieve rapid business construction.
[0108] In summary, the present invention can achieve the following effects:
[0109] High cross-chain efficiency: The cross-chain transaction processing module in this solution implements a complete transaction verification mechanism to improve the speed of transaction processing; the routing module can optimize the interconnection and communication between different chains, improve the efficiency and reliability of cross-chain collaboration; the cross-chain collaboration module realizes cross-chain calls and orchestration of business processes, coordinates the business interactions of multi-chain nodes, and reduces the complexity of integration. The above modules effectively connect heterogeneous blockchain networks in terms of cross-chain efficiency, realize business collaboration between different chains, and reduce the difficulty and cost of interoperability.
[0110] High asset liquidity: The digital asset module realizes the abstract description and mapping of cross-chain assets; the asset transfer module realizes the functions of anchoring, transmission, and release during cross-chain asset transfer, which enables the circulation of homogeneous assets on different chains and greatly improves the liquidity of assets.
[0111] High development efficiency: The unified cross-chain interface module provides developers with an easy-to-use interface, and the smart contract module provides reusable contract code and templates, which together simplify the development process. There is no need to pay attention to the underlying differences under the chain, which greatly improves development efficiency.
[0112] Low security risk: The access control module implements refined permission control; the cross-chain monitoring module can effectively reduce the operational risks of supply chain finance by real-time monitoring of cross-chain financial activities; the security audit module records and audits important cross-chain operations, effectively reducing the security risks of cross-chain operations.
[0113] Strong regulatory controllability: The monitoring module and security audit module provide regulators with necessary interfaces and data display functions, improving the regulatory controllability of cross-chain activities.
[0114] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0115] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A cross-chain intercommunication platform based on blockchain, characterized in that: include: Data layer, platform layer and application layer; The data layer includes a heterogeneous chain cross-chain data aggregation module and a data consistency verification module; The heterogeneous chain cross-chain data aggregation module is used to collect cross-chain data from different blockchain networks and format the cross-chain data; the data consistency verification module is used to verify the cross-chain data; the data consistency verification module relies on the cross-chain data provided by the data aggregation module as input, and the same transaction data obtained from different chains, the module will compare and verify item by item to ensure that the key data fields are consistent; The platform layer includes a registration module, a routing module, a smart contract module, an access control module and a cross-chain transaction processing module; the registration module is connected to the cross-chain transaction processing module through the routing module; the cross-chain transaction processing module communicates loosely with the heterogeneous chain cross-chain data aggregation module and the data consistency verification module through a standardized interface; the cross-chain transaction processing module also communicates loosely with the unified cross-chain API interface module in the application layer through a standardized interface; The application layer includes a unified cross-chain API interface module, a cross-chain financing module, a digital asset module, a cross-chain evidence storage module, and a cross-chain payment module; Each module in the same layer communicates loosely through standardized interfaces, and the decoupled modules in the cross-chain intercommunication platform based on blockchain can be reused and flexibly combined; Adopting modular design, each functional module is relatively independent, and the modules are connected through standardized interfaces, so users can add or remove modules as needed; Modular design allows installation and customization of specific functions as needed.
2. The cross-chain intercommunication platform based on blockchain according to claim 1 is characterized in that: The platform layer also includes: a message forwarding module, an asset transfer module, a cross-chain collaboration module, a cross-chain monitoring module, a privacy protection module and a security audit module connected to the cross-chain transaction processing module through a standardized interface.
3. The cross-chain intercommunication platform based on blockchain according to claim 2 is characterized in that: The cross-chain transaction processing module is used to process the entire life cycle of cross-chain transactions based on the data information sent by each module; the entire life cycle includes submitting cross-chain transactions, parsing cross-chain transactions, verifying cross-chain transactions, executing cross-chain transactions, and writing back execution results.
4. The cross-chain intercommunication platform based on blockchain according to claim 2 is characterized in that: The routing module is used to collect the topological information of each chain, obtain the node location and network connectivity information; analyze the business traffic and communication requirements between different chains, and evaluate the priority of inter-chain interconnection; calculate the best interconnection path for each pair of chains based on the inter-chain transaction throughput requirement index and network delay index; build a routing table to store the best routing path between different chains, and dynamically update it according to the real-time status.
5. The cross-chain intercommunication platform based on blockchain according to claim 2 is characterized in that: The smart contract module is used to develop, deploy and execute cross-chain smart contracts suitable for supply chain scenarios.
6. The cross-chain intercommunication platform based on blockchain according to claim 1 is characterized in that: The cross-chain collaboration module is used to call and orchestrate business processes and coordinate business interactions among multi-chain nodes.
7. The cross-chain intercommunication platform based on blockchain according to claim 1, characterized in that: The cross-chain monitoring module is used to monitor cross-chain financial activities in real time; the cross-chain financial activities include the cross-chain transfer of digital assets and tracking the execution effect of cross-chain transactions.
8. The cross-chain intercommunication platform based on blockchain according to claim 1, characterized in that: The application layer also includes: a supply chain module; The supply chain module is used to achieve collaboration among various supply chain entities through cross-chain technology.
9. The cross-chain intercommunication platform based on blockchain according to claim 8 is characterized in that: The cross-chain payment module is used to realize the payment and settlement of value between different supply chains through cross-chain technology.
Citation Information
Patent Citations
Blockchain-based cross-chain interconnection method, device and system
CN110266655A
Service processing system based on blockchain
CN112235114A