Business data processing method, device and equipment based on alliance chain
By using alliance chain technology for distributed storage and hash value verification during data processing, the problem of poor security in data processing is solved, high data availability and security is achieved, and disaster recovery backup is supported across cloud and cross-chain.
Patent Information
- Application Number
- CN202411801290.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-04-25
AI Technical Summary
In the data processing process, the prior art has the risk of data leakage, data tampering and illegal acquisition of data files, resulting in poor security of data processing.
The business data processing method based on the alliance chain is adopted, and by obtaining business data and its attribute information, calculating hash values, and storing data to the main chain and sub-chain of the alliance chain network, ensuring that the distributed storage and modification of data requires consensus from multiple nodes to increase the security of data.
It improves data availability and disaster recovery capabilities, enhances data security and integrity, prevents malicious attacks and data leakage, and realizes important data disaster recovery backup across cloud and cross-chain.
Smart Images

Figure CN119885288A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a business data processing method, device and equipment based on an alliance chain. Background Art
[0002] With the rapid development of information technology, data security and integrity have become key issues of concern to all industries. In particular, in the fields of finance, medical care, supply chain management, etc., data reliability and anti-tampering capabilities are crucial. Existing technologies use solutions such as local backup, remote backup, and "two-site three-center" backup. However, in the process of data disaster recovery backup and cross-domain transfer, the above three solutions have the risk of data leakage, data tampering, and illegal acquisition of data files, resulting in poor security in the data processing process. Summary of the invention
[0003] In view of this, the present invention provides a business data processing method, device and equipment based on alliance chain to solve the problem of poor data processing security.
[0004] In a first aspect, the present invention provides a business data processing method based on a consortium chain, the method comprising:
[0005] Acquire multiple pieces of business data and attribute information of the multiple pieces of business data of the business system, where the attribute information includes a first hash value;
[0006] Based on the nodes of the alliance chain network, multiple business data and attribute information of multiple business data are stored in the main chain and sub-chain of the alliance chain network;
[0007] Respond to the front-end's query request for any business data and obtain business data from the consortium chain network;
[0008] Calculate a second hash value of the business data;
[0009] Based on the first hash value and the second hash value of the business data, it is determined whether to send the business data to the front end.
[0010] The business data processing method based on alliance chain provided by the embodiment of the present invention obtains multiple business data from the business system and calculates the first hash value of each business data for subsequent data integrity verification. Based on the nodes of the alliance chain network, the business data and its attribute information are stored in the main chain and sub-chain of the alliance chain network. Through distributed storage, even if some nodes fail, other nodes can still provide data, thereby improving the availability and disaster recovery capability of the data. The storage and modification of data require the consensus of multiple nodes, which increases the difficulty of illegal tampering of the data and improves the security of the data. When the front-end user initiates a query request for a certain business data, the business data is retrieved and obtained from the alliance chain network, and the second hash value of the business data obtained from the alliance chain network is recalculated, so that the initial first hash value and the recalculated second hash value are used to verify whether the business data has been tampered with during the processing process, thereby ensuring the integrity of the data and ensuring that only data that has not been tampered with will be sent to the front end, thereby preventing malicious attacks and data leakage, improving the security and integrity of the data, and being able to achieve cross-cloud and cross-chain disaster recovery backup of important data.
[0011] In an optional implementation, the alliance chain network includes multiple data file servers; based on the nodes of the alliance chain network, multiple business data and attribute information of multiple business data are stored in the main chain and sub-chain of the alliance chain network, including:
[0012] For any business data, based on the main chain node of the alliance chain network, the smart contract application programming interface is called to store the first hash value in the attribute information of the business data to the main chain of the alliance chain network;
[0013] Store business data in the data file server of the main chain of the alliance chain network;
[0014] Slice the business data and encrypt it to obtain multiple slice data;
[0015] Based on the sub-chain nodes of the alliance chain network, the smart contract application programming interface is called to store multiple slice data separately in the data file servers of multiple sub-chains of the alliance chain network.
[0016] The business data processing method based on alliance chain provided by the embodiment of the present invention uses the smart contract application programming interface of the main chain node of the alliance chain network to store the first hash value of each business data in the main chain of the alliance chain network, thereby enhancing the storage security of the data, storing the complete business data in the data file server of the main chain to facilitate rapid retrieval and access, slicing the business data and encrypting each slice to generate multiple slice data, which are stored in the data file servers of multiple sub-chains of the alliance chain network respectively. Even if part of the data is leaked, the complete business data cannot be restored, thereby improving the security of the data.
[0017] In an optional embodiment, the method further includes:
[0018] For any slice data, the index information of the slice data is stored in the subchain where the slice data is located.
[0019] The alliance chain-based business data processing method provided by the embodiment of the present invention stores the index information of each slice data in the corresponding sub-chain, which facilitates the rapid positioning and retrieval of slice data to improve data query efficiency.
[0020] In an optional implementation, obtaining business data from the alliance chain network includes:
[0021] Based on the index information of multiple slices of data, multiple slices of business data are obtained from multiple subchains of the alliance chain network;
[0022] Multiple slice data are decrypted and spliced together to obtain business data.
[0023] The business data processing method based on the alliance chain provided by the embodiment of the present invention obtains multiple slice data of the business data from multiple sub-chains of the alliance chain network according to the index information of the slice data, decrypts the obtained multiple slice data, and then splices them in sequence to restore them into complete business data. Through decryption and splicing, efficient recovery of business data is achieved.
[0024] In an optional implementation, determining whether to send the business data to the front end based on the first hash value and the second hash value of the business data includes:
[0025] When the first hash value and the second hash value of the business data are consistent, the business data is sent to the front end;
[0026] When the first hash value and the second hash value of the business data are inconsistent, the business data is not sent to the front end, and an alarm message is sent to the front end.
[0027] The alliance chain-based business data processing method provided by the embodiment of the present invention calculates the initial first hash value of the business data before storing it, and calculates the second hash value again after the business data is acquired and restored from the alliance chain network, and compares whether the first hash value and the second hash value are consistent. When the two hash values are consistent, it indicates that the business data has not been tampered with during the processing process, and the business data can be safely sent to the front end. When the two hash values are inconsistent, it indicates that the business data may be tampered with. At this time, an alarm message is sent to the front end, which improves the security of the data processing process and ensures the reliability and security of data query.
[0028] In an optional implementation, the attribute information of any business data also includes a decentralized identity, a data record primary key, and a data generation timestamp.
[0029] The alliance chain-based business data processing method provided in the embodiment of the present invention ensures the autonomy and privacy protection of user identities and improves data security through decentralized identities. It ensures the uniqueness of each business data through the data record primary key, facilitates rapid retrieval and management, helps trace the generation time of data through data generation timestamps, realizes data sorting and timeliness management, and improves the security and reliability of the data processing process through multiple attribute information of business data.
[0030] In a second aspect, the present invention provides a business data processing device based on a consortium chain, the device comprising:
[0031] A first acquisition module, used to acquire multiple business data and attribute information of the multiple business data from the business system, where the attribute information includes a first hash value;
[0032] A first storage module is used to store multiple business data and attribute information of multiple business data in the main chain and sub-chain of the alliance chain network based on the nodes of the alliance chain network;
[0033] The second acquisition module is used to obtain business data from the alliance chain network in response to the query request of the front end for any business data;
[0034] A calculation module, used to calculate a second hash value of the business data;
[0035] The processing module is used to determine whether to send the business data to the front end based on the first hash value and the second hash value of the business data.
[0036] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the business data processing method based on the alliance chain of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0037] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the business data processing method based on an alliance chain according to the first aspect or any corresponding embodiment thereof.
[0038] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, which are used to enable a computer to execute the business data processing method based on the alliance chain according to the above-mentioned first aspect or any corresponding embodiment. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 is a flowchart of a business data processing method based on a consortium chain according to an embodiment of the present invention;
[0041] Figure 2 is a flowchart of another business data processing method based on the alliance chain according to an embodiment of the present invention;
[0042] Figure 3 is a flowchart of another business data processing method based on the alliance chain according to an embodiment of the present invention;
[0043] Figure 4 is a structural block diagram of a business data processing device based on a consortium chain according to an embodiment of the present invention;
[0044] Figure 5 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0046] In the process of data backup and cross-domain data transfer, there are risks of data leakage, data tampering, and illegal acquisition of data files, which places high technical requirements on the security of the data processing process. Data disaster recovery backup refers to a data protection measure taken to prevent data loss or damage due to natural disasters, hardware failures, human errors, etc. It usually involves copying data to multiple geographically dispersed storage devices or systems so that when the main system fails, data can be quickly restored from the backup system. Cross-domain transfer refers to the process of transmitting and exchanging data between different organizations, systems or geographical regions. This usually involves the transmission of data under different network environments, different security policies, and different laws and regulations. When related technologies perform data backup and cross-domain transfer, data leakage and data tampering are prone to occur, which affects the trustworthiness and authenticity of data in multi-cloud environments and cross-domain transfer links. The business data processing method based on alliance chain provided by the embodiment of the present invention stores the business data and its attribute information in the main chain and sub-chain of the alliance chain network through the nodes based on the alliance chain network, thereby improving the availability and disaster recovery capability of the data. When the front-end user initiates a query request for a certain business data, the initial first hash value and the recalculated second hash value are used to verify whether the business data has been tampered with during the processing process, thereby ensuring the integrity of the data and ensuring that only the data that has not been tampered with is sent to the front end, thereby preventing malicious attacks and data leakage, improving the security and integrity of the data, and being able to realize cross-cloud and cross-chain disaster recovery backup of important data.
[0047] According to an embodiment of the present invention, an embodiment of a business data processing method based on a consortium chain is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0048] In this embodiment, a business data processing method based on alliance chain is provided, which can be used in terminals. Figure 1 is a flow chart of a business data processing method based on a consortium chain according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0049] Step S101, obtain multiple business data and attribute information of multiple business data of the business system, the attribute information includes a first hash value. Specifically, the business system can be an MES system (Manufacturing Execution System), a finished product high-bay warehouse system, a supply chain system, a data middle platform, a financial management system, a material procurement system, a logistics management system, a digital warehouse system or a raw material management system, etc. If the data of the business system is leaked or tampered with, it will cause significant impact and losses, so it is necessary to improve the security of the business data processing process. When obtaining the business data of the business system, the incremental business data of the previous working day can be obtained from the data interface regularly and regularly, or the business data can be obtained according to the request, and the embodiment of the present invention does not limit this. After obtaining the business data, the attribute information of the business data is obtained to provide support for the data processing process.
[0050] Step S102, based on the nodes of the alliance chain network, multiple business data and attribute information of multiple business data are stored in the main chain and sub-chain of the alliance chain network. Specifically, the node is an important component of blockchain technology and is responsible for maintaining and operating the entire blockchain network. The alliance chain used in the embodiment of the present invention belongs to the blockchain, so the nodes of the alliance chain network also have the above functions, and the alliance chain network nodes also have the function of data storage. Since the nodes in the alliance chain network can be distributed in different geographical locations and organizations, the business data is transmitted and synchronized between these nodes, realizing cross-domain data flow. By storing the business data and its attribute information in the main chain and sub-chain of the alliance chain network, this distributed storage method can ensure that even if a node fails, other nodes can still provide data, thereby improving the availability and disaster recovery capabilities of the data. In addition, due to the distributed storage of business data, the storage and modification of data requires the consensus of multiple nodes, which further enhances the reliability and disaster recovery capabilities of the data.
[0051] Step S103, in response to the query request of the front end for any business data, obtain the business data from the alliance chain network. Specifically, when all the business data of the business system are distributed and stored in the alliance chain network, the user can query the business data through the front end. More specifically, after the terminal receives the query request of the front end for any business data, it obtains the business data from the alliance chain network. Since the business data may be tampered with during the processing process, if the tampered business data is fed back to the front end, it may cause great losses. Therefore, it is necessary to judge whether the re-acquired business data has been tampered with.
[0052] Step S104, calculate the second hash value of the business data. Specifically, the hash algorithm is an algorithm that converts data of any length into a fixed-length output. The same data always produces the same hash value, and different input data is almost impossible to produce the same hash value. The hash algorithm has the characteristics of fixed output length, fast calculation speed, and hash value is difficult to forge. The hash algorithm can use SHA-256 or MD5, etc. The length of the hash value is fixed, which can be 128 bits or 256 bits. In other words, if the business data is tampered with during the processing, its hash value is impossible to be consistent with the initial first hash value. Therefore, when the terminal re-acquires the business data from the alliance chain network, the second hash value of the business data is calculated by the hash function, so that the business data is verified by whether the hash value changes. Whether it has been tampered with.
[0053] Step S105, based on the first hash value and the second hash value of the business data, determine whether to send the business data to the front end. Specifically, by comparing whether the first hash value and the second hash value are consistent, determine whether the business data has been tampered with, thereby ensuring that the business data sent to the front end is complete and has not been tampered with, and preventing potential security risks.
[0054] The business data processing method based on alliance chain provided by the embodiment of the present invention obtains multiple business data from the business system and calculates the first hash value of each business data for subsequent data integrity verification. Based on the nodes of the alliance chain network, the business data and its attribute information are stored in the main chain and sub-chain of the alliance chain network. Through distributed storage, even if some nodes fail, other nodes can still provide data, thereby improving the availability and disaster recovery capability of the data. The storage and modification of data require the consensus of multiple nodes, which increases the difficulty of illegal tampering of the data and improves the security of the data. When the front-end user initiates a query request for a certain business data, the business data is retrieved and obtained from the alliance chain network, and the second hash value of the business data obtained from the alliance chain network is recalculated, so that the initial first hash value and the recalculated second hash value are used to verify whether the business data has been tampered with during the processing process, thereby ensuring the integrity of the data and ensuring that only data that has not been tampered with will be sent to the front end, thereby preventing malicious attacks and data leakage, improving the security and integrity of the data, and being able to achieve cross-cloud and cross-chain disaster recovery backup of important data.
[0055] In this embodiment, a business data processing method based on a consortium chain is provided, which can be used for the above-mentioned terminal. Figure 2 is a flowchart of another business data processing method based on the alliance chain according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0056] Step S201, obtain multiple business data and attribute information of the business data of the business system, the attribute information includes a first hash value. For details, see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0057] In some optional implementations, the attribute information of any business data also includes a decentralized identity, a data record primary key, and a data generation timestamp. Specifically, a decentralized identity (DID) is a decentralized identity identifier. DID is an autonomous, distributed, verifiable, and persistent identity identifier. The process of obtaining the DID of business data is to generate a public-private key pair, and then package the public key and other identity information together to form a DID document. The DID document will be stored in a decentralized alliance chain and will be assigned a unique DID. The user can use the private key to control the DID, such as updating or revoking it. The data record primary key is one or more fields used to uniquely identify each business data. The data generation timestamp refers to the total number of seconds from the set initialization time to the present. Ensuring the uniqueness of each business data through the data record primary key can help optimize data query and association operations, and help trace the generation time of business data through the data generation timestamp, supporting data backtracking, sorting, version control, and auditing requirements.
[0058] Step S202, based on the nodes of the alliance chain network, multiple business data and attribute information of multiple business data are stored in the main chain and sub-chain of the alliance chain network, and the alliance chain network includes multiple data file servers.
[0059] Specifically, the above step S202 includes:
[0060] Step S2021, for any business data, based on the main chain node of the alliance chain network, call the smart contract application programming interface to store the first hash value in the attribute information of the business data to the main chain of the alliance chain network. Specifically, a smart contract is a computer protocol designed to disseminate, verify or execute a contract in an information-based manner. The smart contract application programming interface (Smart contract Application Programming Interface, smart contract API) is based on the smart contract and combines information fusion and data sharing to form an API interface. The main chain node passes the first hash value of the business data to the smart contract by calling the smart contract API, and the smart contract stores the received first hash value on the main chain of the alliance chain network, ensuring the uniqueness and integrity of the data, while providing a basis for data traceability.
[0061] Step S2022, store the business data to the data file server of the main chain of the alliance chain network. Specifically, the business data can be uploaded to the data file server of the main chain of the alliance chain network in JSON format. Optionally, after the business data is uploaded, the data file server returns a unique file identifier and stores the file identifier in the smart contract for subsequent query and access to the business data.
[0062] Step S2023, slice the business data and encrypt it to obtain multiple slices of data. Specifically, in order to further ensure the security of the data processing process, the business data can be sliced and encrypted so that when any slice of data is tampered with, it cannot directly affect other slices of data. More specifically, the business data is divided into multiple slices, and the size of each slice can be set according to actual needs. For example, data = "patent application" is divided into data1 = "patent application" and data2 = "application". The sliced data can be encrypted using a symmetric encryption algorithm or an asymmetric encryption algorithm.
[0063] Step S2024, based on the subchain node of the alliance chain network, call the smart contract application programming interface to store multiple slice data in the data file servers of multiple subchains of the alliance chain network. Specifically, the alliance chain network usually has multiple subchains, each of which is responsible for storing part of the data. The subchain node passes the slice data to the smart contract by calling the smart contract API, and the smart contract stores the received slice data in the data file server of the subchain of the alliance chain network. It should be noted that the number of slice data may not be equal to the number of subchains, but it is necessary to ensure that the number of subchains is greater than the number of slice data, so that each slice data is stored on a different subchain, further improving data security.
[0064] Step S2025: For any slice data, store the index information of the slice data in the subchain where the slice data is located. Specifically, store the index information of each slice data in the corresponding subchain. The index information generally includes the file identifier, slice number, slice size, hash value, storage location and timestamp of the slice data, which helps the management and retrieval efficiency of the slice data while ensuring the integrity and security of the data.
[0065] Step S203, in response to the front-end query request for any business data, obtain business data from the alliance chain network.
[0066] Specifically, the above step S203 includes:
[0067] Step S2031, based on the index information of the multiple slice data, obtain the multiple slice data of the business data from the multiple sub-chains of the alliance chain network. Specifically, call the sub-chain smart contract through the smart contract API to obtain the index information of the slice data, use the file identifier in the index information to access the data file server of the sub-chain, and download the slice data.
[0068] Step S2032: Decrypt the multiple slice data and then splice them to obtain service data. Specifically, use the same key as that used for encryption to decrypt each slice data, and splice the decrypted slice data in sequence according to the slice number in the index information to restore the original service data.
[0069] Step S204, calculate the second hash value of the business data. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.
[0070] Step S205: Based on the first hash value and the second hash value of the business data, determine whether to send the business data to the front end.
[0071] Specifically, the above step S205 includes:
[0072] Step S2051, when the first hash value and the second hash value of the business data are consistent, the business data is sent to the front end. Specifically, if the initial first hash value and the second hash value calculated after re-acquisition are consistent, it means that the business data has not been tampered with during the data processing process, and the business data can be sent to the front end to meet the user's query needs.
[0073] Step S2052: If the first hash value and the second hash value of the business data are inconsistent, the business data is not sent to the front end, and an alarm message is sent to the front end. Specifically, if the initial first hash value and the second hash value calculated after re-acquisition are inconsistent, it means that the business data has been tampered with during the data processing process. At this time, there is no need to send the business data to the front end, but an alarm message is sent to prompt that the business data has been tampered with, thereby improving the security of the data processing process and ensuring the reliability and security of data query.
[0074] In some optional embodiments, Figure 3 is a flowchart of another business data processing method based on the alliance chain according to an embodiment of the present invention. Figure 3As shown, the terminal obtains the business data and attribute information of the business system from the front end, and stores it on the main chain of the alliance chain network. Among them, the business data is stored in the data file server of the main chain. Then, the business data is sliced and encrypted to obtain slice data, and the slice data is stored in the data file server of the sub-chain respectively. At the same time, the index information of the slice data is stored on the sub-chain. In response to the query request sent by the user through the front end, multiple slice data are obtained according to the index information of the slice data, and the business data is obtained after decryption and splicing. Then, based on the initial first hash value of the business data and the second hash value calculated after re-acquisition, it is determined whether the business data has been tampered with, so as to determine whether to send the business data to the front end.
[0075] The business data processing method based on alliance chain provided by the embodiment of the present invention obtains multiple business data from the business system and calculates the first hash value of each business data for subsequent data integrity verification. Based on the nodes of the alliance chain network, the business data and its attribute information are stored in the main chain and sub-chain of the alliance chain network. Through distributed storage, even if some nodes fail, other nodes can still provide data, thereby improving the availability and disaster recovery capability of the data. The storage and modification of data require the consensus of multiple nodes, which increases the difficulty of illegal tampering of the data and improves the security of the data. When the front-end user initiates a query request for a certain business data, the business data is retrieved and obtained from the alliance chain network, and the second hash value of the business data obtained from the alliance chain network is recalculated, so that the initial first hash value and the recalculated second hash value are used to verify whether the business data has been tampered with during the processing process, thereby ensuring the integrity of the data and ensuring that only data that has not been tampered with will be sent to the front end, thereby preventing malicious attacks and data leakage, improving the security and integrity of the data, and being able to achieve cross-cloud and cross-chain disaster recovery backup of important data.
[0076] In this embodiment, a business data processing device based on a consortium chain is also provided, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0077] This embodiment provides a business data processing device based on alliance chain, such as Figure 4 As shown, including:
[0078] The first acquisition module 401 is used to acquire multiple business data and attribute information of the multiple business data of the business system, where the attribute information includes a first hash value.
[0079] The first storage module 402 is used to store multiple business data and attribute information of multiple business data in the main chain and sub-chain of the alliance chain network based on the nodes of the alliance chain network.
[0080] The second acquisition module 403 is used to obtain business data from the alliance chain network in response to a query request from the front end for any business data.
[0081] The calculation module 404 is used to calculate the second hash value of the business data.
[0082] The processing module 405 is used to determine whether to send the business data to the front end based on the first hash value and the second hash value of the business data.
[0083] In some optional implementations, the alliance chain network includes multiple data file servers; the first storage module 402 includes:
[0084] The first storage unit is used to call the smart contract application programming interface for any business data based on the main chain node of the alliance chain network, and store the first hash value in the attribute information of the business data to the main chain of the alliance chain network.
[0085] The second storage unit is used to store the business data in the data file server of the main chain of the alliance chain network.
[0086] The slicing unit is used to slice the business data and then encrypt it to obtain multiple slice data.
[0087] The third storage unit is used to call the smart contract application programming interface based on the sub-chain node of the alliance chain network to store multiple slice data respectively in the data file servers of multiple sub-chains of the alliance chain network.
[0088] In some optional embodiments, the device further comprises:
[0089] The second storage module is used to store the index information of any slice data to the subchain where the slice data is located.
[0090] In some optional implementations, the second acquisition module 403 includes:
[0091] The acquisition unit is used to obtain multiple slices of business data from multiple sub-chains of the alliance chain network based on the index information of the multiple slices of data.
[0092] The splicing unit is used to decrypt multiple slice data and then splice them to obtain business data.
[0093] In some optional implementations, the processing module 405 includes:
[0094] The first sending unit is used to send the business data to the front end when the first hash value and the second hash value of the business data are consistent.
[0095] The second sending unit is used for not sending the business data to the front end when the first hash value and the second hash value of the business data are inconsistent, and sending alarm information to the front end.
[0096] In some optional implementations, the attribute information of any business data also includes a decentralized identity, a data record primary key, and a data generation timestamp.
[0097] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0098] The business data processing device based on the alliance chain in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0099] The embodiment of the present invention also provides a computer device having the above Figure 4 The business data processing device based on the alliance chain is shown.
[0100] See also Figure 5 , Figure 5 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0101] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0102] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0103] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0104] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0105] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0106] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0107] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0108] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0109] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A business data processing method based on alliance chain, characterized in that: The method comprises: Acquire multiple pieces of business data of a business system and attribute information of the multiple pieces of business data, wherein the attribute information includes a first hash value; Based on the nodes of the alliance chain network, the plurality of business data and the attribute information of the plurality of business data are stored in the main chain and the sub-chain of the alliance chain network; In response to a query request from the front end for any business data, obtaining the business data from the alliance chain network; Calculating a second hash value of the business data; Based on the first hash value and the second hash value of the business data, it is determined whether to send the business data to the front end.
2. The method according to claim 1, characterized in that: The alliance chain network includes a plurality of data file servers; the node based on the alliance chain network stores the plurality of business data and the attribute information of the plurality of business data in the main chain and the sub-chain of the alliance chain network, including: For any business data, based on the main chain node of the alliance chain network, calling the smart contract application programming interface, the first hash value in the attribute information of the business data is stored in the main chain of the alliance chain network; The business data is stored in the data file server of the main chain of the alliance chain network; Slicing the business data and encrypting it to obtain multiple slice data; Based on the sub-chain nodes of the alliance chain network, the smart contract application programming interface is called to store the multiple slice data respectively in the data file servers of the multiple sub-chains of the alliance chain network.
3. The method according to claim 2, characterized in that The method further comprises: For any slice data, the index information of the slice data is stored in the subchain where the slice data is located.
4. The method according to claim 3, characterized in that The obtaining the business data from the alliance chain network includes: Based on the index information of the multiple slice data, respectively obtain the multiple slice data of the business data from the multiple subchains of the alliance chain network; The multiple slice data are decrypted and spliced to obtain the business data.
5. The method according to claim 1, characterized in that The determining, based on the first hash value and the second hash value of the business data, whether to send the business data to the front end includes: When the first hash value and the second hash value of the business data are consistent, sending the business data to the front end; When the first hash value and the second hash value of the business data are inconsistent, the business data is not sent to the front end, and an alarm message is sent to the front end.
6. The method according to claim 2, characterized in that The attribute information of any business data also includes decentralized identity, data record primary key and data generation timestamp.
7. A business data processing device based on alliance chain, characterized in that: The device comprises: A first acquisition module, used to acquire multiple business data of a business system and attribute information of the multiple business data, wherein the attribute information includes a first hash value; A first storage module is used to store the plurality of business data and the attribute information of the plurality of business data in the main chain and the sub-chain of the alliance chain network based on the nodes of the alliance chain network; A second acquisition module, configured to obtain the business data from the alliance chain network in response to a query request from the front end for any business data; A calculation module, used to calculate a second hash value of the business data; A processing module is used to determine whether to send the business data to the front end based on the first hash value and the second hash value of the business data.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the business data processing method based on the alliance chain according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the business data processing method based on the alliance chain according to any one of claims 1 to 6.
10. A computer program product, characterized in that It includes computer instructions, which are used to enable a computer to execute the business data processing method based on the alliance chain as described in any one of claims 1 to 6.