Electronic bill blockchain networking method, device, terminal and storage medium
By building the main chain and branch chain of the bill in the blockchain system and using cross-link routing for data interoperability, the problem of inconvenience in the flow of bill data and state synchronization between different blockchains is solved, and more efficient data transmission is achieved and synchronize.
Patent Information
- Application Number
- CN202210584363.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2042-05-26
AI Technical Summary
The circulation and state synchronization of bill data between different blockchains is relatively inconvenient, mainly due to the differences in business and technology of their respective blockchains.
By building a ticket main chain and multiple ticket branch chains, and connecting the main chain to the branch chain using cross-link routing, decrypting and converting data using the same specifications and standards, thus realizing the encryption and over-chaining of data.
Through the transit function of cross-link routing, the ticket data flow and state synchronization between different blockchains are simplified, and the convenience and efficiency of data transmission are improved.
Smart Images

Figure CN114978507B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to an electronic bill blockchain networking method, device, terminal and storage medium. Background Art
[0002] With the development of the economy, physical bills have gradually been digitized. Based on computers and modern communication technology networks, financial information is stored in computer systems in the form of data telegrams, so that electronic bills can be transferred, discounted, pledged, collected, etc. just like physical bills. In order to ensure that electronic bills cannot be tampered with, national and local financial departments encrypt electronic bills through blockchain technology.
[0003] However, when the fiscal electronic invoice blockchain shares data information with various government blockchains and self-built blockchains of other departments, due to the differences in business and technical aspects of their respective blockchain construction standards, including the types of blockchain nodes, their distribution in various provinces and cities, the business division of each node, what kind of data they process respectively, and the network topology of the entire blockchain network, the flow and status synchronization of invoice data between different blockchains are relatively inconvenient.
[0004] In view of this, it is necessary to provide an electronic bill blockchain networking method, device, terminal and storage medium to overcome the above-mentioned defects. Summary of the invention
[0005] The purpose of the present invention is to provide an electronic bill blockchain networking method, device, terminal and storage medium, aiming to solve the problem that the flow and status synchronization of bill data between different blockchains are currently inconvenient.
[0006] In order to achieve the above-mentioned object, the first aspect of the present invention provides an electronic bill blockchain networking method, comprising the following steps:
[0007] Constructing a corresponding bill main chain and multiple bill branch chains according to the required blockchain nodes; wherein the blockchain nodes include industry application nodes and social service nodes;
[0008] The bill main chain is connected to the multiple bill branches respectively through cross-chain routing; wherein the cross-chain routing adopts the specifications and standards mutually recognized by the bill main chain and the bill branches.
[0009] In a preferred embodiment, the blockchain nodes include consensus nodes and non-consensus nodes; the consensus nodes are used to provide the highest authority and services for consensus accounting and network-wide node management to the finance department; the non-consensus nodes are used to provide application services to invoicing units, reimbursement units and social services; wherein the application services include bill chaining, bill query and account entry feedback.
[0010] In a preferred embodiment, the consensus node includes a financial node deployed in a financial department, and the financial node is used for consensus calculation and uploading regulatory information to the chain.
[0011] In a preferred embodiment, the non-consensus nodes include an invoicing node deployed in an invoicing unit, a business node deployed in a reimbursement unit or relevant government department, and a social service node deployed in an Internet channel; the invoicing node is used to perform invoicing operations including invoicing, redemption, and printing; the business node is used to perform bill inquiries, account feedback, and bill services in related businesses corresponding to the business; the social service node is used for bill custody, notification, bill authorization, and bill inquiries and account feedback corresponding to social services.
[0012] In a preferred embodiment, the main chain is the national fiscal bill chain, and the branch chain is the local fiscal bill chain; the industry application nodes include one or more of the National Health Commission node, the medical insurance node, the government service node and the invoicing node; the social service node includes a transmission node.
[0013] In a preferred embodiment, the main chain is integrated with a first route, and each branch chain is integrated with a separate second route; the first route and the second route use the same standard encryption and decryption mechanism; wherein the encryption and decryption mechanism of the branch chain and each branch chain may be different.
[0014] In a preferred embodiment, the step of connecting the bill main chain with the plurality of bill sub-chains respectively through cross-chain routing includes the following steps:
[0015] The main chain applies to the branch chain for synchronization data through the first route;
[0016] The second router decrypts its own branch chain data through its own encryption and decryption module and converts it into a standard format;
[0017] The second router uses the identity of the main chain to encrypt the branch chain data in a standard format through the standard encryption and decryption mechanism and transmits it back to the first router;
[0018] The first router decrypts the branch chain data sent by the second router through the standard encryption and decryption mechanism and converts the decrypted data into a data format corresponding to the main chain;
[0019] The first routing uses the main chain identity to encrypt and chain the branch chain data that has been encrypted and converted into a data format corresponding to the main chain in the main chain.
[0020] The second aspect of the present invention provides an electronic bill blockchain networking device, comprising:
[0021] A blockchain module, used to construct a corresponding bill main chain and multiple bill branch chains according to the required blockchain nodes; wherein the blockchain nodes include industry application nodes and social service nodes;
[0022] A cross-chain docking module is used for the bill main chain to dock with multiple bill branches respectively through cross-chain routing; wherein the cross-chain routing adopts specifications and standards mutually recognized by the bill main chain and the bill branches.
[0023] A third aspect of the present invention provides a terminal, comprising a memory, a processor, and a computer program stored in the memory, wherein when the computer program is executed by the processor, the steps of the electronic bill blockchain networking method as described in any one of the above-mentioned implementation modes are implemented.
[0024] A fourth aspect of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the various steps of the electronic bill blockchain networking method as described in any one of the above implementation modes.
[0025] The electronic bill blockchain networking method, device, terminal and storage medium provided by the present invention connect the main chain with multiple branch chains through a cross-chain route. When data synchronization is required, the cross-chain route uses the same specifications and standards to decrypt and transform the data to be synchronized, thereby facilitating each blockchain to encrypt and upload data according to its own encryption and decryption mechanism, so that the cross-chain route plays a transit role, thereby making the flow and status synchronization of bill data between different blockchains more convenient and quick. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 A flowchart of the electronic bill blockchain networking method provided by the present invention;
[0028] Figure 2 for Figure 1 The sub-step flow chart of step S12 in the electronic bill blockchain networking method shown;
[0029] Figure 3 for Figure 2 The sub-steps of step S12 are shown as being applied to a network topology diagram in a specific embodiment;
[0030] Figure 4 This is a framework diagram of the electronic bill blockchain networking device provided by the present invention. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solution and beneficial technical effect of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. It should be understood that the specific implementation methods described in this specification are only for explaining the present invention, not for limiting the present invention.
[0032] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0033] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0034] Embodiment 1
[0035] In an embodiment of the present invention, an electronic bill blockchain networking method is provided to open up data flow channels between different blockchains, and to open up data transmission channels and data mutual recognition standards that are mutually recognized by both parties.
[0036] like Figure 1 As shown, the electronic bill blockchain networking method includes the following steps S11-S12.
[0037] Step S11, constructing a corresponding bill main chain and multiple bill branch chains according to the required blockchain nodes; wherein the blockchain nodes include industry application nodes and social service nodes.
[0038] In this embodiment, the main chain is the national fiscal bill chain, for example, the Ministry of Finance bill chain. The branch chain is the local fiscal bill chain, for example, the provincial finance department bill chain. Industry application nodes include but are not limited to the Health Commission node deployed in the Health Commission, the medical insurance node deployed in the medical insurance institution, the government service node deployed in each government department and the billing node of each billing unit. Social service nodes include transmission nodes, such as cloud and social software that have the ability to undertake social services.
[0039] Among them, blockchain nodes are classified into consensus nodes and non-consensus nodes according to their uses.
[0040] Consensus nodes are used to provide the highest authority and services for consensus accounting and network-wide node management for finance. Specifically, consensus nodes include financial nodes deployed in financial departments, which are used for consensus calculation and regulatory information chain.
[0041] Non-consensus nodes are used to provide application services to invoicing units, reimbursement units, and social services; among them, application services include bill on-chain, bill query, and account feedback. Specifically, non-consensus nodes include invoicing nodes deployed in invoicing units, business nodes deployed in reimbursement units or relevant government departments, and social service nodes deployed on Internet channels. Invoicing nodes are used to perform invoicing operations including invoicing, redemption, and printing. Business nodes are used to perform bill queries, account feedback, and bill services in related businesses corresponding to the business. Social service nodes are used for bill custody, notification, bill authorization, and bill query and account feedback corresponding to social services.
[0042] Step S12, the bill main chain is connected to multiple bill branches respectively through cross-chain routing; wherein the cross-chain routing adopts the specifications and standards mutually recognized by the bill main chain and the bill branches.
[0043] For example, when the fiscal electronic invoice blockchain (main chain) shares data information with various government blockchains and other departments' self-built blockchains (branch chains), due to the differences in business and technical aspects of their respective blockchain construction standards, it is necessary to use cross-chain routing to open up mutually recognizable data transmission channels and data mutual recognition standards.
[0044] Specifically, the main chain is integrated with a first route, and each branch chain is integrated with a separate second route. The first route is connected to the second route, and the first route and the second route use the same standard encryption and decryption mechanism, which is responsible for synchronizing data and changing data formats, so that the main chain can be connected to each branch chain. Among them, the encryption and decryption mechanism of the branch chain and each branch chain may be different. The cross-chain routing service of the first route and the second route includes data transmission, data adaptation and identity authentication. Data transmission refers to the forwarding and transmission of interactive data between two chains. Data adaptation refers to the conversion of the data format of a specific chain to a unified format by the route when crossing chains. Identity authentication refers to verifying the identities of both parties during cross-chain interaction to ensure the security of the interaction.
[0045] Further, in one embodiment, if Figure 2 As shown, the step S12 in which the bill main chain is connected to the multiple bill sub-chains respectively through cross-chain routing includes the following steps S121-S125. Figure 3 This is a docking diagram for a specific case in this embodiment, that is, the main chain is the Ministry of Finance blockchain, and the branch chain is a provincial finance blockchain.
[0046] Step S121, the main chain applies to the branch chain for synchronization data through the first route.
[0047] Step S122: The second router decrypts its own branch chain data through its own encryption and decryption module and converts it into a standard format.
[0048] Step S123, the second router uses the identity of the main chain to encrypt the branch chain data in the standard format through the standard encryption and decryption mechanism and transmits it back to the first router.
[0049] Step S124, the first router decrypts the branch chain data sent by the second router through a standard encryption and decryption mechanism and converts it into a data format corresponding to the main chain.
[0050] Step S125: The first router uses the main chain identity to encrypt and upload the branch chain data that has been encrypted and converted into a data format corresponding to the main chain in the main chain.
[0051] Embodiment 2
[0052] The second aspect of the present invention provides an electronic bill blockchain networking device 100 for opening up data flow channels between different blockchains. It should be noted that the implementation principle and implementation method of the electronic bill blockchain networking device 100 are consistent with the above-mentioned electronic bill blockchain networking method, so they will not be repeated below.
[0053] like Figure 4 As shown, the electronic bill blockchain networking device 100 includes:
[0054] The blockchain module 10 is used to construct a corresponding bill main chain and multiple bill branch chains according to the required blockchain nodes; wherein the blockchain nodes include industry application nodes and social service nodes;
[0055] The cross-chain docking module 20 is used for the bill main chain to dock with the plurality of the bill branches respectively through cross-chain routing; wherein the cross-chain routing adopts the specifications and standards mutually recognized by the bill main chain and the bill branches.
[0056] Embodiment 3
[0057] A third aspect of the present invention provides a terminal, comprising a memory, a processor, and a computer program stored in the memory, wherein when the computer program is executed by the processor, the steps of the electronic bill blockchain networking method as described in any one of the above-mentioned implementation modes are implemented.
[0058] Embodiment 4
[0059] A fourth aspect of the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the various steps of the electronic bill blockchain networking method as described in any one of the above implementation modes.
[0060] To sum up, the electronic bill blockchain networking method, device, terminal and storage medium provided by the present invention connect the main chain with multiple branch chains through a cross-chain route. When data synchronization is required, the cross-chain route adopts the same specifications and standards to decrypt and transform the data to be synchronized, so that each blockchain can encrypt and upload the data according to its own encryption and decryption mechanism, so that the cross-chain route plays a transit role, thereby making the flow and status synchronization of bill data between different blockchains more convenient and quick.
[0061] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0062] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0063] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0064] In the embodiments provided by the present invention, it should be understood that the disclosed systems or devices / terminal equipment and methods can be implemented in other ways. For example, the system or device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the system or unit can be electrical, mechanical or other forms.
[0065] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0066] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0067] The present invention is not limited to what is described in the specification and implementation modes, and therefore additional advantages and modifications can be easily realized by those skilled in the art. Therefore, without departing from the spirit and scope of the general concept defined by the claims and their equivalents, the present invention is not limited to the specific details, representative devices, and illustrative examples shown and described herein.
Claims
1. An electronic bill blockchain networking method, characterized in that: The following steps are involved: Constructing a corresponding bill main chain and multiple bill branch chains according to the required blockchain nodes; wherein the blockchain nodes include industry application nodes and social service nodes; The bill main chain is connected to the plurality of bill branches respectively through cross-chain routing; wherein the cross-chain routing adopts the specifications and standards mutually recognized by the bill main chain and the bill branches; The blockchain nodes include consensus nodes and non-consensus nodes; the consensus nodes are used to provide the highest authority and services for consensus accounting and network-wide node management for the finance department; the non-consensus nodes are used to provide application services for invoicing units, reimbursement units and social services; wherein the application services include bill chaining, bill query and account entry feedback; The main chain is integrated with a first route, and each branch chain is integrated with a separate second route; the first route and the second route use the same standard encryption and decryption mechanism; wherein the encryption and decryption mechanism of the branch chain is different from that of each branch chain; The step of connecting the main bill chain with the plurality of the sub-bill chains respectively through cross-chain routing includes the following steps: The main chain applies to the branch chain for synchronization data through the first route; The second router decrypts its own branch chain data through its own encryption and decryption module and converts it into a standard format; The second router uses the identity of the main chain to encrypt the branch chain data in a standard format through the standard encryption and decryption mechanism and transmits it back to the first router; The first router decrypts the branch chain data sent by the second router through the standard encryption and decryption mechanism and converts the decrypted data into a data format corresponding to the main chain; The first routing uses the main chain identity to encrypt and chain the branch chain data that has been encrypted and converted into a data format corresponding to the main chain in the main chain.
2. The electronic bill blockchain networking method according to claim 1, characterized in that: The consensus nodes include financial nodes deployed in the financial department, and the financial nodes are used for consensus calculation and uploading regulatory information to the chain.
3. The electronic bill blockchain networking method according to claim 1, characterized in that: The non-consensus nodes include invoicing nodes deployed in invoicing units, business nodes deployed in reimbursement units or relevant government departments, and social service nodes deployed in Internet channels; the invoicing nodes are used to perform invoicing operations including invoicing, redemption and printing; the business nodes are used to perform bill inquiries, account feedback and bill services in related businesses corresponding to the business; the social service nodes are used for bill custody, notification, bill authorization, and bill inquiries and account feedback corresponding to social services.
4. The electronic bill blockchain networking method according to any one of claims 1 to 3, characterized in that: The main chain is the national fiscal bill chain, and the branch chain is the local fiscal bill chain; the industry application nodes include one or more of the National Health Commission node, medical insurance node, government service node and invoicing node; the social service node includes a transmission node.
5. An electronic bill blockchain networking device, characterized in that: include: A blockchain module, used to construct a corresponding bill main chain and multiple bill branch chains according to the required blockchain nodes; wherein the blockchain nodes include industry application nodes and social service nodes; A cross-chain docking module, used for the bill main chain to be docked with the plurality of bill sub-chains respectively through cross-chain routing; wherein the cross-chain routing adopts the specifications and standards mutually recognized by the bill main chain and the bill sub-chains; The blockchain nodes include consensus nodes and non-consensus nodes; the consensus nodes are used to provide the highest authority and services for consensus accounting and network-wide node management for the finance department; the non-consensus nodes are used to provide application services for invoicing units, reimbursement units and social services; wherein the application services include bill chaining, bill query and account entry feedback; The main chain is integrated with a first route, and each branch chain is integrated with a separate second route; the first route and the second route use the same standard encryption and decryption mechanism; wherein the encryption and decryption mechanism of the branch chain is different from that of each branch chain; The process of connecting the main bill chain with the multiple sub-bill chains respectively through cross-chain routing includes the following steps: The main chain applies to the branch chain for synchronization data through the first route; The second router decrypts its own branch chain data through its own encryption and decryption module and converts it into a standard format; The second router uses the identity of the main chain to encrypt the branch chain data in a standard format through the standard encryption and decryption mechanism and transmits it back to the first router; The first router decrypts the branch chain data sent by the second router through the standard encryption and decryption mechanism and converts the decrypted data into a data format corresponding to the main chain; The first routing uses the main chain identity to encrypt and chain the branch chain data that has been encrypted and converted into a data format corresponding to the main chain in the main chain.
6. A terminal, characterized in that: The terminal includes a memory, a processor, and a computer program stored in the memory. When the computer program is executed by the processor, each step of the electronic bill blockchain networking method as described in any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the various steps of the electronic bill blockchain networking method as described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
An electronic bill circulation system
CN109345194A
Task process tracing system based on block chain cross-chain cooperation
CN112926033A