A cross-chain interoperability system and method for invoices based on heterogeneous blockchains

By analyzing the block headers and block bodies of heterogeneous blockchains, extracting target records and verification elements, and calculating early warning values, the problem of unreliable information exchange between heterogeneous blockchains is solved, and the reliability and security of cross-chain interoperability of invoices are realized.

CN121526588BActive Publication Date: 2026-04-03上海市大数据中心
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-01-15
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

When information is exchanged across heterogeneous blockchains, the differences in the inter-chain architecture make the information exchange unreliable, and the reliability of cross-chain interoperability cannot be guaranteed.

Method used

By acquiring historical cross-chain records of electronic tickets, analyzing block headers and block body content, extracting target records, establishing a record set, extracting verification elements and influencing factors, and calculating early warning values ​​to determine whether to issue early warnings and optimize the cross-chain process.

Benefits of technology

It improves the reliability of cross-chain interoperability of invoices, and ensures the security and accuracy of information transmission through early warning prompts and process optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121526588B_ABST
    Figure CN121526588B_ABST
Patent Text Reader

Abstract

This invention discloses a cross-chain interoperability system and method for electronic bills based on heterogeneous blockchains, relating to the field of blockchain technology. The method includes: extracting the target record of the electronic bill, obtaining the current cross-chain information to be crossed, and obtaining the record set corresponding to the cross-chain information; extracting all elements in the cross-chain information, and obtaining the verification elements in the cross-chain information based on the changes in element values ​​before and after the cross-chain crossing of the target record; extracting all influencing factors in the cross-chain process of the bill, and obtaining the characteristic influence factors and characteristic functions corresponding to each verification element; calculating the warning value of the current cross-chain information to be crossed, and determining whether to issue a warning and optimize the cross-chain process based on the warning value. This invention, by extracting and analyzing the target record, calculating the warning value of the current cross-chain information to be crossed, and promptly issuing warnings and optimizing the cross-chain process based on the warning situation, helps ensure the reliability of the cross-chain interoperability process for electronic bills.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of blockchain technology, specifically to a cross-chain interoperability system and method for invoices based on heterogeneous blockchains. Background Technology

[0002] With the iterative development of communication networks, paper-based invoices are gradually evolving into electronic invoices. Electronic invoices are stored and circulated in computer systems in the form of data files, truly realizing paperless invoice management. Leveraging blockchain technology to support electronic invoice applications, the immutability and decentralization of blockchain significantly enhance the security of invoice storage and transmission, effectively resisting hacker attacks and data tampering. Simultaneously, this technology eliminates traditional intermediaries, reducing management costs and simplifying operational processes through a peer-to-peer transaction model, thus optimizing the efficiency of invoice lifecycle management. In practical applications, electronic invoices require collaborative information transmission and data alignment. However, when information is exchanged across different blockchains, the significant differences in inter-chain architecture lead to unreliable information exchange, compromising the reliability of cross-chain communication. Therefore, it is necessary to analyze cross-chain information, provide timely warnings for unreliable cross-chain processes, and optimize the cross-chain workflow. Summary of the Invention

[0003] The purpose of this invention is to provide a cross-chain interoperability system and method for invoices based on heterogeneous blockchains, so as to solve the problems raised in the prior art.

[0004] To solve the above-mentioned technical problems, the present invention provides the following technical solution:

[0005] A method for cross-chain interoperability of invoices based on heterogeneous blockchains includes the following steps:

[0006] The process involves obtaining historical cross-chain records of electronic invoices. These records document the entire process of transferring asset ownership, verifying data, and synchronizing state information from the source blockchain to the target blockchain. The source and target blockchains are heterogeneous blockchains with different consensus mechanisms and data structures. The process also involves analyzing the block headers and block bodies of the source and target blockchains to identify and extract the target record from the cross-chain records.

[0007] Extract the consensus nodes and non-consensus nodes of the source blockchain and target blockchain corresponding to the target record, obtain the current cross-chain information to be crossed, and obtain the record set corresponding to the cross-chain information based on the source blockchain and target blockchain corresponding to the cross-chain information.

[0008] Extract all elements from the information to be crossed by the chain. The elements include core verification information and key business parameters. Extract all target records from the record set. Based on the changes in the element values ​​of each element before and after the cross-chain crossing in the target record, obtain the verification elements in the information to be crossed by the chain.

[0009] During the cross-chain process of bills, all influencing factors that affect the element values ​​of verification elements are extracted. Based on the changes in the element values ​​of each verification element, the characteristic influencing factors and characteristic functions corresponding to each verification element are obtained. Based on the factor values ​​of the influencing factors corresponding to the information to be crossed, the warning value of the current information to be crossed is obtained. Based on the warning value, it is determined whether to issue a warning for the information to be crossed and to optimize the cross-chain process.

[0010] Preferably, the target record in the cross-chain record is identified and extracted, including:

[0011] Extract the ticket information T, source blockchain A, and target blockchain B corresponding to a certain cross-chain record R, where source blockchain A and target blockchain B are heterogeneous blockchains;

[0012] In this scheme, heterogeneous blockchains are two blockchains with different consensus mechanisms and data structures. The process of the source blockchain entering information and the target blockchain synchronizing information involves several stages. Here, the reliability of the stage information is determined by analyzing the information at each stage. If the stage information is reliable, the corresponding cross-chain record is used as the target record. In this scheme, the reliability of stage information is determined by analyzing time, block headers, and block bodies, as detailed below:

[0013] The source blockchain A includes several entry steps in the process of entering bill information T. These entry steps are ordered according to their execution order. The block header and block body corresponding to each entry step are extracted. The block header includes the hash value of the previous entry step, and the block body includes the entry time of the current entry step. The target blockchain B includes several synchronization steps in the process of synchronizing bill information T. These synchronization steps are ordered according to their execution order. The block header and block body corresponding to each synchronization step are extracted. The block header includes the hash value of the previous synchronization step, and the block body includes the synchronization time of the current synchronization step.

[0014] Obtain the next entry stage L2 after any entry stage L1, and the next synchronization stage L4 after any synchronization stage L3. If the hash value of entry stage L1 is the same as the hash value in the block header of entry stage L2, and the entry time of entry stage L1 is earlier than the entry time of entry stage L2, and the hash value of synchronization stage L3 is the same as the hash value in the block header of synchronization stage L4, and the synchronization time of synchronization stage L3 is earlier than the synchronization time of synchronization stage L4, then take the cross-chain record R as the target record.

[0015] Preferably, the set of records corresponding to the cross-chain information to be obtained includes:

[0016] The consensus mechanisms of source blockchain A and target blockchain B are different. The consensus includes several consensus nodes and non-consensus nodes. The consensus nodes include fiscal nodes deployed in the finance department. The fiscal nodes are used for consensus calculation and on-chaining of regulatory information. The non-consensus nodes are used to provide application services to invoicing units, reimbursement units and social services. The application services include on-chaining of invoices, invoice query and accounting feedback.

[0017] Obtain all consensuses corresponding to a target record Q. If the ticket status of a certain consensus is the same in the source blockchain A and the target blockchain B, then mark the consensus.

[0018] Extract all element information corresponding to the target record Q, including the core identifier of the bill, transaction entity information, and transaction content information;

[0019] Establish a record set for information to be crossed across chains. If each consensus in the target record Q is marked, and the transaction entity information corresponding to the information to be crossed across chains is exactly the same as the transaction entity information corresponding to the target record Q, input the target record Q into the record set. Based on several target records, obtain the final record set.

[0020] In this solution, the key elements are the ticket information during the cross-chain process, including core verification information and key business parameters;

[0021] Preferably, obtaining the verification element in the cross-chain information to be crossed includes: extracting a certain element W from the cross-chain information to be crossed and a certain target record P from the record set, wherein the cross-chain information in the target record P includes element W, obtaining the element value of element W in the source blockchain corresponding to the target record P, and the element value of element W in the target blockchain corresponding to the target record P, and if the two element values ​​are different, then element W is used as the verification element.

[0022] Preferably, the characteristic influence factors and characteristic functions corresponding to each verification element are obtained, including:

[0023] Obtain all influencing factors during the cross-chain process of the invoice. Extract a certain verification element V and a certain influencing factor Y. Extract M target records when the factor value of influencing factor Y is X1. Take the number of target records where the value of verification element V differs before and after the cross-chain process as M1, and calculate the anomaly ratio as M1 / M. Extract M target records when the factor value of influencing factor Y is X2. Take the number of target records where the value of verification element V differs before and after the cross-chain process as M2, and calculate the anomaly ratio as M2 / M. Continue this process to extract the factor value of influencing factor Y as X. H Given M target records, the number of times the value of the verification element V differs before and after the cross-chain operation is taken as M. H The abnormality ratio is calculated as M. H / M;

[0024] Based on the factor values ​​of several impact factors Y and the anomaly ratios of the corresponding validation elements V, the factor values ​​and anomaly ratios are fitted with a linear function, and the goodness of fit during the fitting process is used as the characteristic value between validation elements V and impact factors Y. The characteristic value between validation elements V and each impact factor is obtained, and the impact factor Y corresponding to the largest characteristic value is used as the core impact factor of validation elements V. The corresponding fitted linear function is used as the characteristic function of validation elements V, and thus the characteristic impact factor and characteristic function corresponding to each validation element are obtained.

[0025] Preferably, determining whether to issue warnings and optimize the cross-chain process for cross-chain information includes:

[0026] Based on the core impact factor of each verification element in the cross-chain information to be crossed, the factor value of each core impact factor before the current cross-chain is obtained. The factor value is substituted into the feature function corresponding to each verification element to obtain the abnormality ratio of each verification element. All abnormality ratios are added together to obtain the warning value of the current cross-chain information to be crossed. If the warning value is greater than the preset warning threshold, the cross-chain information to be crossed is warned, the cross-chain process is optimized, the factor value of the core impact factor is modified, and then the warning value is recalculated until the recalculated warning value is not greater than the warning threshold.

[0027] Based on the factor values ​​of each core influencing factor before cross-chain, the abnormality ratio corresponding to each verification element can be obtained. Then, the sum of all abnormality ratios can be used to obtain the warning value. When the warning value is large, it is necessary to adjust the factor values ​​of each core influencing factor in the direction of smaller abnormality ratios corresponding to the verification elements, and then recalculate the warning value until the recalculated warning value is not greater than the warning threshold. This helps to ensure the reliability of the cross-chain interoperability process of bills.

[0028] A cross-chain interoperability system for invoices based on heterogeneous blockchains includes a target record extraction module, a record set establishment module, a verification element extraction module, and a cross-chain process optimization module.

[0029] Target record extraction module: used to obtain historical cross-chain records of electronic bills. Cross-chain records are records of the entire process of bill information transferring assets, verifying data, and synchronizing state from the source blockchain to the target blockchain. The source blockchain and the target blockchain are heterogeneous blockchains with different consensus mechanisms and data structures. The module analyzes the block headers and block bodies of the source blockchain and the target blockchain to determine and extract the target records from the cross-chain records.

[0030] Record set establishment module: used to extract the consensus nodes and non-consensus nodes of the source blockchain and target blockchain corresponding to the target record, obtain the current cross-chain information to be crossed, and obtain the record set corresponding to the cross-chain information based on the source blockchain and target blockchain corresponding to the cross-chain information;

[0031] Verification Element Extraction Module: This module is used to extract all elements from the information to be crossed across chains. The elements include core verification information and key business parameters. It extracts all target records from the record set and obtains the verification elements in the information to be crossed across chains based on the changes in the element values ​​of each element before and after the cross-chain process in the target record.

[0032] Cross-chain process optimization module: used to extract all influencing factors that affect the element values ​​of verification elements during the cross-chain process of bills; based on the changes in the element values ​​of each verification element, to obtain the characteristic influencing factors and characteristic functions corresponding to each verification element; based on the factor values ​​of the influencing factors corresponding to the information to be crossed, to obtain the warning value of the current information to be crossed; and based on the warning value, to determine whether to issue a warning for the information to be crossed and to optimize the cross-chain process.

[0033] Preferably, the target record extraction module includes a cross-chain record extraction unit and a target record extraction unit;

[0034] Cross-chain record extraction unit: used to extract the ticket information, source blockchain and target blockchain corresponding to a certain cross-chain record, wherein the source blockchain and target blockchain are heterogeneous blockchains;

[0035] Target record extraction unit: used to obtain several input stages of the source blockchain and several synchronization stages of the target blockchain, and to judge and extract the target record from the cross-chain records based on the corresponding input time of the input stage and the corresponding synchronization time of the synchronization stage, as well as the block header and block body content in the source blockchain and the target blockchain.

[0036] Preferably, the verification element extraction module includes a verification element extraction unit;

[0037] Verification Element Extraction Unit: Used to extract a certain element from the cross-chain information to be crossed and a certain target record from the record set. The cross-chain information in the target record includes a certain element. The unit obtains the element value of the certain element in the source blockchain corresponding to the target record and the element value of the certain element in the target blockchain corresponding to the target record. If the two element values ​​are different, the certain element is used as the verification element.

[0038] Compared with existing technologies, the beneficial effects of this invention are as follows: This invention provides a cross-chain interoperability system and method for electronic bills based on heterogeneous blockchains, including: extracting the target record of the electronic bill, obtaining the current cross-chain information to be crossed, and obtaining the record set corresponding to the cross-chain information to be crossed; extracting all elements in the cross-chain information to be crossed, and obtaining the verification elements in the cross-chain information to be crossed based on the changes in the element values ​​of each element before and after the cross-chain crossing of the target record; extracting all influencing factors in the cross-chain process of the bill, and obtaining the characteristic influencing factors and characteristic functions corresponding to each verification element; calculating the warning value of the current cross-chain information to be crossed, and determining whether to issue a warning prompt and optimize the cross-chain process based on the warning value. This invention, by extracting and analyzing the target record, calculating the warning value of the current cross-chain information to be crossed, and promptly prompting and optimizing the cross-chain process based on the warning situation, helps to ensure the reliability of the cross-chain interoperability process of electronic bills. Attached Figure Description

[0039] To more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 This is a flowchart illustrating a method for cross-chain interoperability of invoices based on heterogeneous blockchains according to the present invention. Detailed Implementation

[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0042] Example: Figure 1 As shown, this invention provides a technical solution for cross-chain interoperability of invoices based on heterogeneous blockchains, including the following steps:

[0043] (1) Obtain historical cross-chain records of electronic bills. Cross-chain records are records of the entire process of bill information transferring assets, verifying data, and mapping states through the source blockchain to the target blockchain. The source blockchain and the target blockchain are heterogeneous blockchains with different consensus mechanisms and data structures. Analyze the block headers and block bodies in the source blockchain and the target blockchain, and judge and extract the target records in the cross-chain records.

[0044] Extract the ticket information T, source blockchain A, and target blockchain B corresponding to a certain cross-chain record R, where source blockchain A and target blockchain B are heterogeneous blockchains;

[0045] The source blockchain A includes several entry steps in the process of entering bill information T. These entry steps are ordered according to their execution order. The block header and block body corresponding to each entry step are extracted. The block header includes the hash value of the previous entry step, and the block body includes the entry time of the current entry step. The target blockchain B includes several synchronization steps in the process of synchronizing bill information T. These synchronization steps are ordered according to their execution order. The block header and block body corresponding to each synchronization step are extracted. The block header includes the hash value of the previous synchronization step, and the block body includes the synchronization time of the current synchronization step.

[0046] Obtain the next entry stage L2 after any entry stage L1, and the next synchronization stage L4 after any synchronization stage L3. If the hash value of entry stage L1 is the same as the hash value in the block header of entry stage L2, and the entry time of entry stage L1 is earlier than the entry time of entry stage L2, and the hash value of synchronization stage L3 is the same as the hash value in the block header of synchronization stage L4, and the synchronization time of synchronization stage L3 is earlier than the synchronization time of synchronization stage L4, then take the cross-chain record R as the target record.

[0047] (2) Extract the consensus nodes and non-consensus nodes of the source blockchain and the target blockchain corresponding to the target record, obtain the current cross-chain information, and obtain the record set corresponding to the cross-chain information based on the source blockchain and the target blockchain corresponding to the cross-chain information.

[0048] The consensus mechanisms of source blockchain A and target blockchain B are different. The consensus includes several consensus nodes and non-consensus nodes. The consensus nodes include fiscal nodes deployed in the finance department. The fiscal nodes are used for consensus calculation and on-chaining of regulatory information. The non-consensus nodes are used to provide application services to invoicing units, reimbursement units and social services. The application services include on-chaining of invoices, invoice query and accounting feedback.

[0049] Consensus nodes include fiscal nodes deployed in the finance department. In this embodiment, consensus nodes are provincial finance department nodes, municipal finance bureau nodes, and fiscal invoice supervision center nodes, etc. Non-consensus nodes are for invoicing units, reimbursement units, and socialized services, such as public hospital nodes, administrative and public institution nodes, medical insurance bureau nodes, and university finance nodes, etc.

[0050] Obtain all consensuses corresponding to a target record Q. If the ticket status of a certain consensus is the same in the source blockchain A and the target blockchain B, then mark the consensus.

[0051] The consensus bill status is the compliance status of the bill throughout its entire lifecycle as written to the block. In this embodiment, it includes bills that have been issued, endorsed, discounted, reimbursed, and expired. If the bill status of a certain consensus is the same in the source blockchain A and the target blockchain B, then the consensus is reliable and is marked.

[0052] Extract all element information corresponding to the target record Q, including the core identifier of the bill, transaction entity information, and transaction content information;

[0053] The key information includes the core identifier of the bill, the transaction entity information, and the transaction content information. In this embodiment, the core identifier of the bill includes the bill code, bill number, and bill verification code. The core identifier of the bill also includes the payer's name, ID number, unified social credit code, payee's name, and issuing unit code. Furthermore, the core identifier of the bill includes the invoice date, project name, quantity, unit price, amount, and the bill's supervisory seal information. Since the target record that matches the core identifier of the bill to be crossed with the blockchain information is the closest to the information to be crossed with the blockchain, analyzing these target records can more accurately and effectively arrive at the following judgment. Therefore, in this scheme, consensus and transaction entity information are used as screening conditions to establish a record set.

[0054] Establish a record set for information to be crossed across chains. If each consensus in the target record Q is marked, and the transaction entity information corresponding to the information to be crossed across chains is exactly the same as the transaction entity information corresponding to the target record Q, input the target record Q into the record set. Based on several target records, obtain the final record set.

[0055] (3) Extract all elements in the information to be crossed, including core verification information and key business parameters. Extract all target records in the record set. Based on the changes in the element values ​​of each element before and after the cross-chain process in the target record, obtain the verification elements in the information to be crossed.

[0056] Extract a certain element W from the information to be crossed across chains and a certain target record P from the record set. The cross-chain information in the target record P includes element W. Obtain the element value of element W in the source blockchain corresponding to the target record P, and the element value of element W in the target blockchain corresponding to the target record P. If the two element values ​​are different, then element W is used as a verification element.

[0057] In this scheme, the elements are the invoice information in the cross-chain process, including core verification information and key business parameters, such as invoice code, invoice number, invoicing unit code, invoicing date and amount. Taking the amount element as an example, when the element value of the amount in the source blockchain corresponding to the target record P is different from the element value in the target blockchain corresponding to the target record P, it means that the amount element can change. Therefore, it needs to be used as a verification element for the following analysis.

[0058] (4) Extract all influencing factors that affect the element value of the verification element during the cross-chain process of the bill, and obtain the characteristic influencing factor and characteristic function corresponding to each verification element based on the change of the element value of each verification element.

[0059] Obtain all influencing factors during the cross-chain process of the invoice. Extract a certain verification element V and a certain influencing factor Y. Extract M target records when the factor value of influencing factor Y is X1. Take the number of target records where the value of verification element V differs before and after the cross-chain process as M1, and calculate the anomaly ratio as M1 / M. Extract M target records when the factor value of influencing factor Y is X2. Take the number of target records where the value of verification element V differs before and after the cross-chain process as M2, and calculate the anomaly ratio as M2 / M. Continue this process to extract the factor value of influencing factor Y as X. H Given M target records, the number of times the value of the verification element V differs before and after the cross-chain operation is taken as M. H The abnormality ratio is calculated as M. H / M;

[0060] Based on the factor values ​​of several impact factors Y and the anomaly ratios of the corresponding validation elements V, the factor values ​​and anomaly ratios are fitted with a linear function, and the goodness of fit during the fitting process is used as the characteristic value between validation elements V and impact factors Y. The characteristic value between validation elements V and each impact factor is obtained, and the impact factor Y corresponding to the largest characteristic value is used as the core impact factor of validation elements V. The corresponding fitted linear function is used as the characteristic function of validation elements V, and thus the characteristic impact factor and characteristic function corresponding to each validation element are obtained.

[0061] There are several types of influencing factors, which are indicators that affect the reliability of cross-chain data transmission, such as the number of consensus nodes, network latency, and data packet loss rate. Some influencing factors have a strong correlation with the abnormal proportion of verification elements. Therefore, this scheme selects the influencing factors that are most correlated with each verification element, namely the feature influencing factors, based on such a pattern, and obtains the corresponding related change patterns, namely the feature functions.

[0062] (5) Based on the factor values ​​of the influencing factors corresponding to the cross-chain information to be crossed, obtain the warning value of the current cross-chain information to be crossed, and determine whether to issue a warning and optimize the cross-chain process based on the warning value.

[0063] Based on the core impact factor of each verification element in the cross-chain information to be crossed, the factor value of each core impact factor before the current cross-chain is obtained. The factor value is substituted into the feature function corresponding to each verification element to obtain the abnormality ratio of each verification element. All abnormality ratios are added together to obtain the warning value of the current cross-chain information to be crossed. If the warning value is greater than the preset warning threshold, the cross-chain information to be crossed is warned, the cross-chain process is optimized, the factor value of the core impact factor is modified, and then the warning value is recalculated until the recalculated warning value is not greater than the warning threshold.

[0064] This embodiment also provides a cross-chain interoperability system for bills based on heterogeneous blockchain, including a target record extraction module, a record set establishment module, a verification element extraction module, and a cross-chain process optimization module. The target record extraction module includes a cross-chain record extraction unit and a target record extraction unit, and the verification element extraction module includes a verification element extraction unit. When the system executes the computer program, it implements the above-mentioned method for cross-chain interoperability of bills based on heterogeneous blockchain. Since this method for cross-chain interoperability of bills based on heterogeneous blockchain has been described in detail above, it will not be repeated here.

[0065] It should be noted that the order of the above embodiments of the present invention is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0066] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for cross-chain interoperability of invoices based on heterogeneous blockchains, characterized in that, Includes the following steps: The process involves acquiring historical cross-chain records of electronic bills, which are records of the entire process of bill information transfer, data verification interaction, and state synchronization from the source blockchain to the target blockchain. The source blockchain and the target blockchain are heterogeneous blockchains with different consensus mechanisms and data structures. The block headers and block bodies of the source blockchain and the target blockchain are analyzed to identify and extract the target record from the cross-chain records. Extract the consensus nodes and non-consensus nodes of the source blockchain and target blockchain corresponding to the target record, obtain the current cross-chain information to be crossed, and obtain the record set corresponding to the cross-chain information based on the source blockchain and target blockchain corresponding to the cross-chain information. Extract all elements from the information to be crossed by the chain, including core verification information and key business parameters. Extract all target records from the record set. Based on the changes in the element values ​​of each element before and after the cross-chain crossing of the target record, obtain the verification elements in the information to be crossed by the chain. During the cross-chain process of bills, all influencing factors that affect the element values ​​of verification elements are extracted. Based on the changes in the element values ​​of each verification element, the characteristic influencing factors and characteristic functions corresponding to each verification element are obtained. Based on the factor values ​​of the influencing factors corresponding to the cross-chain information to be crossed, the warning value of the current cross-chain information to be crossed is obtained. Based on the warning value, it is determined whether to issue a warning for the cross-chain information to be crossed and to optimize the cross-chain process. The characteristic influence factors and characteristic functions corresponding to each verification element are obtained, including: Obtain all influencing factors during the cross-chain process of the invoice. Extract a certain verification element V and a certain influencing factor Y. Extract M target records when the factor value of influencing factor Y is X1. Take the number of target records where the value of verification element V differs before and after the cross-chain process as M1, and calculate the anomaly ratio as M1 / M. Extract M target records when the factor value of influencing factor Y is X2. Take the number of target records where the value of verification element V differs before and after the cross-chain process as M2, and calculate the anomaly ratio as M2 / M. Continue this process to extract the factor value of influencing factor Y as X. H Given M target records, the number of times the value of the verification element V differs before and after the cross-chain operation is taken as M. H The abnormality ratio is calculated as M. H / M; Based on the factor values ​​of several influencing factors Y and the abnormal proportions of the corresponding verification elements V, the factor values ​​and abnormal proportions are fitted with a linear function, and the goodness of fit during the fitting process is used as the characteristic value between the verification elements V and the influencing factors Y. The characteristic value between the verification elements V and each influencing factor is obtained, and the influencing factor Y corresponding to the largest characteristic value is used as the core influencing factor of the verification element V. The corresponding fitted linear function is used as the characteristic function of the verification element V, thereby obtaining the characteristic influencing factor and characteristic function corresponding to each verification element.

2. The method for cross-chain interoperability of invoices based on heterogeneous blockchains according to claim 1, characterized in that, The target record is identified and extracted from the cross-chain records, including: Extract the ticket information T, source blockchain A, and target blockchain B corresponding to a certain cross-chain record R, where source blockchain A and target blockchain B are heterogeneous blockchains; The source blockchain A includes several entry steps in the process of entering bill information T. These entry steps are ordered according to their execution order. The block header and block body corresponding to each entry step are extracted. The block header includes the hash value of the previous entry step, and the block body includes the entry time of the current entry step. The target blockchain B includes several synchronization steps in the process of synchronizing bill information T. These synchronization steps are ordered according to their execution order. The block header and block body corresponding to each synchronization step are extracted. The block header includes the hash value of the previous synchronization step, and the block body includes the synchronization time of the current synchronization step. Obtain the next entry stage L2 after any entry stage L1, and the next synchronization stage L4 after any synchronization stage L3. If the hash value of entry stage L1 is the same as the hash value in the block header of entry stage L2, and the entry time of entry stage L1 is earlier than the entry time of entry stage L2, and the hash value of synchronization stage L3 is the same as the hash value in the block header of synchronization stage L4, and the synchronization time of synchronization stage L3 is earlier than the synchronization time of synchronization stage L4, then take the cross-chain record R as the target record.

3. The method for cross-chain interoperability of invoices based on heterogeneous blockchains according to claim 2, characterized in that, Obtain the set of records corresponding to the information to be crossed with the chain, including: The consensus mechanisms of source blockchain A and target blockchain B are different. The consensus includes several consensus nodes and non-consensus nodes. The consensus nodes include fiscal nodes deployed in the finance department. The fiscal nodes are used for consensus calculation and on-chaining of regulatory information. The non-consensus nodes are used to provide application services to invoicing units, reimbursement units and social services. The application services include on-chaining of invoices, invoice query and accounting feedback. Obtain all consensuses corresponding to a target record Q. If the ticket status of a certain consensus is the same in the source blockchain A and the target blockchain B, then mark the certain consensus. Extract all element information corresponding to the target record Q, including the core identifier of the bill, transaction entity information, and transaction content information; Establish a record set for information to be crossed across chains. If each consensus in the target record Q is marked, and the transaction entity information corresponding to the information to be crossed across chains is exactly the same as the transaction entity information corresponding to the target record Q, input the target record Q into the record set. Based on several target records, obtain the final record set.

4. The method for cross-chain interoperability of invoices based on heterogeneous blockchains according to claim 1, characterized in that, Obtaining the verification element from the cross-chain information to be crossed includes: extracting a certain element W from the cross-chain information to be crossed and a certain target record P from the record set, wherein the cross-chain information in the target record P includes the element W; obtaining the element value of element W in the source blockchain corresponding to the target record P, and the element value of element W in the target blockchain corresponding to the target record P; if the two element values ​​are different, then element W is used as the verification element.

5. A method for cross-chain interoperability of invoices based on heterogeneous blockchains according to claim 1, characterized in that, Determine whether to issue warnings and optimize cross-chain processes for cross-chain information, including: Based on the core impact factor of each verification element in the cross-chain information to be crossed, the factor value of each core impact factor before the current cross-chain is obtained. The factor value is substituted into the feature function corresponding to each verification element to obtain the abnormality ratio of each verification element. All abnormality ratios are added together to obtain the warning value of the current cross-chain information to be crossed. If the warning value is greater than the preset warning threshold, the cross-chain information to be crossed is warned, the cross-chain process is optimized, the factor value of the core impact factor is modified, and then the warning value is recalculated until the recalculated warning value is not greater than the warning threshold.

6. A cross-chain interoperability system for invoices, used to execute the cross-chain interoperability method for invoices based on heterogeneous blockchains as described in any one of claims 1-5, characterized in that, The system includes a target record extraction module, a record set establishment module, a verification element extraction module, and a cross-chain process optimization module. Target record extraction module: used to obtain historical cross-chain records of electronic bills. The cross-chain records are records of the entire process of bill information transferring assets, verifying data, and synchronizing state from the source blockchain to the target blockchain. The source blockchain and the target blockchain are heterogeneous blockchains with different consensus mechanisms and data structures. The module analyzes the block headers and block bodies of the source blockchain and the target blockchain to determine and extract the target records from the cross-chain records. Record set establishment module: used to extract the consensus nodes and non-consensus nodes of the source blockchain and target blockchain corresponding to the target record, obtain the current cross-chain information to be crossed, and obtain the record set corresponding to the cross-chain information based on the source blockchain and target blockchain corresponding to the cross-chain information; Verification Element Extraction Module: Used to extract all elements in the information to be crossed across chains. The elements include core verification information and key business parameters. Extract all target records in the record set. Based on the changes in the element values ​​of each element before and after the cross-chain crossing of the target record, obtain the verification elements in the information to be crossed across chains. Cross-chain process optimization module: used to extract all influencing factors that affect the element values ​​of verification elements during the cross-chain process of bills; based on the changes in the element values ​​of each verification element, to obtain the characteristic influencing factors and characteristic functions corresponding to each verification element; based on the factor values ​​of the influencing factors corresponding to the information to be crossed, to obtain the warning value of the current information to be crossed; and based on the warning value, to determine whether to issue a warning for the information to be crossed and to optimize the cross-chain process.

7. A cross-chain interoperability system for invoices according to claim 6, characterized in that, The target record extraction module includes a cross-chain record extraction unit and a target record extraction unit; Cross-chain record extraction unit: used to extract the ticket information, source blockchain and target blockchain corresponding to a certain cross-chain record, wherein the source blockchain and target blockchain are heterogeneous blockchains; Target record extraction unit: used to obtain several input stages of the source blockchain and several synchronization stages of the target blockchain, and to judge and extract the target record from the cross-chain records based on the corresponding input time of the input stage and the corresponding synchronization time of the synchronization stage, as well as the block header and block body content in the source blockchain and the target blockchain.

8. A cross-chain interoperability system for invoices according to claim 6, characterized in that, The verification element extraction module includes a verification element extraction unit; Verification Element Extraction Unit: Used to extract a certain element from the cross-chain information to be crossed and a certain target record from the record set. The cross-chain information in the target record includes the certain element. The unit obtains the element value of the certain element in the source blockchain corresponding to the target record and the element value of the certain element in the target blockchain corresponding to the target record. If the two element values ​​are different, the certain element is used as the verification element.

Citation Information

Patent Citations

  • Cross-chain intercommunication platform based on block chain

    CN117252701A

  • Blockchain cybersecurity solutions

    WO2021138591A1