CN113132433B - Block chain fragmentation method and device, electronic equipment and storage medium - Google Patents

Block chain fragmentation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113132433B
CN113132433B CN201911414949.5A CN201911414949A CN113132433B CN 113132433 B CN113132433 B CN 113132433B CN 201911414949 A CN201911414949 A CN 201911414949A CN 113132433 B CN113132433 B CN 113132433B
Authority
CN
China
Prior art keywords
nodes
same
determining
industry type
economic industry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911414949.5A
Other languages
Chinese (zh)
Other versions
CN113132433A (en
Inventor
偶瑞军
韦红文
何万玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201911414949.5A priority Critical patent/CN113132433B/en
Publication of CN113132433A publication Critical patent/CN113132433A/en
Application granted granted Critical
Publication of CN113132433B publication Critical patent/CN113132433B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/10Tax strategies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application provides a method and a device for partitioning a block chain, an electronic device and a storage medium, which are used for improving the efficiency of a block chain system. The method comprises the following steps: acquiring attribute information of each node in the block chain, wherein the attribute information comprises the economic industry type and/or tax payment area of the node; and according to the attribute information of each node, fragmenting each node according to a preset fragmentation rule.

Description

Block chain fragmentation method and device, electronic equipment and storage medium
Technical Field
The invention relates to the field of block chain finance and tax, in particular to a block chain fragmentation method and device, electronic equipment and a storage medium.
Background
In the block chain technology, before data is packed and output, the data needs to be broadcast over the whole network, and as the network grows, the number of data and nodes of a block chain increases, which often takes a large amount of data broadcasting time, so that the output performance of the same block chain is greatly reduced.
In order to solve the technical problem, a block chain fragmentation technique is developed. In the block chain, the fragmentation technology fragments nodes or data in the block chain system according to a certain rule, so as to optimize the overall performance of the system. At present, the existing block chain fragmentation technology comprises transaction fragmentation, state fragmentation and the like, but the two fragmentation methods both have the problem that the system efficiency is reduced due to frequent communication between fragments.
Therefore, how to improve the efficiency of the blockchain system is a technical problem to be solved.
Disclosure of Invention
The embodiment of the application provides a method and a device for partitioning a block chain, an electronic device and a storage medium, which are used for improving the efficiency of a block chain system.
In a first aspect, a method for partitioning a blockchain is provided, where the method includes:
acquiring attribute information of each node in the block chain, wherein the attribute information comprises the economic industry type and/or tax payment area of the node;
and according to the attribute information of each node, fragmenting each node according to a preset fragmentation rule.
Optionally, fragmenting each node according to a preset fragmentation rule according to the attribute information of each node, including:
determining nodes belonging to the same economic industry type according to the economic industry type of each node;
and determining that the nodes belonging to the same economic industry type are divided into the same piece.
Optionally, fragmenting each node according to a preset fragmentation rule according to the attribute information of each node, including:
determining nodes belonging to the same tax payment area according to the tax payment area of each node;
and determining that the nodes belonging to the same tax payment area are divided into the same piece.
Optionally, fragmenting each node according to a preset fragmentation rule according to the attribute information of each node, including:
determining N nodes belonging to the same economic industry type according to the economic industry type of each node; n is an integer greater than or equal to 1;
determining that the N nodes are divided into the same piece;
determining M nodes of the tax payment areas in the N nodes, wherein the tax payment areas belong to the same tax payment area; m is an integer greater than or equal to 1 and less than or equal to N;
determining that the M nodes are divided into a same sub-slice of the slices.
Optionally, fragmenting each node according to a preset fragmentation rule according to the attribute information of each node, including:
determining N nodes belonging to the same tax payment area according to the tax payment area of each node; n is an integer greater than or equal to 1;
determining that the N nodes are divided into the same piece;
determining M nodes of the N nodes, wherein the economic industry type belongs to the same economic industry type; m is an integer greater than or equal to 1 and less than or equal to N;
determining that the M nodes are divided into a same sub-slice of the slices.
Optionally, after determining the nodes belonging to the same economic industry type, the method further includes:
acquiring the number of nodes corresponding to each economic industry type;
determining a first economic industry type, wherein the number of nodes corresponding to the first economic industry type exceeds a first preset value;
categorizing all nodes of the first economic industry type by economic industry sub-types included in the first economic industry type;
and dividing the nodes belonging to the same economic industry subtype into the same piece.
Optionally, the finance and tax block chain multi-chain system includes P block chains, different block chains correspond to different functions, the fragmentation results of each block chain are synchronous, and P is an integer greater than or equal to 2.
In a second aspect, an apparatus for blockchain fragmentation is provided, the apparatus comprising:
the acquiring module is used for acquiring attribute information of each node in the block chain, wherein the attribute information comprises the economic industry type and/or tax payment area of the node;
and the processing module is used for fragmenting each node according to the attribute information of each node and a preset fragmentation rule.
Optionally, the processing module is specifically configured to:
determining nodes belonging to the same economic industry type according to the economic industry type of each node;
and determining that the nodes belonging to the same economic industry type are divided into the same piece.
Optionally, the processing module is specifically configured to:
determining nodes belonging to the same tax payment area according to the tax payment area of each node;
and determining that the nodes belonging to the same tax payment area are divided into the same piece.
Optionally, the processing module is specifically configured to:
determining N nodes belonging to the same economic industry type according to the economic industry type of each node; n is an integer greater than or equal to 1;
determining that the N nodes are divided into the same piece;
determining M nodes of the tax payment areas in the N nodes, wherein the tax payment areas belong to the same tax payment area; m is an integer greater than or equal to 1 and less than or equal to N;
determining that the M nodes are divided into a same sub-slice of the slices.
Optionally, the processing module is specifically configured to:
determining N nodes belonging to the same tax payment area according to the tax payment area of each node; n is an integer greater than or equal to 1;
determining that the N nodes are divided into the same piece;
determining M nodes of the N nodes, wherein the economic industry type belongs to the same economic industry type; m is an integer greater than or equal to 1 and less than or equal to N;
determining that the M nodes are divided into a same sub-slice of the slices.
Optionally, after determining the nodes belonging to the same economic industry type, the processing module is further configured to:
acquiring the number of nodes corresponding to each economic industry type;
determining a first economic industry type, wherein the number of nodes corresponding to the first economic industry type exceeds a first preset value;
categorizing all nodes of the first economic industry type by economic industry sub-types included in the first economic industry type;
and dividing the nodes belonging to the same economic industry subtype into the same piece.
Optionally, the finance and tax block chain multi-chain system includes P block chains, different block chains correspond to different functions, the fragmentation results of each block chain are synchronous, and P is an integer greater than or equal to 2.
In a third aspect, an electronic device is provided, which includes:
a memory for storing program instructions;
a processor for calling the program instructions stored in said memory and for executing the steps comprised in any of the methods of the first aspect in accordance with the obtained program instructions.
In a fourth aspect, there is provided a computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the steps comprising the method of any one of the first aspects.
In a fifth aspect, a computer program product containing instructions is provided, which when run on a computer causes the computer to perform the blockchain fragmentation method described in the various possible implementations described above.
In the embodiment of the application, the fiscal/tax blockchain multi-chain system acquires the economic industry type and/or tax payment region of each node in the blockchain. And carrying out fragmentation processing on each node according to the economic industry type and/or tax payment area of each node. Wherein the tax policies of different economic industry types and/or different tax areas are different. That is to say, finance and taxation block chain multi-chain system combines the finance and taxation business scene, based on economic industry type and/or tax area two dimensions in nationwide, carries out the fragmentation to the block chain, effectively reduces the block chain after the fragmentation and carries out the probability of piece transaction to reduce the communication number of times between the fragmentation, effectively promote finance and taxation block chain multi-chain system's efficiency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application.
Fig. 1 is a flowchart of a method for partitioning a block chain according to an embodiment of the present application;
fig. 2 is a block diagram of a block chain fragmentation device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. In the present application, the embodiments and features of the embodiments may be arbitrarily combined with each other without conflict. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The terms "first" and "second" in the description and claims of the present application and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the term "comprises" and any variations thereof, which are intended to cover non-exclusive protection. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The "plurality" in the present application may mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document generally indicates that the preceding and following related objects are in an "or" relationship unless otherwise specified.
In order to facilitate understanding of the technical solutions provided by the embodiments of the present invention, some key terms used in the embodiments of the present invention are explained first.
The block chain is a novel decentralized protocol, digital currency transactions or other data can be safely stored, information cannot be forged and falsified, transaction confirmation on the block chain is completed by all nodes on the block chain together, consistency of the transaction confirmation is guaranteed by a consensus algorithm, a public account book is maintained on the block chain, the public account book is located on a storage block, and any node is visible.
A prolog machine, a mechanism for writing information outside a blockchain into a blockchain, is generally called an oraclemechnism (oracle mechanism). Specifically, the prediction machine has the function of writing external information into the block chain to complete data intercommunication between the block chain and the real world. The method allows the determined intelligent contract to react to the uncertain external world, is the only way for the intelligent contract to perform data interaction with the outside, and is also an interface for the block chain to perform data interaction with the real world.
The technical background of the embodiments of the present invention will be described.
As described above, how to improve the efficiency of the blockchain system is a technical problem to be solved. At present, the blockchain fragmentation technology mainly includes transaction fragmentation, state fragmentation and the like. In the transaction fragment, when a user maliciously creates two transactions with the same input but different outputs, a double-flower transaction occurs. To prevent double-flower transactions, shards would have to communicate with each other frequently, affecting blockchain system efficiency. In state fragmentation, a particular fragment retains only a portion of the state in the blockchain. For example, when there are two shards and two user accounts, each shard will only retain the status of one user, then when two users are conducting transactions, two shards are required to conduct frequent cross-shard communications and status exchanges, affecting blockchain system efficiency.
In order to improve the efficiency of a block chain system, the embodiment of the application provides a fragmentation method applied to a multi-chain system of a finance and tax block chain in combination with the needs of a finance and tax scene.
After introducing the design concept of the embodiment of the present application, some simple descriptions are provided below for application scenarios to which the technical solution of the embodiment of the present application can be applied, and it should be noted that the application scenarios described below are only used for describing the embodiment of the present application and are not limited. In specific implementation, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
In the embodiment of the application, a fiscal and tax block chain multi-chain system corresponding to a fiscal and tax scene can be established, and the fiscal and tax block chain multi-chain system can comprise an article circulation chain for recording article circulation transactions, a fund settlement chain for recording fund settlement transactions and a tax invoice chain for recording tax payment transactions, for example, according to the needs of the fiscal and tax scene. The three types of block chains have an association in service.
For example, the initial trade of the records of the circulation chain of the goods is generated from the original resources, such as the area and the yield per unit time of a certain medicine field, the reserves and the yield per unit time of a certain mineral deposit, and the subsequent trade is based on the initial trade. The tax invoice chain records tax business and invoice states, and in an invoice issuing link, the issuing information is not directly input, but the circulation transaction of corresponding funds and commodities is taken as an input state, and the reasonability of the circulation transaction is judged according to constraint conditions on the chain, such as whether the yield of raw materials exceeds a reasonable value, whether the transaction frequency is normal, and the like. For any tax invoice chain transaction, corresponding fund settlement transaction and article circulation transaction are used as input states of consumption. After the tax invoice issuing transaction is completed, the invoicing state of the corresponding fund settlement transaction is locked, and cannot be used as the input state of the invoicing transaction, and the invoicing state of the corresponding article circulation transaction is also locked, and cannot be used as the input state of the invoicing transaction.
In a specific implementation process, due to the existence of cycles and different schedules of wide system construction, matched fund settlement is also accepted as the existing bank system and bank transfer system in the block chain multi-chain system. In this case, an online bank settlement prompter node is arranged on the tax invoice chain, effective fund settlement transaction information is obtained through the node, and the state of the fund settlement and invoicing is locked and is recorded by the tax invoice chain.
And the matched article circulation is also accepted as the existing commodity logistics and traceability system. In this case, a node of the commodity circulation prediction machine is arranged on the tax invoice chain, effective commodity circulation information is obtained through the node, and the state of commodity circulation corresponding to invoicing is locked and recorded by the tax invoice chain.
The technical scheme provided by the embodiment of the application is described in the following with the accompanying drawings of the specification.
Referring to fig. 1, fig. 1 is a block chain fragmentation method according to an embodiment of the present disclosure. The flow chart of the method shown in fig. 1 is described as follows:
step 101: and acquiring the attribute information of each node in the block chain.
In the embodiment of the application, when each node of the block chain is added into the block chain, the economic industry type and/or tax payment region to which the node belongs are/is set in a parameter setting mode. When the block chain is deployed on the nodes, the economic industry type and/or tax payment area of each node can be obtained through the parameters of each node. The nodes can be servers, enterprises, shops, legal booths and other enterprises and individual operators needing to handle business licenses.
In a specific implementation process, an enterprise needs to go to a business administration office to process a business license before conducting business, and in the process of processing the business license, the items that the enterprise needs to register include: enterprise name, enterprise address, enterprise responsible person, registered fund amount, economic components, operation range, operation mode, working personnel number, operation period and the like. In a finance and tax application scene, according to the needs of the finance and tax scene, each enterprise can be subjected to fragment management according to different tax policies, and the tax policies are mainly divided according to economic industry types and/or tax payment areas. Therefore, when a business needs to join a block chain for unified management after handling a business license, the economic industry type and/or tax payment region of the business can be noted by means of parameter setting.
For example, a factory address registered by a food processing company is 5151 a Qingsong road outside the Qingpu industrial park of Shanghai, and when the food processing company joins a block chain, a parameter set according to the economic industry type is a parameter indicating food industry, and a parameter set according to the tax payment region is a parameter indicating Shanghai. The parameter of the node acquired by the block chain when the node is deployed is the food industry in Shanghai.
In a possible embodiment, the tax policy for one economic industry type is the same in different tax payment areas nationwide, so when a node belonging to the economic industry type joins the blockchain for management, the set parameter may be a parameter related to only the economic industry type, that is, the set parameter does not include a parameter related to the tax payment area, and the blockchain only acquires the parameter indicating the economic industry type for the node when acquiring the attribute information of the node. Or, when setting the parameter, the parameter related to the economic industry type and the tax payment region is set at the same time, but when acquiring the attribute information of the node, the blockchain acquires only the parameter indicating the economic industry type, and does not acquire the parameter indicating the tax payment region. In the embodiment of the present application, the setting mode of the parameters of the economic industry type with the same tax policy in different tax payment regions is not limited in the embodiment of the present application.
For example, if the tax standards of service industries are the same nationwide, then when a company of a service industry (e.g., a catering company for a capitalization) joins a blockchain, in one approach, the company only sets a parameter indicating that its economic industry type is a catering company in the service industry, and does not set a parameter indicating that its tax area is a capitalization. The blockchain can only acquire the catering company of which the economic industry type of the node is the service industry when acquiring the attribute information of the node. In another mode, the company sets parameters for indicating the economic industry type (catering company in the service industry) and indicating the tax payment area (Chengdu) at the same time, but the block chain only acquires the catering company of which the economic industry type of the node is the service industry when acquiring the attribute information of the company.
In a possible implementation manner, in the same tax payment area, the tax policies for different economic industry types are the same, so when a node belonging to the tax payment area joins the block chain for management, the set parameter may be a parameter related to only the tax payment area, that is, the set parameter does not include a parameter related to the economic industry type, and at this time, the block chain can only obtain a parameter indicating the tax payment area by the node when obtaining the attribute information of the node. Or the parameters related to the economic industry type and the tax payment area are set simultaneously when the parameters are set, but only the parameter for indicating the tax payment area is obtained when the block chain obtains the attribute information of the node, and the parameter for indicating the economic industry type is not obtained. In the embodiment of the present application, the setting method of the parameters of the tax payment areas having the same tax policy in different economic industry types is not limited in the embodiment of the present application.
In one possible embodiment, the tax policies for different types of economic industries are different in the same tax payment area, and the tax policy for one type of economic industry is different in different tax payment areas nationwide, so when a node having different tax policies for different tax payment areas and different tax policies for other types of economic industries joins a block chain, the node needs to set parameters for indicating the types of economic industries and for indicating the tax payment areas at the same time. The block chain also needs to acquire the parameters of the node for indicating the economic industry type and for indicating the tax payment region at the same time when acquiring the attribute information of the node.
For example, if the tax policy of the transportation industry at the mansion gate is different from the tax policies of other tax payment areas, and different from the tax policies of other types of the economic industry at the mansion gate, then when a transportation enterprise at the mansion gate joins the block chain, it is necessary to set both the parameter indicating that the tax payment area is the mansion gate and the parameter indicating that the type of the economic industry is the transportation industry. When acquiring the attribute information of the enterprise, the blockchain also needs to acquire a parameter for indicating that the tax payment area is a building door and a parameter for indicating that the economic industry type is a transportation industry at the same time.
Step 102: and according to the attribute information of each node, fragmenting each node according to a preset fragmentation rule.
In the embodiment of the application, the blockchain fragments each node according to the acquired attribute information of each node through a preset fragmentation rule. The preset fragmentation rule refers to a fragmentation rule formulated according to a finance and tax service scene. At present, the number of nodes in China is about 3000 thousands, and the 3000 thousands of nodes are divided into 20 categories according to the types of economic industries. The 3000 ten thousand nodes are divided into 36 tax areas according to tax areas.
In one possible implementation, the fragmentation is based on the economic sector type of each node. And the block chain determines the nodes belonging to the same economic industry type from the acquired attribute information of each node, and divides the nodes belonging to the same economic industry type into the same piece. I.e. 3000 ten thousand nodes can be divided into 20 slices.
In one possible implementation, the sharding is based on the tax area of each node. And the block chain determines the nodes belonging to the same tax payment area from the acquired attribute information of each node, and divides the nodes belonging to the same tax payment area into the same piece. I.e. 3000 ten thousand nodes can be divided into 36 slices.
In one possible embodiment, the node attribute information obtained by the blockchain has only one parameter (i.e., a parameter indicating the economic industry type or a parameter indicating the tax payment region). When the tax policies for one economic industry type are the same in different tax payment areas nationwide, all nodes nationwide belonging to the economic industry type are divided into the same piece, and are not divided again according to the tax payment areas. When the tax policies aiming at different economic industry types are the same in the same tax payment area, all nodes belonging to the tax payment area are divided into the same piece.
For example, the tax policies of service industries nationwide are the same, and the parameters of the node attribute information acquired by the blockchain are only parameters indicating the economic industry type, so that all nodes belonging to the service industries are divided into the same piece by the blockchain and then are not divided again based on tax payment areas. For another example, in the tax payment region of tibetan, all the economic industry types have the same tax policy, and the parameter of the node attribute information obtained by the blockchain is only the parameter indicating the tax payment region, so that the blockchain does not perform the re-partition based on the economic industry types after dividing all the nodes belonging to the tibetan into the same piece.
In another possible implementation manner, the parameters of the node attribute information obtained by the block chain include both the economic industry type and the tax payment area, and then the block chain divides N nodes belonging to the same economic industry type into the same piece according to the economic industry type of each node. Then, from the N nodes of the piece, according to the tax payment area, the M nodes belonging to the same tax payment area are divided into the same sub-piece, namely, the piece belonging to the same economic industry type can be divided into 36 sub-pieces at most. Or the block chain divides N nodes belonging to the same tax payment area into the same piece according to the tax payment area of each node. Then, from the N nodes of the piece, according to the economic industry type, the M nodes belonging to the same economic industry type are divided into the same sub-piece, namely, the piece belonging to the same tax payment area can be divided into at most 20 sub-pieces.
For example, the tax policies of the real estate industry are different in each tax area, and the tax policies of the real estate industry are different in the same tax area as other types of economic industry. Then, the parameters of the attribute information of the nodes acquired by the blockchain include both the economic industry type and the tax payment area, and then the blockchain divides N nodes belonging to the real estate industry in each node into the same piece, and then divides M nodes belonging to the same tax payment area (for example, beijing) from the N nodes into one sub-piece. Or the block chain divides N nodes belonging to the Beijing area in each node into the same piece, and then divides M nodes belonging to the same economic industry type into one sub-piece from the N nodes. Wherein, the node of the sub-film management is all real estate enterprises in Beijing.
Specifically, after the nodes belonging to the same economic industry type are determined, the number of the nodes corresponding to each economic industry type can be obtained, and the economic industry type corresponding to the number of the nodes exceeding a first preset value is determined as the first economic industry type. All nodes in the first economic industry type that belong to the same economic industry subtype are then divided into the same piece.
For example, the number of nodes belonging to the service industry, which are determined by the blockchain according to the industry economic type from all the nodes, exceeds a first preset value (e.g., 10000). At this time, the blockchain divides all nodes belonging to the service industry into sub-types according to the economic industry (such as the catering industry, the hotel industry, the travel industry and the like), and divides nodes belonging to the same economic industry sub-type into the same piece.
In a possible implementation mode, the finance and taxation blockchain multi-chain system comprises P blockchains, different blockchains correspond to different functions, and the slicing results of each blockchain are synchronous. In the embodiment of the application, taking the fiscal and taxation block chain multi-chain system as an example, the article circulation chain, the fund settlement chain and the tax invoice chain are segmented according to the economic industry type and/or tax payment region, and then the segmented results in each chain of the article circulation chain, the fund settlement chain and the tax invoice chain are synchronized. For example, the real estate industry in Beijing was determined to be a sub-sheet that included 7000 businesses (i.e., 7000 nodes). There is a sub-slice of the real estate industry in Beijing in the goods circulation chain, the funds settlement chain, and the tax invoice chain, and the 7000 businesses are included in the sub-slice in each chain.
In a specific implementation process, a tax policy (which can also be called as a tax standard) is marked for each different piece through an intelligent contract, and when a transaction is carried out between two nodes and a fund settlement and invoicing function is triggered, the block chain takes the fund settlement transaction and the commodity circulation transaction as consumed input states and invoices are made at nodes corresponding to the tax invoice chain.
In the embodiment of the application, the finance and tax service scene is combined, and the segmentation is carried out according to the economic industry type and the tax payment region, so that the possibility of cross-segment transaction in the circulation of the goods can be reduced, the cross-segment communication is reduced, and the efficiency of a finance and tax block chain multi-chain system is effectively improved.
Based on the same inventive concept, the embodiment of the present application provides a block chain fragmentation device, which can implement the corresponding function of the block chain fragmentation method. The blockchain slicing apparatus may be a hardware structure, a software module, or a hardware structure plus a software module. The block chain slicing device can be realized by a chip system, and the chip system can be formed by a chip and can also comprise the chip and other discrete devices. Referring to fig. 2, the blockchain slicing apparatus includes an obtaining module 201 and a processing module 202. Wherein:
an obtaining module 201, configured to obtain attribute information of each node in the block chain, where the attribute information includes an economic industry type and/or a tax payment region of the node;
and the processing module 202 is configured to fragment each node according to a preset fragmentation rule according to the attribute information of each node.
In a possible implementation manner, the processing module 202 is specifically configured to:
determining nodes belonging to the same economic industry type according to the economic industry type of each node;
and determining that the nodes belonging to the same economic industry type are divided into the same piece.
In a possible implementation manner, the processing module 202 is specifically configured to:
determining nodes belonging to the same tax payment area according to the tax payment area of each node;
and determining that the nodes belonging to the same tax payment area are divided into the same piece.
In a possible implementation manner, the processing module 202 is specifically configured to:
determining N nodes belonging to the same economic industry type according to the economic industry type of each node; n is an integer greater than or equal to 1;
determining that the N nodes are divided into the same piece;
determining M nodes of the tax payment areas in the N nodes, wherein the tax payment areas belong to the same tax payment area; m is an integer greater than or equal to 1 and less than or equal to N;
determining that the M nodes are divided into a same sub-slice of the slices.
In a possible implementation manner, the processing module 202 is specifically configured to:
determining N nodes belonging to the same tax payment area according to the tax payment area of each node; n is an integer greater than or equal to 1;
determining that the N nodes are divided into the same piece;
determining M nodes of the N nodes, wherein the economic industry type belongs to the same economic industry type; m is an integer greater than or equal to 1 and less than or equal to N;
determining that the M nodes are divided into a same sub-slice of the slices.
In a possible implementation, the processing module 202, after determining nodes belonging to the same economic industry type, is further configured to:
acquiring the number of nodes corresponding to each economic industry type;
determining a first economic industry type, wherein the number of nodes corresponding to the first economic industry type exceeds a first preset value;
categorizing all nodes of the first economic industry type by economic industry sub-types included in the first economic industry type;
and dividing the nodes belonging to the same economic industry subtype into the same piece.
In a possible implementation manner, the finance and tax blockchain multi-chain system includes P blockchains, different blockchains correspond to different functions, the fragmentation results of each blockchain are synchronous, and P is an integer greater than or equal to 2.
All relevant contents of each step related to the foregoing embodiment of the block chain fragmentation method may be referred to the functional description of the functional module corresponding to the block chain fragmentation device in the embodiment of the present application, and are not described herein again.
The division of the modules in the embodiments of the present application is schematic, and is only a logical function division, and in actual implementation, there may be another division manner, and in addition, each functional module in each embodiment of the present application may be integrated in one processor, or may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Based on the same inventive concept, the embodiment of the application provides electronic equipment. Referring to fig. 3, the electronic device includes at least one processor 301 and a memory 302 connected to the at least one processor, in this embodiment, a specific connection medium between the processor 301 and the memory 302 is not limited in this application, in fig. 3, the processor 301 and the memory 302 are connected through a bus 300 as an example, the bus 300 is represented by a thick line in fig. 3, and a connection manner between other components is only schematically illustrated and is not limited. The bus 300 may be divided into an address bus, a data bus, a control bus, etc., and is shown in fig. 3 with only one thick line for ease of illustration, but does not represent only one bus or type of bus.
In the embodiment of the present application, the memory 302 stores instructions executable by the at least one processor 301, and the at least one processor 301 may execute the steps included in the aforementioned block chain fragmentation method by executing the instructions stored in the memory 302.
The processor 301 is a control center of the electronic device, and may connect various portions of the electronic device through various interfaces and lines, and perform various functions and process data of the electronic device by operating or executing instructions stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring on the electronic device. Alternatively, the processor 301 may include one or more processing units, and the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 301. In some embodiments, the processor 301 and the memory 302 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 301 may be a general-purpose processor, such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the blockchain fragmentation method disclosed in the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
Memory 302, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 302 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 302 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 302 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
By programming the processor 301, the codes corresponding to the block chain fragmentation method described in the foregoing embodiment may be solidified into a chip, so that the chip can execute the steps of the block chain fragmentation method when running, and how to program the processor 301 is a technique known by those skilled in the art, and will not be described herein again.
Based on the same inventive concept, embodiments of the present application further provide a computer-readable storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the steps of the block chain fragmentation method as described above.
In some possible embodiments, the aspects of the blockchain fragmentation method provided by the present application may also be implemented in the form of a program product, which includes program code for causing the detection device to perform the steps in the blockchain fragmentation method according to various exemplary embodiments of the present application described above in this specification, when the program product is run on an electronic device.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (5)

1. A block chain fragmentation method is applied to a finance and tax block chain multi-chain system, wherein the finance and tax block chain multi-chain system comprises P block chains, different block chains correspond to different functions, fragmentation results of each block chain are synchronous, P is an integer greater than or equal to 2, and each block chain has relevance in service, and the method comprises the following steps:
acquiring attribute information of each node in the block chain, wherein the attribute information comprises the economic industry type and/or tax payment area of the node;
determining nodes belonging to the same economic industry type according to the economic industry type of each node; determining that the nodes belonging to the same economic industry type are divided into the same piece; alternatively, the first and second electrodes may be,
determining nodes belonging to the same tax payment area according to the tax payment area of each node; determining that the nodes belonging to the same tax payment area are divided into the same piece; alternatively, the first and second electrodes may be,
determining N nodes belonging to the same economic industry type according to the economic industry type of each node; n is an integer greater than or equal to 1; determining that the N nodes are divided into the same piece; determining M nodes of the tax payment areas in the N nodes, wherein the tax payment areas belong to the same tax payment area; m is an integer greater than or equal to 1 and less than or equal to N; determining that the M nodes are divided into a same sub-slice of the slices; alternatively, the first and second electrodes may be,
determining N nodes belonging to the same tax payment area according to the tax payment area of each node; n is an integer greater than or equal to 1; determining that the N nodes are divided into the same piece; determining M nodes of the N nodes, wherein the economic industry type belongs to the same economic industry type; m is an integer greater than or equal to 1 and less than or equal to N; determining that the M nodes are divided into a same sub-slice of the slices.
2. The method of claim 1, after determining nodes belonging to the same economic industry type, further comprising:
acquiring the number of nodes corresponding to each economic industry type;
determining a first economic industry type, wherein the number of nodes corresponding to the first economic industry type exceeds a first preset value;
categorizing all nodes of the first economic industry type by economic industry sub-types included in the first economic industry type;
and dividing nodes belonging to the same economic industry subtype into the same piece.
3. The utility model provides a blockchain fragmentation device which characterized in that is applied to finance and taxation blockchain multi-chain system, including P blockchains in the finance and taxation blockchain multi-chain system, different blockchains correspond different functions, the fragmentation result of each blockchain is synchronous, P is the integer that is more than or equal to 2, every blockchain has the associativity in the business, the device includes:
the acquiring module is used for acquiring attribute information of each node in the block chain, wherein the attribute information comprises the economic industry type and/or tax payment area of the node;
the processing module is used for determining the nodes belonging to the same economic industry type according to the economic industry type of each node; determining that the nodes belonging to the same economic industry type are divided into the same piece; alternatively, the first and second electrodes may be,
determining nodes belonging to the same tax payment area according to the tax payment area of each node; determining that the nodes belonging to the same tax payment area are divided into the same piece; alternatively, the first and second electrodes may be,
determining N nodes belonging to the same economic industry type according to the economic industry type of each node; n is an integer greater than or equal to 1; determining that the N nodes are divided into the same piece; determining M nodes of the tax payment areas in the N nodes, wherein the tax payment areas belong to the same tax payment area; m is an integer greater than or equal to 1 and less than or equal to N; determining that the M nodes are divided into a same sub-slice of the slices; alternatively, the first and second electrodes may be,
determining N nodes belonging to the same tax payment area according to the tax payment area of each node; n is an integer greater than or equal to 1; determining that the N nodes are divided into the same piece; determining M nodes of the N nodes, wherein the economic industry type belongs to the same economic industry type; m is an integer greater than or equal to 1 and less than or equal to N; determining that the M nodes are divided into a same sub-slice of the slices.
4. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling the program instructions stored in said memory and executing the steps comprised by the method of claim 1 or 2 according to the obtained program instructions.
5. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method of claim 1 or 2.
CN201911414949.5A 2019-12-31 2019-12-31 Block chain fragmentation method and device, electronic equipment and storage medium Active CN113132433B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911414949.5A CN113132433B (en) 2019-12-31 2019-12-31 Block chain fragmentation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911414949.5A CN113132433B (en) 2019-12-31 2019-12-31 Block chain fragmentation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113132433A CN113132433A (en) 2021-07-16
CN113132433B true CN113132433B (en) 2022-09-02

Family

ID=76770481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911414949.5A Active CN113132433B (en) 2019-12-31 2019-12-31 Block chain fragmentation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113132433B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395357B (en) * 2021-08-16 2021-11-12 支付宝(杭州)信息技术有限公司 Method and device for fragmenting block chain system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106296381A (en) * 2016-08-09 2017-01-04 深圳市淘淘谷信息技术有限公司 A kind of block chain realizes the method that in process of exchange, tax revenue calculates
WO2019032891A1 (en) * 2017-08-09 2019-02-14 Visa International Service Association Verification of interactions system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106296381A (en) * 2016-08-09 2017-01-04 深圳市淘淘谷信息技术有限公司 A kind of block chain realizes the method that in process of exchange, tax revenue calculates
WO2019032891A1 (en) * 2017-08-09 2019-02-14 Visa International Service Association Verification of interactions system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Short Paper: Service-Oriented Sharding for Blockchains";Adem Efe Gencer等;《International Financial Cryptography Association 2017》;20171231;第2节 *
"The Blockchain for Domain based Static Sharding";Hyunkyung Yoo等;《2018 17th IEEE International Conference On Trust, Security And Privacy In Computing And Communications/12th IEEE International Conference On Big Data Science And Engineering》;20181231;第I、III节 *

Also Published As

Publication number Publication date
CN113132433A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US10115058B2 (en) Predictive modeling
US8229973B2 (en) Infrastructure and architecture for development and execution of predictive models
CN112669155A (en) Transaction distribution execution method based on block chain, device server and storage medium
CN111179066B (en) Batch processing method and device for business data, server and storage medium
CN110110269B (en) Event subscription method and device based on block chain
CN109471718B (en) Computing resource configuration method, device, equipment and medium based on face recognition
CN113132433B (en) Block chain fragmentation method and device, electronic equipment and storage medium
CN110599133B (en) Data processing method, device and storage medium based on blockchain network
CN102347851B (en) Event processing method and server thereof
CN111552738B (en) Block chain ecological system and block chain uplink method based on Internet of things
CN106204263B (en) Transaction progress control method and device
CN112783989A (en) Data processing method and device based on block chain
CN106708869B (en) Group data processing method and device
Wang et al. Logistics management system based on permissioned blockchains and RFID technology
CN109284268A (en) A kind of method, system and the electronic equipment of fast resolving log
CN114331729A (en) Data processing method and device of double-block chain architecture in data bank scene
CN113626516A (en) Data increment synchronization method and system
Wen [Retracted] The Macroreform of the Electronics Manufacturing Industry under the Industry 4.0 Wave Based on Financial Performance Indicators
CN113159871A (en) Price checking method, price checking management system and storage medium
CN112395277B (en) Vehicle information screening method, device, equipment and storage medium
CN108961039A (en) Transaction processing method, apparatus and system
CN107798554A (en) Cleaning method, storage medium and the server of breakpoint list
CN110349025B (en) Method and device for preventing loss of contract assets based on non-cost transaction output
CN116703505A (en) Order information judging method and device
Ge et al. A dataflow blockchain platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant