CN-120768522-B - Enterprise data processing method and system based on block chain
Abstract
The invention provides a block chain-based enterprise data processing method and system, which relate to a data processing technology, and comprise the steps that a block server analyzes enterprise attributes in block nodes to generate a right relation chain corresponding to the block nodes, wherein the right relation chain is of a unidirectional attribute and the right is set from low to high; the block server determines a first relation chain, a first decomposition mode and a first calculation mode based on the data acquisition request after receiving the data acquisition request of the first block node, obtains a second relation chain after decomposing the first relation chain based on the first decomposition mode, assembles different second relation chains to generate a fusion data chain, generates a request instruction, distributes the request instruction to the fusion node in the fusion data chain, feeds back the request instruction to the block server based on hash encryption, and calculates the data processing index based on the first calculation mode.
Inventors
- Jing qiong
- JIN HAOYANG
- LIN XINCHEN
- HAN LU
- LI YA
Assignees
- 兵器装备集团财务有限责任公司
Dates
- Publication Date
- 20260512
- Application Date
- 20250624
Claims (8)
- 1. A blockchain-based enterprise data processing method, comprising: The block server analyzes enterprise attributes in the block nodes to generate authority relation chains corresponding to the block nodes, wherein the authority relation chains are unidirectional attributes and the authorities are set from low to high; After receiving a data acquisition request of a first block node, the block server determines a first relation chain, a first decomposition mode and a first calculation mode based on the data acquisition request; decomposing the first relation chain based on the first decomposition mode to obtain a second relation chain, and assembling different second relation chains to generate a fusion data chain; Generating a request instruction, distributing the request instruction to a fusion node in a fusion data chain, feeding back the request instruction to a block server based on hash encryption, and calculating by the block server based on a first calculation mode to obtain a data processing index; the block server analyzes enterprise attributes in block nodes to generate a right relation chain corresponding to the block nodes, wherein the right relation chain is of a unidirectional attribute and the right is set from low to high, and the block server comprises: Extracting the stakeholder information of the enterprise attribute of each block node, and generating a stakeholder label and a node type of each block node according to the stakeholder information; Generating a corresponding authority relation chain by fusing and connecting nodes of the corresponding blocks based on the stockholder labels and the node types; After receiving a data acquisition request of a first block node, the block server determines a first relation chain, a first decomposition mode and a first calculation mode based on the data acquisition request, and the block server comprises: The block server obtains a first relation chain by calling a right relation chain corresponding to the first block node when receiving a data acquisition request of the first block node; extracting the attribute of the data acquisition request to determine a corresponding first decomposition mode, wherein different attributes have preset first decomposition modes; The first calculation mode comprises a combination of different machine learning algorithms, and the different machine learning algorithms have different preset fusion weights.
- 2. The blockchain-based enterprise data processing method of claim 1, wherein, The step of extracting the stakeholder information of the enterprise attribute of each block node and generating the stakeholder label of each block node according to the stakeholder information comprises the following steps: classifying and processing the stakeholder labels to obtain personal labels and enterprise labels, wherein each block node corresponds to at least one personal label and/or enterprise label; If the block nodes are judged to have personal labels and are not corresponding to the personal labels of other block nodes, the corresponding block nodes are used as chain termination nodes; If the personal label of the block node is judged to correspond to the personal labels of other block nodes, the corresponding block node is used as a chain starting node; If the enterprise labels of the block nodes are judged to correspond to other block nodes or enterprise labels of other block nodes, the corresponding block nodes are used as chain starting nodes.
- 3. The blockchain-based enterprise data processing method of claim 2, wherein, If the block nodes are judged to have enterprise labels and are not corresponding to enterprise labels of other block nodes, the corresponding block nodes are used as chain termination nodes; If the enterprise labels of the block nodes are judged to correspond to the enterprise labels of other block nodes, the corresponding block nodes are used as chain starting nodes; if the personal label of the block node is judged to correspond to the personal labels of other block nodes, the corresponding block node is used as a chain starting node.
- 4. A blockchain-based enterprise data processing method according to any of claims 2 or 3, characterized in that, The corresponding authority relation chain is generated by fusing and connecting the nodes of the corresponding blocks based on the stakeholder labels and the node types, and the method comprises the following steps: If the enterprise labels of one block node and the other block node are the same, connecting the two block nodes, and setting the chain of the block node with the corresponding enterprise label towards the corresponding block node; If the personal label of one block node is judged to be the same as the personal label of the other block node, generating a personal relay node, and connecting the personal relay node with the two block nodes respectively and enabling chains of the two block nodes to face the corresponding personal relay node; After judging that other chain starting nodes exist at the front part of any chain starting node, taking the corresponding chain starting node as a chain relay node; And fusing the chain starting node, the chain relay node, the chain ending node and the personal label to obtain the authority relationship chain.
- 5. The blockchain-based enterprise data processing method of claim 4, wherein, The right relation chain is obtained by fusing the chain starting node, the chain relay node, the chain ending node and the personal tag, and comprises the following steps: performing secondary connection on every two connected nodes to obtain a right relation chain formed by all directly connected or indirectly connected nodes; And determining the node corresponding to the personal label in the authority relation chain to generate a personal relation node, and extracting the share information corresponding to each stakeholder under the corresponding chain.
- 6. The blockchain-based enterprise data processing method of claim 1, wherein, The first relation chain is decomposed based on a first decomposition mode to obtain a second relation chain, and the second relation chains are assembled to generate a fusion data chain, which comprises the following steps: If the first relation chain is judged to be a plurality of, selecting the first relation chain with the most nodes as a main chain and other first relation chains as slave chains; and removing the chain node corresponding to the first block node in the chain as a decomposition point to obtain a decomposition chain, and connecting other chain nodes connected with the decomposition point in the decomposition chain with the chain node corresponding to the first block node in the main chain to obtain a fusion data chain.
- 7. The blockchain-based enterprise data processing method of claim 6, wherein, The generation request instruction is distributed to a fusion node in a fusion data chain and fed back to a block server based on hash encryption, and the block server obtains a data processing index based on a first calculation mode after calculation, and the method comprises the following steps: determining enterprise information of different chain dimensions corresponding to the data acquisition request, and obtaining fused data chains based on the enterprise information of the different chain dimensions to decompose and perform hash calculation to obtain multi-level hash keys of different fused nodes; Encrypting enterprise information of fusion nodes at different positions based on a multi-level hash key, wherein each fusion node has different dimensions in a fusion data chain; The block server receives the enterprise information and inputs the enterprise information into the combination of different machine learning algorithms, and the data processing index is obtained based on different preset fusion weights through weighted fusion calculation.
- 8. A blockchain-based enterprise data acquisition processing system, comprising: the generation module is used for enabling the block server to analyze enterprise attributes in the block nodes to generate a right relation chain corresponding to the block nodes, wherein the right relation chain is of a unidirectional attribute and the right is set from low to high; The determining module is used for enabling the block server to determine a first relation chain, a first decomposition mode and a first calculation mode based on the data acquisition request after receiving the data acquisition request of the first block node; The fusion module is used for enabling the first relation chain to be decomposed based on the first decomposition mode to obtain a second relation chain, and generating a fusion data chain after assembling different second relation chains; The computing module is used for distributing the generated request instruction to the fusion node in the fusion data chain and feeding back the generated request instruction to the block server based on hash encryption, and the block server obtains the data processing index after computing based on the first computing mode; the block server analyzes enterprise attributes in block nodes to generate a right relation chain corresponding to the block nodes, wherein the right relation chain is of a unidirectional attribute and the right is set from low to high, and the block server comprises: Extracting the stakeholder information of the enterprise attribute of each block node, and generating a stakeholder label and a node type of each block node according to the stakeholder information; Generating a corresponding authority relation chain by fusing and connecting nodes of the corresponding blocks based on the stockholder labels and the node types; After receiving a data acquisition request of a first block node, the block server determines a first relation chain, a first decomposition mode and a first calculation mode based on the data acquisition request, and the block server comprises: The block server obtains a first relation chain by calling a right relation chain corresponding to the first block node when receiving a data acquisition request of the first block node; extracting the attribute of the data acquisition request to determine a corresponding first decomposition mode, wherein different attributes have preset first decomposition modes; The first calculation mode comprises a combination of different machine learning algorithms, and the different machine learning algorithms have different preset fusion weights.
Description
Enterprise data processing method and system based on block chain Technical Field The present invention relates to data processing technology, and in particular, to a block chain-based enterprise data processing method and system. Background The block chain (English name: blockchain or block chain) is a block chain type storage, tamper-proof, safe and reliable decentralized distributed account book, which combines the technologies of distributed storage, point-to-point transmission, consensus mechanism, cryptography and the like, and records transaction and information through a continuously growing data block chain (Blocks) to ensure the safety and transparency of data. In the data processing process of multiple enterprises, the enterprise data is confidential data, double security and authenticity guarantee are needed, and the blockchain has the above properties, but the prior art cannot effectively collect and process data of multiple enterprises based on the blockchain. Disclosure of Invention The embodiment of the invention provides an enterprise data processing method and system based on a blockchain, which can solve the technical problems, effectively collect and process data of a plurality of enterprises based on the blockchain, realize corresponding relevance analysis and process the data of the enterprise chain on the premise of ensuring that the data are true and effective. In a first aspect of an embodiment of the present invention, there is provided a blockchain-based enterprise data processing method, including: The block server analyzes enterprise attributes in the block nodes to generate authority relation chains corresponding to the block nodes, wherein the authority relation chains are unidirectional attributes and the authorities are set from low to high; After receiving a data acquisition request of a first block node, the block server determines a first relation chain, a first decomposition mode and a first calculation mode based on the data acquisition request; decomposing the first relation chain based on the first decomposition mode to obtain a second relation chain, and assembling different second relation chains to generate a fusion data chain; And generating a request instruction, distributing the request instruction to a fusion node in a fusion data chain, feeding back the request instruction to a block server based on hash encryption, and calculating by the block server based on a first calculation mode to obtain a data processing index. Optionally, in one possible implementation manner of the first aspect, the block server analyzes enterprise attributes in a block node to generate a rights relation chain corresponding to the block node, where the rights relation chain is a unidirectional attribute and rights are set from low to high, and the method includes: Extracting the stakeholder information of the enterprise attribute of each block node, and generating a stakeholder label and a node type of each block node according to the stakeholder information; And generating a corresponding authority relation chain based on the fusion connection of the stakeholder labels and the node types to the nodes of the corresponding blocks. Optionally, in one possible implementation manner of the first aspect, the extracting stakeholder information of each block node enterprise attribute, generating a stakeholder label of each block node according to the stakeholder information includes: classifying and processing the stakeholder labels to obtain personal labels and enterprise labels, wherein each block node corresponds to at least one personal label and/or enterprise label; If the block nodes are judged to have personal labels and are not corresponding to the personal labels of other block nodes, the corresponding block nodes are used as chain termination nodes; If the personal label of the block node is judged to correspond to the personal labels of other block nodes, the corresponding block node is used as a chain starting node; If the enterprise labels of the block nodes are judged to correspond to other block nodes or enterprise labels of other block nodes, the corresponding block nodes are used as chain starting nodes. Optionally, in one possible implementation manner of the first aspect, if it is determined that the block node has only an enterprise tag and does not correspond to enterprise tags of other block nodes, the corresponding block node is used as a chain termination node; If the enterprise labels of the block nodes are judged to correspond to the enterprise labels of other block nodes, the corresponding block nodes are used as chain starting nodes; if the personal label of the block node is judged to correspond to the personal labels of other block nodes, the corresponding block node is used as a chain starting node. Optionally, in one possible implementation manner of the first aspect, the generating the corresponding authority relationship chain based on the stakeholder label