Data processing method, system and device, equipment, storage medium and program product

By setting a consensus node in each organization of the alliance blockchain that only stores the block data of current transaction information, the problems of the storage pressure and consensus processing efficiency of the alliance blockchain are solved, and more efficient storage and consensus processing are achieved.

CN119835332AActive Publication Date: 2025-04-15INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411995226.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-15
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

With the increase in the running time of the alliance blockchain, the storage space occupied by the full amount of blockchain data stored by each node continues to increase, resulting in huge pressure on storage and computing, affecting consensus processing efficiency and performance.

Method used

A consensus node is set up within each organization of the alliance blockchain, which only stores block data of the current transaction information, and does not store the full amount of data of the blockchain. The consensus node updates the full data of the alliance blockchain by overwriting the block data of the stored previous transaction information and synchronizing the newly generated block data to the data storage node.

Benefits of technology

By reducing the storage pressure of consensus nodes, the efficiency and performance of consensus processing are improved, the storage pressure of alliance blockchain is alleviated, and the degree of centralization of blockchain is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835332A_ABST
    Figure CN119835332A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method, system and device, equipment, a storage medium and a program product, and relates to the technical field of block chains. The data processing method is applied to consensus nodes of an alliance block chain, a system comprises a plurality of organizations, and each organization comprises a consensus node. The data processing method comprises the steps of performing consensus confirmation on received transaction information containing signature information according to a preset consensus mechanism, and generating block data of the transaction information; using the block data to cover the stored block data of the previous transaction information, and synchronizing the block data of the transaction information to the data storage node in each organization; according to the application, the storage pressure of the alliance block chain can be relieved, and the consensus processing efficiency and performance of the consensus node can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to data processing methods, systems, devices, equipment, storage media and program products. Background Art

[0002] In recent years, with the development of blockchain technology, the application of blockchain in the transaction field has become more and more extensive.

[0003] As a form of blockchain, consortium blockchain is a blockchain jointly managed by multiple organizations. Each organization runs one or more nodes. The data in the consortium blockchain is only allowed to be read, written and sent by different organizations within the system, and the transaction data is recorded together.

[0004] However, as the alliance blockchain runs for a longer time, the storage space occupied by the data of each node in the alliance blockchain will become larger and larger, which will bring tremendous pressure to the storage and computing of the alliance blockchain. Summary of the invention

[0005] The present application provides a data processing method, system, device, equipment, storage medium and program product, which are used to provide a technical solution that can alleviate the storage pressure of the alliance blockchain and improve the consensus processing efficiency and performance of the consensus nodes.

[0006] In a first aspect, the present application provides a data processing method, which is applied to a consensus node of a consortium blockchain; the blockchain consortium includes multiple organizations, each of which includes a consensus node; the method includes:

[0007] The received transaction information containing signature information is confirmed by consensus according to the preset consensus mechanism, and the block data of the transaction information is generated;

[0008] The block data is used to overwrite the block data of the last transaction information stored, and the block data of the transaction information is synchronized to each data storage node in the organization.

[0009] The technical solution provided by the present application sets a consensus node in each organization of the alliance blockchain, wherein the consensus node is used to perform consensus confirmation on the received transaction information containing signature information and generate block data of the transaction information. Afterwards, the consensus node is also used to overwrite the block data of the previous transaction information stored with the newly generated block data, that is, the consensus node only stores the block data of the current transaction information, which can alleviate the storage pressure of the alliance blockchain compared to the consensus node in the prior art that needs to store the full amount of blockchain data.

[0010] Furthermore, since consensus nodes only store block data of current transaction information, the storage pressure of consensus nodes is greatly reduced, thereby improving the efficiency and performance of consensus nodes during consensus processing.

[0011] In a second aspect, the present application provides a data processing method, which is applied to a data storage node of a consortium blockchain; the blockchain consortium includes multiple organizations, each of which includes a data storage node; the method includes:

[0012] The data in the first ledger of the alliance blockchain is updated using the block data of the transaction information, wherein the first ledger is used to store the full amount of data of the alliance blockchain.

[0013] The technical solution provided by this application sets a data storage node in each organization of the alliance blockchain, and the data storage node is used to obtain the block data synchronized by the consensus node, and use the block data to update the data in the first ledger of the alliance blockchain, wherein the first ledger is used to store the full amount of data of the alliance blockchain. Based on this, using the data storage node of each organization to store the full amount of data of the alliance blockchain can reduce the degree of centralization of the alliance blockchain.

[0014] In a third aspect, the present application provides a data processing system, which is applied to a consortium blockchain, wherein the system includes multiple organizations, each of which includes a consensus node and a data storage node;

[0015] The consensus node is used to:

[0016] The received transaction information containing signature information is confirmed by consensus according to the preset consensus mechanism, and the block data of the transaction information is generated;

[0017] Using the block data to overwrite the stored block data of the previous transaction information, and synchronizing the block data of the transaction information to the data storage nodes in each of the organizations;

[0018] The data storage node is used for:

[0019] The block data of the transaction information is used to update the data in the first ledger of the corresponding alliance blockchain, wherein the first ledger is used to store the full amount of data of the alliance blockchain.

[0020] In a fourth aspect, the present application further provides a data processing device, which is applied to a consensus node of a consortium blockchain; the blockchain consortium includes a plurality of organizations, each of which includes a consensus node; the device includes:

[0021] Consensus module: performs consensus confirmation on the received transaction information containing signature information according to the preset consensus mechanism, and generates block data of the transaction information;

[0022] Storage synchronization module: using the block data to overwrite the block data of the last transaction information stored, and synchronizing the block data of the transaction information to each data storage node in the organization.

[0023] In a fifth aspect, the present application further provides a data processing device, which is applied to a data storage node of a consortium blockchain; the blockchain consortium includes multiple organizations, each of which includes a data storage node; the device includes:

[0024] Processing module: used to update the data in the first ledger of the alliance blockchain using the block data of the transaction information, wherein the first ledger is used to store the full amount of data of the alliance blockchain.

[0025] In a sixth aspect, the present application further provides a data processing device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements any of the methods described in the second aspect.

[0026] In a seventh aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method described in any one of the second aspects is implemented.

[0027] In an eighth aspect, the present application further provides a computer program product, comprising a computer program, which implements any of the methods in the second aspect when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0029] Figure 1 It is a structural diagram of a consortium blockchain in related technologies;

[0030] Figure 2 A schematic diagram of the structure of the data processing system provided in the embodiment of the present application Figure 1 ;

[0031] Figure 3 A schematic diagram of the structure of the data processing system provided in the embodiment of the present application Figure 2 ;

[0032] Figure 4 A flowchart of a data processing method provided in an embodiment of the present application;

[0033] Figure 5 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;

[0034] Figure 6 A schematic diagram of the structure of another data processing device provided in an embodiment of the present application;

[0035] Figure 7 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application.

[0036] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0037] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0038] It should be noted that the data processing methods, systems, devices, storage media and products provided in this application can be used in the blockchain field, and can also be used in any field other than blockchain. The application fields of the data processing methods, systems, devices, storage media and products in this application are not limited.

[0039] The specific application scenario of this application is alliance blockchain. Figure 1 This is a schematic diagram of the structure of a consortium blockchain, which includes multiple organizations (also called structures). Each organization runs one or more nodes, and the data in the nodes is only allowed to be read, written and sent by different organizations in the system, and the transaction data is recorded together.

[0040] However, as the running time of the alliance blockchain increases, the storage space occupied by the data of each node in the organization will become larger and larger because each node in the organization stores the full amount of blockchain data, which will bring huge pressure to the storage and operation of the alliance blockchain. And as the amount of data storing the full amount of alliance blockchain increases, it will affect the consensus processing efficiency and performance of the consensus node.

[0041] In response to the above problems, the embodiments of the present application propose: by setting up a node dedicated to storing the full data of the alliance blockchain in each organization of the alliance blockchain, other nodes no longer store the de-quantified data to alleviate the storage pressure of the alliance blockchain, and setting up a consensus node in each organization. The consensus node is mainly used for consensus confirmation and no longer stores the block data of previous transaction data to improve the efficiency and performance of the consensus node when performing consensus processing.

[0042] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0043] The present application provides a data processing method, system, device, storage medium and program product, which are applied in alliance blockchain.

[0044] Consortium blockchain is a type of blockchain between public blockchain and private blockchain. It is jointly managed and maintained by multiple organizations and is usually used in scenarios that require the participation of multiple entities but do not want to be fully public. It can be applied to financial services, for example: banks and financial institutions can use consortium blockchains for cross-border payment, settlement and clearing operations.

[0045] In a consortium blockchain, consensus nodes are responsible for verifying the validity of transactions, including checking the format of transactions, the validity of signatures, and ensuring that transactions comply with the rules of the network protocol; they are also responsible for generating new blocks and packaging verified transactions into blocks. This process is usually completed by a group of nodes in turn or through some kind of election mechanism. The consensus mechanism used by consortium blockchains is usually Byzantine Fault Tolerance (BFT) type, such as PBFT (Practical Byzantine Fault Tolerance). In these mechanisms, consensus nodes reach a consensus on the validity of blocks through multiple rounds of communication and voting. Since the participants are known, consortium chains can achieve a more efficient consensus process. Consensus nodes are also responsible for synchronizing data in the network, ensuring that all nodes hold the latest status of the blockchain, including propagating newly generated blocks and updating the ledger status. In a consortium blockchain, consensus nodes can also be responsible for managing permissions and access control, including determining which nodes can participate in the consensus process, which nodes can read or write data, etc. If the consortium blockchain supports smart contracts, consensus nodes may be responsible for executing the logic of smart contracts and ensuring that their results are agreed upon in the network.

[0046] Reference Figure 2The present application provides a data processing system, which is applied in a consortium blockchain. The system includes multiple organizations, each of which includes a consensus node and a data storage node.

[0047] Among them, consensus nodes are used for:

[0048] First, consensus is confirmed on the received transaction information containing signature information according to a preset consensus mechanism, and block data of the transaction information is generated.

[0049] The above-mentioned signature information may be endorsement signature information. Endorsement signature information is used to verify the validity of a transaction. In a consortium blockchain, transactions usually need to be verified and endorsed by multiple nodes to ensure that they comply with the rules and protocols of the network. Through endorsement signatures, the network can control which participants have the right to verify and endorse specific types of transactions. This helps to achieve more sophisticated permission management and security control. Endorsement signatures help ensure that transactions have been properly verified and approved before being submitted to the blockchain, thereby improving the consistency and reliability of data.

[0050] The transaction information containing signature information received by the consensus node can be a transaction created by the transaction initiator and attached with the necessary signature information. These signatures are used to verify the authenticity and integrity of the transaction. After that, the transaction is broadcast to the consensus node or endorsement node in the network, waiting for verification and processing.

[0051] After receiving the transaction information, the consensus node first verifies the signature information in the transaction information to ensure the legitimacy and integrity of the transaction. After that, it enters the consensus phase, where consensus nodes communicate with each other, exchange transaction information and verification results, and reach consensus through voting or other means. Once most nodes agree on the validity of the transaction, the transaction is considered confirmed. The consensus node packages the consensus-confirmed transactions into a new block, that is, generates the block data of the transaction information.

[0052] Second, the block data is used to overwrite the block data of the last transaction information stored, and the block data of the transaction information is synchronized to each data storage node in the organization.

[0053] In other words, the consensus node only stores the block data of the current transaction information, which can alleviate the storage pressure of the alliance blockchain compared to the consensus node in the prior art that needs to store the full amount of blockchain data. Furthermore, since the consensus node only stores the block data of the current transaction information, the storage pressure of the consensus node is greatly reduced, which can improve the efficiency and performance of the consensus node in consensus processing.

[0054] The data storage node is used for:

[0055] The block data of the transaction information is used to update the data in the first ledger of the alliance blockchain, wherein the first ledger is used to store the full data of the alliance blockchain. After receiving the new block data, the data storage node of each organization adds it to the local first ledger. This ensures that all data storage nodes hold the latest data version of the blockchain.

[0056] The blockchain data stored in the first ledger includes the block data of the blockchain and the status data describing the world state. The block data of the blockchain is a record describing every transaction that actually occurs on the blockchain; the status data is a record of the current status of each account and smart contract.

[0057] Based on this, using each organization's data storage nodes to store the full amount of blockchain data can reduce the degree of centralization of the blockchain.

[0058] Optionally, the consensus node is also used to:

[0059] In response to the generation identifier of the block data, a data synchronization message is generated according to the block data, and the data synchronization message is synchronized to the data storage node; the synchronization message carries the block data.

[0060] It should be understood that each block will typically have a unique identifier (such as a block hash) that is used to verify the integrity of the block.

[0061] In this embodiment, a data synchronization message may be generated according to the block data of the transaction information in response to the identifier, wherein the format of the data synchronization message complies with the network protocol so that all receiving nodes can correctly parse and process it.

[0062] In some examples, the synchronization message may also carry metadata necessary for the message, such as a block identifier and generation time.

[0063] Based on this, data storage nodes are also used to:

[0064] A data synchronization message is obtained, and the block data is parsed from the data synchronization message.

[0065] After receiving the data synchronization message, the data storage node first verifies the integrity and validity of the message. For example, the data storage node verifies the integrity and validity of the data synchronization message by checking the block identifier and signature.

[0066] After verification, the data storage node extracts the block data from the data synchronization message, including the block header and transaction list. The block header contains important metadata, such as the hash of the previous block, timestamp, block identifier, etc. The data storage node needs to parse this information to verify the correctness and order of the block. Then, the data storage node extracts and parses the transaction information in the block to ensure that the format and content of each transaction conform to the network protocol. After that, the storage node stores the block data in the local first ledger to update the local first ledger and ensure the latest and consistent state of the local first ledger.

[0067] Based on this, the system provided by the embodiment of the present application can effectively synchronize block data and ensure that all data storage nodes can update the ledger status in a timely manner. This not only improves the reliability and security of the system, but also enhances the data consistency and collaboration capabilities between organizations.

[0068] In an optional implementation, the consensus node is specifically used for:

[0069] The data synchronization message is sent to a preset data synchronization queue, wherein the preset data synchronization queue is used to store the data synchronization message to be processed.

[0070] Among them, the preset data synchronization queue is used to temporarily store data synchronization messages to be processed to ensure that the data storage nodes can obtain and process these messages in an orderly manner, and to ensure that the data storage nodes can effectively process messages even when the blockchain has a high transaction volume.

[0071] Data storage nodes are specifically used for:

[0072] Get the pending data synchronization messages from the data synchronization queue.

[0073] The data storage node reads messages from the data synchronization queue in a first-in-first-out manner. After reading the data synchronization message, it verifies the validity and consistency of the block data. Then, it adds the block data to the local first ledger and updates the first ledger status.

[0074] For example, when the data storage node monitors that there are unprocessed data synchronization messages in the data synchronization queue, the data storage node of each organization obtains the unprocessed data synchronization message from the data synchronization queue.

[0075] Specifically, when it is monitored that there are unprocessed data synchronization messages in the data synchronization queue, the archiving node of each organization obtains the unprocessed data synchronization messages in the data synchronization queue according to the generation order of the unprocessed data synchronization messages.

[0076] Based on this, by using data synchronization queues, the alliance blockchain can more effectively manage the dissemination and processing of block data, ensuring the reliability and consistency of the system. This not only improves the efficiency of data synchronization, but also enhances the collaboration capabilities between organizations.

[0077] In another optional implementation, the consensus node is further used to:

[0078] The data synchronization message is synchronized to the data synchronization message interface.

[0079] In this embodiment, the consensus node sends the data synchronization message to the data synchronization message interface. The data synchronization message interface acts as a standardized communication point, which is responsible for receiving data synchronization messages from the consensus node and publishing them to all nodes listening to the interface.

[0080] Among them, the data synchronization message interface can support high throughput and low latency message delivery. And the interface is scalable to adapt to future network growth and increased transaction volume.

[0081] Data storage nodes are also used to:

[0082] Monitor the data synchronization message interface of the consensus node to obtain the data synchronization message.

[0083] The data storage node continuously monitors the data synchronization message interface of the consensus node to obtain data synchronization messages in real time. When the interface publishes a new data synchronization message, the node receives the message and verifies it to ensure the integrity of the message and the validity of the signature.

[0084] Based on this, the embodiment of the present application uses the data synchronization message interface, so that the system can achieve a more efficient and reliable data synchronization process, ensuring that all data storage nodes can update the account status in a timely manner. This mechanism not only improves the response speed of the system, but also enhances the collaboration and data consistency between organizations.

[0085] Optional, see Figure 4 ,Each organization also includes at least two accounting nodes;

[0086] The consensus nodes are also used to:

[0087] The block data is disseminated to each accounting node of the organization.

[0088] Among them, dissemination can be achieved through point-to-point communication or broadcast mechanism to ensure that all accounting nodes can receive the latest block data.

[0089] The accounting node is used to:

[0090] The data in the second ledger of the alliance blockchain is updated using the acquired block data; wherein the second ledger is used to store part of the data of the alliance blockchain.

[0091] After receiving the block data from the consensus node, each organization's accounting node uses the received block data to update the second ledger of the alliance blockchain. The second ledger may be used to store specific types of data or transactions for easy query and management. Based on this, the accounting node can provide an efficient interface for querying and analyzing specific types of data. This is very useful for application scenarios that require quick access to specific information.

[0092] Before updating the second ledger, the accounting node can verify the integrity and validity of the block data, ensure that the updated second ledger is consistent with other nodes, and perform necessary consistency checks.

[0093] Based on this, the alliance blockchain can achieve more efficient data management and account book updates, ensuring that all organizations' accounting nodes can obtain and process block data in a timely manner. This not only improves the reliability and security of the system, but also enhances the data consistency and collaboration capabilities between organizations.

[0094] In some examples, the second ledger is used to store the most recently acquired plurality of block data.

[0095] Based on this, the second ledger can be regarded as a cache layer for storing the latest multiple blocks of data. This allows the system to quickly access recent transactions and status updates.

[0096] In other words, by using the second ledger to store the latest acquired multiple block data, the alliance blockchain system can achieve more efficient data management and query capabilities, and can improve the system's response speed.

[0097] In other examples, the second ledger is used to store multiple block data with larger weights, wherein the weights are determined according to the preset consensus mechanism.

[0098] In some examples, the weight of a block is related to the complexity of its consensus process, the number of validating nodes, or the importance of transactions in the block. Based on this, the weight can be used to represent the relative importance of the block in the entire blockchain, helping nodes prioritize processing and storage of critical data.

[0099] For example, block data with higher weight may contain key transactions or important status updates.

[0100] By storing high-weight blocks in the second ledger, the system can access and process these important data more quickly, improve overall performance, and ensure that critical data is processed and stored in a timely manner.

[0101] Optionally, the accounting node is also used to:

[0102] In response to the consensus node's read operation on the block, the block data is obtained from the corresponding data storage node.

[0103] In some examples, the accounting node receives a read request from a consensus node. The read request may involve data of a specific block for verification, analysis, or other purposes. The accounting node sends a request to a data storage node in a unified organization that stores the required block data. The request contains an identifier of the required block (such as a block hash or block height). After receiving the request, the data storage node retrieves the requested block data from local storage.

[0104] The data storage node returns the retrieved block data to the accounting node. After receiving the block data, the accounting node performs necessary processing and analysis, which may include: verifying the integrity of the block, checking transaction details, or performing other block-related operations. The consensus node uses the block data obtained from the accounting node to perform its required operations, such as verification, analysis, or decision-making.

[0105] Based on this, the alliance blockchain in the embodiment of the present application can support efficient data access and collaboration between accounting nodes and consensus nodes, ensuring the reliability and security of the system. It not only improves the efficiency of system data access, but also enhances the collaboration ability between the nodes of the system.

[0106] Reference Figure 4 , the embodiment of the present application provides a data processing method, which may include the following steps:

[0107] S401, the consensus node performs consensus confirmation on the received transaction information containing signature information according to a preset consensus mechanism, and generates block data of the transaction information.

[0108] S402, the consensus node uses the block data to overwrite the stored block data of the previous transaction information.

[0109] S403, the consensus node synchronizes the block data of the transaction information to each data storage node in the organization.

[0110] S404: The data storage node updates the data in the first ledger of the alliance blockchain using the block data of the transaction information, wherein the first ledger is used to store the full amount of data of the alliance blockchain.

[0111] Based on this, this embodiment sets a consensus node and a data storage node in each organization of the alliance blockchain, wherein the consensus node is used to perform consensus confirmation on the received transaction information containing signature information and generate block data of the transaction information. Afterwards, the consensus node is also used to overwrite the stored block data of the previous transaction information with the newly generated block data, that is, the consensus node only stores the block data of the current transaction information, which can alleviate the storage pressure of the alliance blockchain compared to the consensus node in the prior art that needs to store the full amount of blockchain data.

[0112] Furthermore, since consensus nodes only store block data of current transaction information, the storage pressure of consensus nodes is greatly reduced, thereby improving the efficiency and performance of consensus nodes during consensus processing.

[0113] Optionally, the consensus node synchronizing the block data of the transaction information to each data storage node in the organization includes:

[0114] The consensus node generates a data synchronization message according to the block data in response to the generation identifier of the block data, and synchronizes the data synchronization message to the data storage node in each of the organizations; the data synchronization message carries the block data.

[0115] The data storage node obtains the data synchronization message, and parses the block data from the data synchronization message.

[0116] Optionally, the consensus node synchronizes the data synchronization message to a preset data synchronization queue, or synchronizes the data message to a data synchronization message interface; wherein the preset data synchronization queue is used to store data synchronization messages to be processed.

[0117] The data storage node obtains the data synchronization message to be processed from the data synchronization queue, or obtains the data synchronization message to be processed from the data synchronization queue.

[0118] Optionally, each of the organizations further includes at least two accounting nodes;

[0119] The method also includes: the consensus node disseminates the block data to the accounting nodes of each of the organizations, so that the accounting nodes use the block data to update the data in the second ledger of the alliance blockchain; wherein the second ledger is used to store part of the data of the alliance blockchain.

[0120] Optionally, the second ledger is used to store the latest acquired multiple block data;

[0121] Alternatively, the second ledger is used to store multiple block data with larger weights, wherein the weights are determined according to the preset consensus mechanism.

[0122] Optionally, the method further includes:

[0123] The consensus node sends the generated read operation of the target block to the accounting node, so that the accounting node obtains the block data corresponding to the target block from the data storage node of the corresponding organization.

[0124] It should be understood that the beneficial effects of the data processing method are the same as the beneficial effects of the data processing system in the first aspect, and will not be repeated here.

[0125] Reference Figure 5 The embodiment of the present application further provides a data processing device, which is applied to a consensus node of a consortium blockchain; the blockchain consortium includes multiple organizations, each of which includes a consensus node; the device includes:

[0126] Consensus module 501: used to perform consensus confirmation on the received transaction information containing signature information according to a preset consensus mechanism, and generate block data of the transaction information;

[0127] Storage synchronization module 502: used to overwrite the block data of the last transaction information stored with the block data, and synchronize the block data of the transaction information to each data storage node in the organization.

[0128] Optionally, the storage synchronization module 502 is further used to: generate a data synchronization message according to the block data in response to a generation identifier of the block data, and synchronize the data synchronization message to the data storage node in each of the organizations; the data synchronization message carries the block data.

[0129] Optionally, the storage synchronization module 502 is further used to: synchronize the data synchronization message to a preset data synchronization queue, or synchronize the data message to a data synchronization message interface; wherein the preset data synchronization queue is used to store the data synchronization message to be processed.

[0130] Optionally, the consensus module 501 is also used to: spread the block data to each accounting node of the organization, so that the accounting node uses the block data to update the data in the second ledger of the alliance blockchain; wherein the second ledger is used to store part of the data of the alliance blockchain.

[0131] The second ledger is used to store the latest acquired multiple block data;

[0132] Alternatively, the second ledger is used to store multiple block data with larger weights, wherein the weights are determined according to the preset consensus mechanism.

[0133] Optionally, the storage synchronization module 502 is further used to: send the generated read operation of the target block to the accounting node, so that the accounting node obtains the block data corresponding to the target block from the data storage node of the corresponding organization.

[0134] Reference Figure 6 The embodiment of the present application further provides a data processing device, which is applied to a data storage node of a consortium blockchain; the blockchain consortium includes a plurality of organizations, each of which includes a data storage; the device includes:

[0135] Processing module 601: used to update the data in the first ledger of the alliance blockchain using the block data of the transaction information, wherein the first ledger is used to store the full amount of data of the alliance blockchain.

[0136] Optionally, the processing module 601 is further used to: obtain the data synchronization message, and parse the block data from the data synchronization message.

[0137] Optionally, the processing module 601 is further used to: obtain the data synchronization message to be processed from the data synchronization queue, or obtain the data synchronization message to be processed from the data synchronization queue.

[0138] The present application also provides a data processing device, Figure 7 This is a schematic diagram of the structure of the data processing device provided in the embodiment of the present application. Figure 7 As shown, the data storage device may include: a transceiver 121 , a processor 122 , and a memory 123 .

[0139] The processor 122 executes the computer-executable instructions stored in the memory, so that the processor 122 executes the scheme in the above data processing method embodiment. The processor 122 can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0140] The memory 123 is connected to the processor 122 via a system bus and completes communication between them. The memory 123 is used to store computer program instructions.

[0141] The transceiver 121 may be used to obtain tasks to be executed and configuration information of the tasks to be executed.

[0142] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.

[0143] An embodiment of the present application also provides a chip for executing instructions, which is used to execute the technical solution of the data processing method in the above embodiment.

[0144] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the data processing method in the above embodiment.

[0145] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, it can implement the technical solution of the data processing method in the above embodiment.

[0146] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0147] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.

[0148] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0149] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.

[0150] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0151] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0152] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0153] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0154] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic control unit or a main control device.

Claims

1. A data processing method, characterized in that: Applied to a consensus node of a consortium blockchain; the blockchain consortium includes multiple organizations, each of which includes a consensus node; the method includes: The received transaction information containing signature information is confirmed by consensus according to the preset consensus mechanism, and the block data of the transaction information is generated; The block data is used to overwrite the block data of the last transaction information stored, and the block data of the transaction information is synchronized to each data storage node in the organization.

2. The method according to claim 1, characterized in that The synchronizing the block data of the transaction information to the data storage nodes in each of the organizations includes: In response to a generation identifier of the block data, a data synchronization message is generated according to the block data, and the data synchronization message is synchronized to each of the data storage nodes in the organization; the data synchronization message carries the block data.

3. The method according to claim 2, characterized in that: The method further comprises: Synchronize the data synchronization message to a preset data synchronization queue, or synchronize the data message to a data synchronization message interface; wherein the preset data synchronization queue is used to store the data synchronization message to be processed.

4. The method according to any one of claims 1 to 3, characterized in that: Each of the organizations also includes at least two accounting nodes; The method also includes: disseminating the block data to each accounting node of the organization, so that the accounting node uses the block data to update the data in the second ledger of the alliance blockchain; wherein the second ledger is used to store part of the data of the alliance blockchain.

5. The method according to claim 4, characterized in that The second ledger is used to store the latest acquired multiple block data; Alternatively, the second ledger is used to store multiple block data with larger weights, wherein the weights are determined according to the preset consensus mechanism.

6. The method according to claim 5, characterized in that The method further comprises: The generated read operation of the target block is sent to the accounting node, so that the accounting node obtains the block data corresponding to the target block from the data storage node of the corresponding organization.

7. A data processing method, characterized in that: Applied to the data storage nodes of the alliance blockchain; The blockchain alliance includes multiple organizations, each of which includes a data storage node; the method includes: The data in the first ledger of the alliance blockchain is updated using the block data of the transaction information, wherein the first ledger is used to store the full amount of data of the alliance blockchain.

8. The method according to claim 7, characterized in that: The method further comprises: The data synchronization message is obtained, and the block data is parsed from the data synchronization message.

9. The method according to claim 7, characterized in that: The acquiring of the data synchronization message comprises: Obtain the data synchronization message to be processed from the data synchronization queue, or obtain the data synchronization message to be processed from the data synchronization queue.

10. A data processing system, characterized in that: Applied to a blockchain alliance, the system includes multiple organizations, each of which includes a consensus node and a data storage node; The consensus node is used to: The received transaction information containing signature information is confirmed by consensus according to the preset consensus mechanism, and the block data of the transaction information is generated; Using the block data to overwrite the stored block data of the previous transaction information, and synchronizing the block data of the transaction information to the data storage nodes in each of the organizations; The data storage node is used for: The block data of the transaction information is used to update the data in the first ledger of the corresponding alliance blockchain, wherein the first ledger is used to store the full amount of data of the alliance blockchain.

11. A data processing device, characterized in that: Applied to the consensus node of the alliance blockchain; the blockchain alliance includes multiple organizations, each of which includes a consensus node; the device includes: Consensus module: used to perform consensus confirmation on the received transaction information containing signature information according to the preset consensus mechanism, and generate block data of the transaction information; Storage synchronization module: used to use the block data to overwrite the block data of the previous transaction information stored, and synchronize the block data of the transaction information to each data storage node in the organization.

12. A data processing device, characterized in that: Applied to the data storage nodes of the alliance blockchain; The blockchain alliance includes multiple organizations, each of which includes a data storage node; the device includes: Processing module: used to update the data in the first ledger of the alliance blockchain using the block data of the transaction information, wherein the first ledger is used to store the full amount of data of the alliance blockchain.

13. A data processing device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the method according to claims 1 to 6 or the method according to claims 7 to 9 is implemented.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in claims 1-6 or the method described in claims 7-9 is implemented.

15. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method described in claims 1 to 6, or the method described in claims 7 to 9.

Citation Information

Patent Citations

  • A block chain data networked storage and transfer method

    CN109558453A

  • Data processing method and device of block chain network, product, equipment and medium

    CN116980155A

  • Data processing method and system for consensus and storage separation of alliance chain nodes

    CN117473549A

  • System and method for electronic document issuing using blockchain and computer program for the same

    US20220164333A1