Information processing method, apparatus, device, storage medium, and program product

By broadcasting information in the form of a set and attaching a signature in the blockchain system, the problem of duplicate verification of blockchain information is solved, achieving resource conservation and improved transmission efficiency.

CN117061118BActive Publication Date: 2026-06-05TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2022-05-07
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Blockchain systems suffer from problems such as wasted verification resources and low transmission efficiency due to repeated verification of blockchain information.

Method used

In a blockchain system, information is broadcast in the form of a set of information, and signature information is attached to the set of information. The verification process is skipped only when the number of signatures meets the storage conditions, and the information is directly stored in the node's information pool.

Benefits of technology

It reduces the waste of resources due to redundant verification in blockchain systems and improves the efficiency of information transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117061118B_ABST
    Figure CN117061118B_ABST
Patent Text Reader

Abstract

The application provides an information processing method, device, equipment, storage medium and program product, and relates to the technical field of information processing. The method comprises the following steps: receiving a first information set broadcast in a blockchain system; in response to receiving a second information set within a first time length after receiving the first information set, obtaining the number of signature information contained in the second information set; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set; in response to the number of signature information contained in the second information set meeting a storage condition, skipping the verification process of at least two pieces of blockchain information, and storing the at least two pieces of blockchain information to an information pool of the first blockchain node. Through the above method, the waste of blockchain system verification resources caused by repeated verification of the blockchain information is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information processing technology, and in particular to an information processing method, apparatus, device, storage medium, and program product. Background Technology

[0002] The blockchain information pool is used to cache information data received by blockchain nodes; blockchain nodes receive information data, generate information blocks containing summary information and information attribute information of the information data; and broadcast the information blocks to other consensus nodes in the data sharing system, instructing other consensus nodes to verify the information blocks.

[0003] In the relevant technology, the node receiving the information data verifies the information data after receiving it, and after successful verification, adds the information data to its own information pool and broadcasts the information data to other consensus nodes.

[0004] However, during the broadcasting of information data, each blockchain node receiving the information data needs to verify it, resulting in multiple repetitive verifications of the information data by the blockchain system, which in turn wastes blockchain verification resources. Summary of the Invention

[0005] This application provides an information processing method, apparatus, device, storage medium, and program product that can reduce the waste of blockchain system verification resources caused by repeated verification of blockchain information. The technical solution is as follows:

[0006] On the one hand, an information processing method is provided, which is executed by a first blockchain node in a blockchain system, the method comprising:

[0007] Receive a first set of information broadcast within the blockchain system; the first set of information contains at least two blockchain messages.

[0008] In response to receiving a second information set within a first time period after receiving the first information set, the number of signature information contained in the second information set is obtained; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set;

[0009] In response to the number of signature information contained in the second information set satisfying the storage conditions, the verification process for at least two blockchain information items is skipped, and at least two blockchain information items are stored in the information pool of the first blockchain node.

[0010] On the other hand, an information processing method is provided, which is executed by a second blockchain node in a blockchain system. The second blockchain node is a node in the blockchain system that interacts with an information generating device. The method includes:

[0011] Receive blockchain information sent by the information generation device;

[0012] The unbroadcast blockchain information is packaged to obtain a first information set; the first information set contains at least two pieces of the blockchain information.

[0013] The first information set is broadcast to the blockchain system, so that the first blockchain node in the blockchain system receives the first information set. If a second information set is received within a first time period after receiving the first information set, the number of signature information contained in the second information set is obtained. The second information set contains the same blockchain information as the first information set. The signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set. If the number of signature information contained in the second information set meets the storage conditions, the verification process for at least two pieces of blockchain information is skipped, and at least two pieces of blockchain information are stored in the information pool of the first blockchain node.

[0014] On the other hand, an information processing apparatus is provided, the apparatus comprising:

[0015] The first set receiving module is used to receive a first set of information broadcast within the blockchain system; the first set of information contains at least two blockchain messages.

[0016] The signature count acquisition module is used to respond to receiving a second information set within a first time period after receiving the first information set, and to acquire the number of signature information contained in the second information set; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set.

[0017] An information storage module is configured to, in response to the number of signature information contained in the second information set meeting the storage conditions, skip the verification process for at least two blockchain information items and store at least two blockchain information items in the information pool of the first blockchain node.

[0018] In one possible implementation, the device further includes:

[0019] The information verification module is used to verify at least two pieces of blockchain information in response to the fact that the number of signature information contained in the second information set does not meet the storage conditions, and the second information set is the information set containing the most signature information in the received information set, and to obtain a first information verification result.

[0020] The information storage module is used to store at least two pieces of blockchain information into the information pool of the first blockchain node in response to the first information verification result indicating that at least two pieces of blockchain information are valid.

[0021] In one possible implementation, the device further includes:

[0022] A signature adding module is used to add first signature information to the second information set in response to the first information verification result indicating that at least two of the blockchain information are valid. The first signature information is a signature added by the first blockchain node.

[0023] The set broadcast module is used to broadcast the second information set containing the first signature information.

[0024] In one possible implementation, the set broadcasting module is used to broadcast the second information set containing the first signature information to subsequent blockchain nodes, wherein the subsequent blockchain nodes are other blockchain nodes in the blockchain system besides the blockchain nodes that have already added a signature to the second information set.

[0025] In one possible implementation, the device further includes:

[0026] The duration acquisition module is used to acquire the first duration based on the node performance of the first blockchain node; the first duration is inversely correlated with the node performance of the first blockchain node.

[0027] The node performance of the first blockchain node includes at least one of the following: the amount of information in the information pool of the first blockchain node, the processor utilization rate of the first blockchain node, and the number of idle network connections of the first blockchain node.

[0028] In one possible implementation, the information storage module includes:

[0029] The signature verification submodule is used to verify the signature information contained in the second information set in response to the storage condition being met by the number of signature information contained in the second information set, and to obtain a signature verification result.

[0030] The information storage submodule is used to skip the verification process of at least two blockchain information items in response to the signature verification result indicating that all the signature information contained in the second information set is valid, and to store at least two blockchain information items in the information pool of the first blockchain node.

[0031] On the other hand, an information processing apparatus is provided, the apparatus comprising:

[0032] An information receiving module is used to receive blockchain information sent by the information generating device;

[0033] An information packaging module is used to package the unbroadcast blockchain information to obtain a first information set; the first information set contains at least two pieces of the blockchain information.

[0034] The first set broadcast module is used to broadcast the first information set to the blockchain system, so that the first blockchain node in the blockchain system receives the first information set, and if it receives a second information set within a first time period after receiving the first information set, it obtains the number of signature information contained in the second information set; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set; if the number of signature information contained in the second information set meets the storage conditions, the verification process for at least two pieces of blockchain information is skipped, and at least two pieces of blockchain information are stored in the information pool of the first blockchain node.

[0035] In one possible implementation, the information packaging module is used to package the unbroadcast blockchain information in response to the achievement of a target condition, thereby obtaining the first information set;

[0036] The target conditions include at least one of the following: the number of blockchain information that has not been broadcast reaches a first quantity threshold, and the interval between the last broadcast time and the last broadcast time reaches a duration threshold.

[0037] In one possible implementation, the device further includes:

[0038] An information verification module is used to verify the legitimacy of the unbroadcast blockchain information before the information packaging module packages the unbroadcast blockchain information to obtain the first information set, and to obtain a second information verification result of the blockchain information.

[0039] The information packaging module is used to package the blockchain information that is not broadcast and whose second information verification result indicates to be valid in response to the achievement of the target condition, so as to obtain the first information set.

[0040] In one possible implementation, the device further includes:

[0041] The information quantity acquisition module is used to acquire the quantity of historical blockchain information in the information pool of the second blockchain node before the information packaging module packages the unbroadcast blockchain information to obtain the first information set; the historical blockchain information refers to information that has been broadcast in the information pool of the second blockchain node.

[0042] The information packaging module is used to package the unbroadcasted blockchain information in response to the number of historical blockchain information reaching a second quantity threshold, thereby obtaining the first information set.

[0043] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to implement the above-described information processing method.

[0044] On the other hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, the computer program being loaded and executed by a processor to implement the above-described information processing method.

[0045] On the other hand, a computer program product is provided, the computer program product comprising at least one computer program, the computer program being loaded and executed by a processor to implement the information processing methods provided in the various optional implementations described above.

[0046] The technical solution provided in this application may include the following beneficial effects:

[0047] In a blockchain system, blockchain information is broadcast in the form of a set of information. This set includes a signature indicating that a blockchain node has already verified the information. When the number of signatures in the set meets the storage requirements, the receiving blockchain node does not need to verify the information and can directly store it in its information pool. This method reduces the waste of verification resources caused by repeated verification of blockchain information.

[0048] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

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

[0050] Figure 1 This application shows a schematic diagram of the architecture of a data sharing system provided in an exemplary embodiment.

[0051] Figure 2 A schematic diagram of a blockchain structure provided in an exemplary embodiment of this application is shown;

[0052] Figure 3 A schematic diagram illustrating a new block generation process provided in an exemplary embodiment of this application is shown;

[0053] Figure 4 A schematic diagram illustrating the information processing process in the related art provided by an exemplary embodiment of this application is shown;

[0054] Figure 5 A flowchart of an exemplary embodiment of the present application is shown;

[0055] Figure 6 A flowchart of an exemplary embodiment of the present application is shown;

[0056] Figure 7 A flowchart of an exemplary embodiment of the present application is shown;

[0057] Figure 8 This illustration shows a schematic diagram of the sharing of historical blockchain information among blockchain nodes according to an exemplary embodiment of this application;

[0058] Figure 9 This illustration shows a schematic diagram of updating a first duration based on a target period provided in an exemplary embodiment of this application;

[0059] Figure 10 A schematic diagram illustrating an information processing procedure provided in an exemplary embodiment of this application is shown;

[0060] Figure 11 A block diagram of an information processing apparatus provided in an exemplary embodiment of this application is shown;

[0061] Figure 12 A block diagram of an information processing apparatus provided in an exemplary embodiment of this application is shown;

[0062] Figure 13 This is a structural block diagram of a computer device provided according to an exemplary embodiment. Detailed Implementation

[0063] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0064] Figure 1 A schematic diagram of the architecture of a data sharing system provided in an exemplary embodiment of this application is shown. This data sharing system can be used to implement the information processing method provided in this application. Figure 1 As shown, the data sharing system 100 includes multiple nodes 101.

[0065] The data sharing system 100, also known as a blockchain system, refers to a system for data sharing between nodes. This system may include multiple nodes 101, which can refer to various clients within the system. Each node 101, during normal operation, receives blockchain information and maintains the shared data within the system based on this information. To ensure interoperability within the system, information connections exist between nodes, enabling data transmission. For example, when any node in the system receives input blockchain information, other nodes retrieve this information according to a consensus algorithm and store it as part of the shared data, ensuring data consistency across all nodes.

[0066] Each node in the data sharing system has a corresponding node identifier, and each node can also store the node identifiers of other nodes in the data sharing system. This allows for the subsequent broadcasting of generated blocks to other nodes in the data sharing system based on their node identifiers. Each node can maintain a node identifier list as shown in the table below, storing the node name and node identifier in this list. The node identifier can be an IP (Internet Protocol) address or any other information that can be used to identify the node. Table 1 only uses IP addresses as an example.

[0067] Table 1

[0068] Node Name Node identifier Node 1 117.114.151.174 Node 2 117.116.189.145 … … Node N xx.xx.xx.xx

[0069] Each node in the data-sharing system stores the same blockchain. A blockchain consists of multiple blocks; see [link to blockchain documentation]. Figure 2 , Figure 2 The diagram illustrates a blockchain structure provided by an exemplary embodiment of this application. The blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores blockchain information feature values, version number, timestamp, and difficulty value. The block body stores blockchain information. The next block of the genesis block takes the genesis block as its parent block. The next block also includes a block header and a block body. The block header stores the blockchain information feature values ​​of the current block, the block header feature values ​​of the parent block, version number, timestamp, and difficulty value, and so on. This ensures that the block data stored in each block of the blockchain is associated with the block data stored in the parent block, guaranteeing the security of the blockchain information in the blocks.

[0070] When generating the individual blocks in the blockchain, see Figure 3 , Figure 3 This illustration shows a schematic diagram of the new block generation process provided by an exemplary embodiment of this application. When the node where the blockchain resides receives blockchain information, it verifies the blockchain information. After verification, it stores the blockchain information in the information pool (memory pool) and updates its hash tree used to record blockchain information. Then, it updates the timestamp to the time when the blockchain information was received and tries different random numbers to calculate the feature value multiple times, so that the calculated feature value can satisfy the following formula:

[0071] SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x)) <TARGET

[0072] Wherein, SHA256 is the feature value algorithm used to calculate the feature value; version (version number) is the version information of the relevant block protocol in the blockchain; prev_hash is the block header feature value of the parent block of the current block; merkle_root is the feature value of the input blockchain information; ntime is the update time of the update timestamp; nbits is the current difficulty, which is a fixed value for a period of time and is determined again after exceeding the fixed time period; x is a random number; TARGET is the feature value threshold, which can be determined based on nbits.

[0073] Thus, when a random number satisfying the above formula is calculated, the information can be stored accordingly, generating a block header and a block body to obtain the current block. Subsequently, the node where the blockchain resides sends the newly generated block to other nodes in its data sharing system based on the node identifiers of other nodes in the data sharing system. The other nodes then verify the newly generated block and add it to their stored blockchain after verification.

[0074] In related technologies, when a second blockchain node in a data sharing system receives blockchain information sent by a target object, it verifies the blockchain information one by one. After successful verification, the blockchain information is stored in the information pool of the second blockchain node. At the same time, the successfully verified blockchain information is broadcast one by one, so that other blockchain nodes receive the blockchain information broadcast by the second blockchain node one by one. After successfully verifying the blockchain information broadcast by the second blockchain node, the blockchain information broadcast by the second blockchain node is added to the respective transaction pools of each blockchain node. Figure 4 The illustration shows a schematic diagram of an information processing procedure in the related art provided by an exemplary embodiment of this application, such as... Figure 4 As shown, Node 1 (the second blockchain node) receives N blockchain messages from the target object: T×1, T×2, ..., T×N, where N is a positive integer; it verifies each blockchain message sequentially, and after successful verification, stores each blockchain message in the information pool of the second blockchain node, and broadcasts each blockchain message to other blockchain nodes in the blockchain system, such as... Figure 4 As shown, the blockchain information is broadcast to nodes 2, 3, and 4 in the blockchain system. After receiving each piece of blockchain information, other blockchain nodes verify it one by one, and upon successful verification, add the information to their respective information pools. It should be noted that in the above process, node 1 receives and verifies each of the N pieces of blockchain information one by one. Since node 1 receives the N pieces of blockchain information at different times, the blockchain system needs to verify the N pieces of blockchain information 4N times and broadcast them N times.

[0075] In the aforementioned technologies, each blockchain node in the blockchain system needs to repeatedly verify the blockchain information, which wastes server resources in the blockchain. At the same time, when the communication volume is large, the broadcast method results in less information being transmitted each time, leading to low transmission efficiency.

[0076] Based on the problems existing in the above-mentioned related technologies, this application provides an information processing method that can reduce the repeated verification process of blockchain information by blockchain nodes and improve the transmission efficiency of blockchain information. Figure 5 This application illustrates a flowchart of an information processing method provided in an exemplary embodiment. This method can be executed by a first blockchain node in a blockchain system. The first blockchain node can be... Figure 1 In the data sharing system 100 shown, any blockchain node other than the second blockchain node, where the second blockchain node is the blockchain node that interacts with the information generating device in the blockchain system, such as... Figure 5 As shown, the information processing method may include the following steps:

[0077] Step 510: Receive a first set of information broadcast within the blockchain system; the first set of information contains at least two blockchain messages.

[0078] In this embodiment, the first information set can be an information set generated by the second blockchain node after packaging the received blockchain information; the second blockchain node is a blockchain node in the blockchain system that interacts with the information generation device. That is, in this embodiment, after receiving a piece of blockchain information, the second blockchain node does not immediately broadcast that blockchain information, but rather broadcasts multiple pieces of blockchain information in batches as an information set.

[0079] Optionally, the information generating device can send blockchain information to the second blockchain node via an SDK (Software Development Kit) or CMC (CosmosCoin); correspondingly, the second blockchain node receives the blockchain information sent by the information generating device.

[0080] Step 520: In response to receiving a second information set within a first time period after receiving the first information set, obtain the number of signature information contained in the second information set; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set.

[0081] In this embodiment, different first blockchain nodes correspond to different first durations. After receiving the first information set, the first blockchain node can start a timer, the duration of which is the first duration.

[0082] Step 530: In response to the fact that the number of signature information contained in the second information set meets the storage conditions, skip the verification process of at least two blockchain information and store at least two blockchain information into the information pool of the first blockchain node.

[0083] In other words, when the number of signatures in the second information set meets the storage conditions, it means that enough blockchain nodes have verified the blockchain information in the second information set, and the verification results indicate that the blockchain information in the second information set is legitimate. At this time, after determining that the number of signatures meets the storage conditions, the first blockchain node does not need to verify the blockchain information in the second information set anymore, and can directly add the blockchain information in the second information set to the information pool.

[0084] In summary, the information processing method provided in this application broadcasts blockchain information in the form of an information set within the blockchain system. Simultaneously, signature information is appended to the blockchain set, indicating that a blockchain node has already verified the blockchain information in the information set. When the number of signatures in the information set meets the storage requirements, the blockchain node receiving the information set does not need to verify the blockchain information in the information set and can directly store the blockchain information in the information set into its information pool. In this method, when the number of signatures in the information set meets the storage requirements, the blockchain node receiving the information set can directly store the blockchain information without verifying it, reducing the waste of blockchain system verification resources caused by repeated verification of blockchain information.

[0085] Figure 6 The diagram illustrates a flowchart of an information processing method provided in an exemplary embodiment of this application. This method can be executed by a second blockchain node in a blockchain system. The second blockchain node is a node in the blockchain system that interacts with an information generating device. This blockchain node can be... Figure 1 The blockchain nodes in the data sharing system 100 shown are as follows: Figure 6 As shown, the information processing method may include the following steps:

[0086] Step 610: Receive blockchain information sent by the information generation device.

[0087] Step 620: Package the unbroadcast blockchain information to obtain a first information set; the first information set contains at least two blockchain information items.

[0088] Optionally, when packaging unbroadcast blockchain information, the blockchain information can be packaged in batches based on the order in which the blockchain information is received, in order to obtain the first information set.

[0089] Step 630: Broadcast the first information set to the blockchain system so that the first blockchain node in the blockchain system receives the first information set. If a second information set is received within a first time period after receiving the first information set, obtain the number of signature information contained in the second information set. The second information set contains the same blockchain information as the first information set. The signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set. If the number of signature information contained in the second information set meets the storage conditions, skip the verification process of at least two blockchain information sets and store at least two blockchain information sets in the information pool of the first blockchain node.

[0090] The first blockchain node is any blockchain node in the blockchain system other than the second blockchain node.

[0091] In summary, the information processing method provided in this application broadcasts blockchain information in the form of an information set within the blockchain system. Simultaneously, signature information is appended to the blockchain set, indicating that a blockchain node has already verified the blockchain information in the information set. This allows the blockchain node receiving the information set to directly store the blockchain information in its information pool without needing to verify it, provided the number of signatures in the information set meets the storage requirements. Furthermore, this method reduces the waste of blockchain system verification resources caused by repeated verification of blockchain information when the number of signatures in the information set meets the storage requirements.

[0092] Figure 7 This application illustrates a flowchart of an exemplary embodiment of an information processing method provided. This method can be executed interactively by blockchain nodes in a blockchain system. The blockchain node can be... Figure 1 The blockchain nodes in the data sharing system 100 shown, such as Figure 7 As shown, the information processing method may include the following steps:

[0093] Step 710: The second blockchain node receives the blockchain information sent by the information generating device.

[0094] The second blockchain node is a node in the blockchain system that interacts with the information generating device.

[0095] The blockchain information can be information input by the target object based on the information generation device, and the blockchain information is sent to the second blockchain node through the information generation device. Correspondingly, the second blockchain node receives the blockchain information sent by the information generation device.

[0096] There can be time intervals between when the second blockchain node receives each piece of blockchain information. In other words, the second blockchain node can receive the blockchain information sent by the information generating device one by one.

[0097] Step 720: The second blockchain node packages the unbroadcast blockchain information to obtain a first information set; the first information set contains at least two blockchain information items.

[0098] In a blockchain system, each blockchain node broadcasts the amount of historical blockchain information contained in its own information pool. Therefore, each blockchain node stores the amount of historical blockchain information in the information pools of other blockchain nodes. Historical blockchain information refers to blockchain information that has been broadcast in the information pools of various blockchain nodes but has not yet been processed. The less information processing pressure a blockchain node has, the higher its processing efficiency for historical blockchain information, and the less amount of historical blockchain information is stored in the information pool of a blockchain node. Figure 8 This illustration shows a schematic diagram of the sharing of historical blockchain information among blockchain nodes according to an exemplary embodiment of this application, such as... Figure 8 As shown, taking four blockchain nodes as an example, each blockchain node will periodically synchronize the number of historical blockchain information in its own information pool, so that each blockchain node stores the number of its own historical blockchain information as well as the number of historical blockchain information in other blockchain nodes. Taking node 1 as an example, in node 1's information pool 810, it stores the number of historical blockchain information of node 1, as well as the number of historical blockchain information of nodes 2, 3 and 4.

[0099] In this embodiment, the quantity of historical blockchain information in the information pool of a blockchain node determines the broadcasting method when broadcasting newly received blockchain information; wherein, the broadcasting methods for broadcasting blockchain information include broadcasting message by message and broadcasting in a package; this process can be implemented as follows:

[0100] Obtain the quantity of historical blockchain information in the information pool of the second blockchain node; this historical blockchain information refers to information that has been broadcast in the information pool of the second blockchain node.

[0101] In response to the number of historical blockchain information reaching a second threshold, the unbroadcast blockchain information is packaged to obtain the first information set.

[0102] The historical blockchain information refers to information that has been broadcast but not yet processed in the information pool of the second blockchain node. The amount of historical blockchain information in the information pool is used to characterize the processing pressure of the blockchain node. The more historical blockchain information in the information pool, the greater the processing pressure of the blockchain node, and the less historical blockchain information in the information pool, the less the processing pressure of the blockchain node.

[0103] In this embodiment of the application, when the amount of historical blockchain information reaches the second threshold, it is determined that the processing pressure of the blockchain node is relatively large. At this time, the newly received blockchain information is broadcast in the form of packaged broadcast, thereby reducing the number of times each blockchain node verifies the blockchain information, reducing the number of broadcasts, thereby reducing the occupation of server resources and improving the overall performance of the blockchain.

[0104] In response to the fact that the amount of historical blockchain information has not reached the second threshold, the received blockchain information is broadcast one by one. That is, when the processing pressure of the blockchain node is relatively low, such as when the frequency of sending blockchain information by the information generation device is low and there is no accumulation of historical blockchain information in the information pool, the received blockchain information is broadcast one by one to ensure the timeliness of the broadcast of blockchain information and to reduce the problem that each set contains too little blockchain information when generating information sets.

[0105] It should be noted that the number of the aforementioned second quantity threshold can be set by relevant personnel, and this application does not impose any restrictions on it.

[0106] In this embodiment of the application, when it is determined that the historical blockchain information in the information pool of the second blockchain node needs to be broadcast to the newly received blockchain information by means of packaged broadcast, optionally, in response to the achievement of the target condition, the unbroadcasted blockchain information is packaged to obtain the first information set;

[0107] The target condition may include at least one of the following: the number of received blockchain information reaches a first quantity threshold, and the interval between the last broadcast time and the last broadcast time reaches a duration threshold.

[0108] In other words, after receiving blockchain information, the second blockchain node will not immediately broadcast the blockchain information. In one possible implementation, the second blockchain node can wait until the number of unbroadcasted blockchain information reaches a first quantity threshold before packaging the received but unbroadcasted blockchain information to obtain a first information set. Alternatively, in another possible implementation, the second blockchain node can package the blockchain information received within a cumulative time threshold since the last broadcast into a first information set. The value of this time threshold can be the time interval between two broadcasts preset by relevant personnel.

[0109] When the target conditions include a first quantity threshold for the number of unbroadcasted blockchain information and a duration threshold for the interval between the last broadcast and the current broadcast, the second blockchain node can package the blockchain information based on the order in which these two conditions are met. Specifically, if the number of unbroadcasted blockchain information reaches the first quantity threshold within the duration threshold, the unbroadcasted blockchain information can be packaged without waiting for the timeout to reach the duration threshold. If the number of unbroadcasted blockchain information does not reach the first quantity threshold within the duration threshold, the unbroadcasted blockchain information is packaged when the timeout reaches the duration threshold. For example, assuming the duration threshold is 2 seconds and the first quantity threshold is 100, if the second blockchain receives 100 pieces of blockchain information within 2 seconds after the last broadcast (e.g., 100 within 1 second), these 100 pieces of blockchain information are packaged to obtain the first information set and broadcast. If the second blockchain receives 70 pieces of blockchain information at the end of the 2-second timeout, these 70 pieces of blockchain information are packaged to obtain the first information set and broadcast.

[0110] In this embodiment, the second blockchain node verifies the received blockchain information and stores the verified information, indicating that it is legitimate, in the second blockchain node's information pool. This process can be implemented as follows:

[0111] The second blockchain node verifies the legality of the received blockchain information and obtains the second information verification result of the blockchain information; this second information verification result is used to indicate whether each piece of blockchain information is legal.

[0112] The second information verification result indicates that the blockchain information is legitimate and is stored in the information pool of the second blockchain node.

[0113] In one possible implementation, when packaging unbroadcast blockchain information, the second blockchain node packages the blockchain information that the second information verification result indicates is legitimate, thus obtaining the first information set.

[0114] Accordingly, when setting target conditions, the target conditions can be set to at least one of the following: the number of legitimate blockchain information that has not been broadcast reaches a first quantity threshold, and the interval between the last broadcast time and the last broadcast time reaches a duration threshold.

[0115] Optionally, after the second blockchain node obtains the first information set, it can add a signature to the first information set. That is, the first information set can contain the second signature information added by the second blockchain node to prove that the second blockchain node has verified the blockchain information in the first information set.

[0116] Step 730: The second blockchain node broadcasts the first information set to the blockchain system, and correspondingly, the first blockchain node receives the first information set broadcast in the blockchain system; the first information set contains at least two blockchain information items.

[0117] The first blockchain node is any blockchain node in the blockchain system other than the second blockchain node.

[0118] The second blockchain node simultaneously broadcasts the first information set to all other blockchain nodes in the blockchain system, and each blockchain node receives the first information set accordingly.

[0119] Step 740: In response to receiving a second information set within a first time period after receiving the first information set, the first blockchain node obtains the number of signature information contained in the second information set; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set.

[0120] In this embodiment of the application, the first duration corresponding to different first blockchain nodes may be different, and the first duration may be related to the node performance of the first blockchain node. The method further includes:

[0121] Based on the node performance of the first blockchain node, the first duration is obtained; this first duration is inversely correlated with the node performance of the first blockchain node.

[0122] The node performance of the first blockchain node includes at least one of the following: the amount of information in the information pool of the first blockchain node, the processor utilization rate of the first blockchain node, and the number of idle network connections of the first blockchain node.

[0123] Optionally, the amount of information in the information pool of the first blockchain may refer to the amount of historical blockchain information in the information pool of the first blockchain.

[0124] In other words, the better the performance of a blockchain node, the less historical blockchain information is in its information pool, and the shorter the initial duration. To illustrate, taking the performance of the first blockchain node, which includes the amount of information in its information pool, its processor utilization, and its idle network connections, as an example, the formula for obtaining the initial duration based on the node performance of the first blockchain node can be expressed as:

[0125] t = x*X + y / Y + z / Z + T(random1-10)

[0126] Where t represents the first duration, x represents the processor utilization (CPU utilization) of the first blockchain node, y represents the number of idle network connections of the first blockchain node, and z represents the number of information in the information pool of the first blockchain node, that is, the number of historical blockchain information contained in the information pool of the first blockchain node; X, Y, and Z are all preset values, and X, Y, and Z are all positive numbers; T(random1-10) represents selecting a random number from 1 to 10; the illustrative values ​​of X, Y, and Z can be 10, 10, and 1000, respectively.

[0127] In one possible implementation, the first duration may be determined based on the node performance of the first blockchain node in response to receiving the first set of information; or, the first duration may be updated based on a target period. Figure 9 This illustration shows a schematic diagram of updating a first duration based on a target period according to an exemplary embodiment of this application, such as... Figure 9 As shown, the update of the first duration is triggered by timer 910. When the timer reaches the interval between the target periods, the processor utilization rate of the first blockchain node, the number of idle network connections, and the amount of information in the information pool are obtained and substituted into the above formula to obtain the first duration. After that, the timer is reset and the timing starts again to realize the periodic update of the first duration.

[0128] The update cycle of the first duration of different blockchain nodes can be the same or different. In other words, the timer duration of different blockchain nodes can be the same or different, and this application does not impose any restrictions on this.

[0129] Step 750: In response to the fact that the number of signature information contained in the second information set meets the storage conditions, the first blockchain node skips the verification process of at least two blockchain information and stores at least two blockchain information into the information pool of the first blockchain node.

[0130] The second information set may be one of at least two information sets received by the first blockchain node within the first time period; and the blockchain information contained in at least two information sets is the same; and the at least two information sets are broadcast by different blockchain nodes.

[0131] In this embodiment, the storage condition includes the number of signatures reaching a signature count threshold, or the ratio of the number of signatures to the number of blockchain nodes in the blockchain system reaching a ratio threshold. In other words, when a sufficient number of blockchain nodes verify the legitimacy of at least two pieces of blockchain information and sign them, the blockchain system confirms that at least two pieces of blockchain information are legitimate. At this point, blockchain nodes that have not verified the legitimacy of at least two pieces of blockchain information can directly store them in their information pool without further verification.

[0132] Optionally, if the first blockchain node does not receive the second information set within a first time period after receiving the first information set, the first blockchain node obtains the number of signature information contained in the first information set; and determines whether to verify the blockchain information in the first information set based on the number of signature information contained in the first information set; the signature information contained in the first information set is the signature added by the second blockchain node;

[0133] If the number of signatures contained in the first information set meets the storage conditions, then the verification process for at least two blockchain messages is skipped, and at least two blockchain messages are stored in the information pool of the first blockchain node.

[0134] In this embodiment of the application, the second blockchain node is named node 1, and the first blockchain nodes are named node 2, node 3, node 4, etc. in order of the first duration of the first blockchain from shortest to longest. That is, the first duration of node 2 is less than the first duration of node 3, the first duration of node 3 is less than the first duration of node 4, and so on.

[0135] Taking a blockchain node containing two blockchain nodes as an example, where the ratio of the number of signature information in the storage conditions to the number of blockchain nodes in the blockchain system reaches 1 / 2, for node 2, within the first time period corresponding to node 2, node 2 can receive the first information set broadcast by node 1. Node 2 will verify the number of signature information contained in the first information set. Since the first information set contains the second signature information (the signature added by node 1 to the first information set), that is, the number of signature information is 1, the ratio of the number of signature information to the number of blockchain nodes is 1 / 4, which has reached 1 / 2. Therefore, node 2 does not need to verify the blockchain information in the first information set and can directly store the blockchain information in the first information set into the information pool.

[0136] Taking a blockchain system with four blockchain nodes as an example, where the ratio of the number of signatures in the storage conditions to the number of blockchain nodes is 1 / 2, for node 2, within the first time period corresponding to node 2, node 2 can receive the first information set broadcast by node 1. Node 2 will verify the number of signatures in the first information set. Since the first information set contains the second signature, i.e., the number of signatures is 1, the ratio of the number of signatures to the number of blockchain nodes is 1 / 4, which is less than 1 / 2. Therefore, node 2 needs to verify the blockchain information in the first information set; while for node 3... In the first time period corresponding to node 3, node 3 can receive the first information set broadcast by node 1 and the second information set broadcast by node 2. The first information set broadcast by node 1 contains the second signature information, and the second information set broadcast by node 2 contains both the first and second signature information. At this time, the number of signature information in the second information set is 2, and the ratio of the number of signature information to the number of blockchain nodes is 1 / 2, which has reached the ratio threshold (1 / 2). Therefore, node 3 does not need to verify the blockchain information in the second information set and can directly store the blockchain information in the second information set into the information pool.

[0137] Step 760: In response to the fact that the number of signatures contained in the second information set does not meet the storage conditions, and the second information set is the information set with the most signatures contained in the received information set, the first blockchain node verifies at least two blockchain information sets to obtain the first information verification result.

[0138] During the first time period of the first blockchain node, the first blockchain node may receive multiple sets of information sent by the first blockchain node and other blockchain nodes. Each time the first blockchain node receives a set of information, it will determine whether the number of signatures contained in the set of information meets the storage conditions. If the number of signatures contained in each set of information does not meet the storage conditions, the blockchain information in the second set of information is verified based on the set of information containing the most signatures (the second set of information) to obtain at least two verification results of blockchain information, namely the first verification result.

[0139] Step 770: In response to the first information verification result indicating that at least two blockchain information are valid, the first blockchain node stores at least two blockchain information into the first blockchain node's information pool.

[0140] In other words, after verifying the validity of at least two pieces of blockchain information contained in the second information set, the first blockchain node stores at least two pieces of blockchain information in its information pool. Since the first blockchain node receives multiple information sets containing the same blockchain information within the first time period, it only needs to verify the blockchain information in one of the information sets.

[0141] In one possible implementation, in response to the first information verification result indicating that at least two blockchain messages are valid, a first signature is added to the second information set, which is a signature added by the first blockchain node.

[0142] Broadcast the second information set containing the first signature information.

[0143] In other words, when the first blockchain node stores the blockchain information in the information pool by verifying the blockchain information contained in the information set, it also broadcasts the information set. To ensure that the information set contains the most signature information, the first blockchain node adds a signature based on the second information set with the most signature information among the received information sets, and broadcasts the second information set containing the signature added by the first blockchain node. For example, node 3 (the first blockchain node) receives information set 1 (containing node 1's signature information) and information set 2 (containing the signature information of nodes 1 and 2 respectively) broadcast by node 1. If the number of signatures in the second information set (information set 2) received by node 3 does not meet the storage conditions, it verifies the blockchain information contained in information set 2. After the blockchain information in information set 2 is verified, it adds its own signature information, i.e., node 3's signature information (the first signature information), to information set 2, generating information set 3 (containing the signature information of nodes 1, 2, and 3 respectively), and broadcasts information set 3.

[0144] In another possible implementation, since information reception may fail during the blockchain broadcast process, the signature information contained in the various information sets received by the first blockchain node within the first time period may not be complete, and there may be multiple information sets containing the same number of signatures. In this case, in response to the fact that the number of information sets containing the most signatures is greater than 1, the first blockchain node obtains any one of the information sets containing the most signatures as the second information set; and performs legality verification on at least two blockchain nodes in the second information set.

[0145] Optionally, in response to the fact that the number of information sets containing the most signature information in the received information set is greater than 1, the union of the signature information contained in each of the received information sets is obtained;

[0146] Add the first signature information to the union of the signature information contained in each information set to obtain the signature set;

[0147] Broadcast the second set of information, which includes the signature set.

[0148] Indicatively, when node 3 receives information sets within its corresponding first time period, it only receives information set 1 sent by node 1 and does not receive information set 2 sent by node 2. Therefore, when node 3 determines that the quantity contained in information set 1 does not meet the storage conditions, it will add node 3's signature information to information set 1 to obtain information set 3, and broadcast information set 3 to node 4. For node 4, within its corresponding first time period, it can receive information set 1 (containing node 1's signature information), information set 2 (containing the signature information of nodes 1 and 2), and information set 3 (containing the signature information of nodes 1 and 3). At this time, node 4 can choose either information set 2 or information set 3 as the second information set and verify the legality of the blockchain information contained in the second information set. When node 4 generates information set 4, the union of the signature information of information set 1, information set 2 and information set 3 is taken to obtain signature set 1, which contains the signature information of node 1, node 2 and node 3 respectively. After adding its own signature information (the signature information of node 4) to signature set 1, signature set 2 containing the signature information of node 4 is appended to the second information set, and the second information set with the appended signature set 2 is broadcast.

[0149] In one possible implementation, when the first blockchain node broadcasts a second set of signatures containing the first signature information, it may not broadcast to blockchain nodes that have already verified the blockchain information contained in the second set. That is, the first blockchain node broadcasts the second set of information containing the first signature information to subsequent blockchain nodes, which are other blockchain nodes within the blockchain system besides those that have already added a signature to the second set of information. For example, when node 3 broadcasts information set 3, it may broadcast to node 4 instead of nodes 1 and 2. In another possible implementation, in response to the number of signatures contained in the second set of information satisfying the storage condition, the first blockchain node, after storing at least two pieces of blockchain information in its information pool, does not need to further sign and broadcast the second set of information. For example, node 3 confirms that the number of signatures contained in the received information set 2 satisfies the storage condition; therefore, after storing the blockchain information in information set 2 in its information pool, it ends the operation, thereby reducing the waste of broadcast resources caused by meaningless broadcasts.

[0150] In one possible implementation, each blockchain node in the default blockchain system is trusted. In response to the number of signatures contained in the second information set satisfying the storage conditions, the first blockchain node can directly store at least two blockchain information entries into the first blockchain node's information pool.

[0151] Alternatively, in another possible implementation, in response to the number of signature information contained in the second information set satisfying the storage condition, the signature information contained in the second information set is verified to obtain the signature verification result;

[0152] In response to the signature verification result indicating that all signature information contained in the second information set is valid, the verification process for at least two blockchain information is skipped, and at least two blockchain information are stored in the information pool of the first blockchain node.

[0153] In other words, after the first blockchain node determines that the number of signatures in the second information set meets the storage conditions, it also needs to verify the legality of the signatures. After confirming that each signature is legal, the blockchain information is directly stored in the information pool, thereby ensuring the security of the blockchain information storage process.

[0154] In summary, the information processing method provided in this application broadcasts blockchain information in the form of an information set within the blockchain system. Simultaneously, signature information is appended to the blockchain set, indicating that a blockchain node has already verified the blockchain information in the information set. When the number of signatures in the information set meets the storage requirements, the blockchain node receiving the information set does not need to verify the blockchain information in the information set and can directly store the blockchain information in the information set into its information pool. In this method, when the number of signatures in the information set meets the storage requirements, the blockchain node receiving the information set can directly store the blockchain information without verifying it, reducing the waste of blockchain system verification resources caused by repeated verification of blockchain information.

[0155] Meanwhile, broadcasting blockchain information through information sets reduces the waste of transmission resources caused by broadcasting one message at a time, and a single broadcast can share multiple blockchain messages, thus improving the efficiency of blockchain information transmission.

[0156] Taking a blockchain system with four blockchain nodes as an example, where the storage condition is that the ratio of the number of signature information to the number of blockchain nodes in the system is 1 / 2. Figure 10 The diagram illustrates an information processing procedure provided in an exemplary embodiment of this application, such as... Figure 10 As shown, the process includes:

[0157] S1001, Node 1 receives N blockchain messages sent by the information generation device.

[0158] S1002, Node 1 verifies N pieces of blockchain information and obtains the verification result of the second piece of information.

[0159] S1003, after the second information verification result indicates that N blockchain information is valid, store the N blockchain information in information pool 1.

[0160] Information pool 1 is the information pool of node 1.

[0161] S1004, Node 1 determines whether the amount of historical blockchain information in information pool 1 has reached the second quantity threshold. If yes, execute S1005; otherwise, execute S1006.

[0162] S1005, Node 1 uses a packet broadcast method to broadcast unbroadcasted blockchain information.

[0163] S1006, Node 1 broadcasts unbroadcast blockchain information using a message-by-message broadcasting method.

[0164] When broadcasting unbroadcasted blockchain information using a packet broadcast method, the following steps are included:

[0165] S1007, Node 1 determines whether the target condition has been met. If yes, execute S1008; otherwise, return to S1007.

[0166] S1008, Node 1 packages the unbroadcast blockchain information to obtain information set A.

[0167] The information set A is appended with the signature of node 1, namely signature a.

[0168] S1009, Node 1 broadcasts the information set A with signature a to the blockchain system.

[0169] That is, node 1 broadcasts the information set A (the first information set) with signature a attached to it to other blockchain nodes in the blockchain system.

[0170] The processing procedure of node 2 when it receives information set A is as follows:

[0171] S1010, Node 2 determines whether the number of signatures in the information set meets the storage conditions. If yes, execute 1011; otherwise, execute S1012.

[0172] S1011, Store the blockchain information in the information set into information pool 2.

[0173] S1012, determine whether the timing duration of timer 1 has reached duration 1. If yes, execute S1013; otherwise, execute S1015.

[0174] The duration of 1 is determined based on the node performance of node 2.

[0175] S1013, verify the blockchain information in the information set and obtain the first verification result.

[0176] S1014, in response to the first verification result indicating that each blockchain information in the information set is valid, execute S1011.

[0177] S1015: Determine whether other information set A has been received. If yes, return to S1010; otherwise, return to S1012.

[0178] S1016, in the information set A with the signature a, add the signature b, and broadcast the information set A with the signatures a and b to the subsequent nodes.

[0179] Since the duration 1 corresponding to node 2 is the shortest among the three nodes other than node 1, node 2 can obtain the information set A with signature a attached within time 1. Since the ratio between the number of signature information and the number of blockchain nodes is less than 1 / 2, node 2 will verify at least two blockchain information in information set A and store them in the information pool after verification. At the same time, it will attach signature b to information set A with signature a attached and broadcast the information set A with signatures a and b attached to subsequent nodes.

[0180] The processing procedure of node 3 when it receives information set A is as follows:

[0181] S1017, Node 3 determines whether the number of signatures in the information set meets the storage conditions. If yes, execute 1018; otherwise, execute S1019.

[0182] S1018, Store the blockchain information in the information set into information pool 2.

[0183] S1019, determine whether the timing duration of timer 2 has reached duration 2. If yes, execute S1020; otherwise, execute S1022.

[0184] The duration of 2 is determined based on the node performance of node 3.

[0185] S1020 verifies the blockchain information in the information set and obtains the first verification result.

[0186] S1021, in response to the first verification result indicating that each blockchain information in the information set is valid, execute S1018.

[0187] S1022, determine whether other information set A has been received. If yes, return to S1017; otherwise, return to S1019.

[0188] For node 3, within its corresponding time period 2, it will first receive information set A with signature 'a' broadcast by node 1. At this time, the number of signatures has not reached the storage condition. Subsequently, it will receive information set A with signatures 'a' and 'b' broadcast by node 2. At this time, the ratio between the number of signature information and the number of blockchain nodes reaches 1 / 2, which meets the storage condition. Therefore, after verifying the signatures, node 3 can skip the step of verifying the blockchain information and directly store the blockchain information in information set A into information pool 2.

[0189] The processing of node 4 after receiving information set A is similar to that of node 3, and will not be repeated here. It should be noted that since node 3 has determined that the number of signature information has met the storage conditions after the preceding node has signed, node 3 does not need to perform subsequent signing and broadcasting operations. Therefore, for node 4, the information set A it receives comes from node 1 and node 2.

[0190] In the above process, the blockchain system needs to verify N blockchain information 2N times. Taking the target condition that the number of blockchain information that has not been broadcast reaches a first quantity threshold, and the first quantity threshold is M, the number of broadcasts by node 1 is N / M, the number of broadcasts by node 2 is N / M, the number of signature verifications is N / M, the number of broadcasts by node 3 is 0, the number of signature verifications is 2N / M, and the number of broadcasts by node 4 is 0, and the number of signature verifications is 2N / M. Therefore, in the above process, the total number of verifications of the blockchain system is 2N+5N / M, and the total number of broadcasts is 2N / M. If the first quantity threshold is set reasonably, the total number of verifications and the total number of broadcasts of the blockchain system can be less than the number of verifications and broadcasts when broadcasting N blockchain information one by one in related technologies. Taking four blockchain nodes as an example, 2N+5N / M < 4N, and 2N / M < N.

[0191] Figure 11 A block diagram of an information processing apparatus provided in an exemplary embodiment of this application is shown, such as Figure 11 As shown, the information processing device includes:

[0192] The first set receiving module 1110 is used to receive a first set of information broadcast within the blockchain system; the first set of information contains at least two blockchain information items.

[0193] The signature count acquisition module 1120 is used to respond to receiving a second information set within a first time period after receiving the first information set, and to acquire the number of signature information contained in the second information set; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set;

[0194] The information storage module 1130 is configured to, in response to the number of signature information contained in the second information set meeting the storage conditions, skip the verification process of at least two blockchain information items and store at least two blockchain information items in the information pool of the first blockchain node.

[0195] In one possible implementation, the device further includes:

[0196] The information verification module is used to verify at least two pieces of blockchain information in response to the fact that the number of signature information contained in the second information set does not meet the storage conditions, and the second information set is the information set containing the most signature information in the received information set, and to obtain a first information verification result.

[0197] The information storage module 1130 is used to store at least two pieces of blockchain information into the information pool of the first blockchain node in response to the first information verification result indicating that at least two pieces of blockchain information are legal.

[0198] In one possible implementation, the device further includes:

[0199] A signature adding module is used to add first signature information to the second information set in response to the first information verification result indicating that at least two of the blockchain information are valid. The first signature information is a signature added by the first blockchain node.

[0200] The set broadcast module is used to broadcast the second information set containing the first signature information.

[0201] In one possible implementation, the set broadcasting module is used to broadcast the second information set containing the first signature information to subsequent blockchain nodes, wherein the subsequent blockchain nodes are other blockchain nodes in the blockchain system besides the blockchain nodes that have already added a signature to the second information set.

[0202] In one possible implementation, the device further includes:

[0203] The duration acquisition module is used to acquire the first duration based on the node performance of the first blockchain node; the first duration is inversely correlated with the node performance of the first blockchain node.

[0204] The node performance of the first blockchain node includes at least one of the following: the amount of information in the information pool of the first blockchain node, the processor utilization rate of the first blockchain node, and the number of idle network connections of the first blockchain node.

[0205] In one possible implementation, the information storage module 1130 includes:

[0206] The signature verification submodule is used to verify the signature information contained in the second information set in response to the storage condition being met by the number of signature information contained in the second information set, and to obtain a signature verification result.

[0207] The information storage submodule is used to skip the verification process of at least two blockchain information items in response to the signature verification result indicating that all the signature information contained in the second information set is valid, and to store at least two blockchain information items in the information pool of the first blockchain node.

[0208] In summary, the information processing apparatus provided in this application, through its application in a first blockchain node, broadcasts blockchain information in the form of an information set within the blockchain system. Simultaneously, signature information is attached to the blockchain set, indicating that a blockchain node has already verified the blockchain information in the information set. When the number of signatures in the information set meets the storage conditions, the blockchain node receiving the information set does not need to verify the blockchain information in the information set and can directly store the blockchain information in the information set into its information pool. In the above method, when the number of signatures in the information set meets the storage conditions, the blockchain node receiving the information set can directly store the blockchain information without verifying it, reducing the waste of blockchain system verification resources caused by repeated verification of blockchain information.

[0209] Figure 12 A block diagram of an information processing apparatus provided in an exemplary embodiment of this application is shown, such as Figure 12 As shown, the information processing device includes:

[0210] Information receiving module 1210 is used to receive blockchain information sent by the information generating device;

[0211] The information packaging module 1220 is used to package the unbroadcast blockchain information to obtain a first information set; the first information set contains at least two pieces of blockchain information.

[0212] The first set broadcast module 1230 is used to broadcast the first information set to the blockchain system, so that the first blockchain node in the blockchain system receives the first information set, and if it receives a second information set within a first time period after receiving the first information set, it obtains the number of signature information contained in the second information set; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set; if the number of signature information contained in the second information set meets the storage conditions, it skips the verification process of at least two pieces of blockchain information and stores at least two pieces of blockchain information in the information pool of the first blockchain node.

[0213] In one possible implementation, the information packaging module 1220 is used to package the unbroadcast blockchain information in response to the achievement of a target condition, thereby obtaining the first information set;

[0214] The target conditions include at least one of the following: the number of blockchain information that has not been broadcast reaches a first quantity threshold, and the interval between the last broadcast time and the last broadcast time reaches a duration threshold.

[0215] In one possible implementation, the device further includes:

[0216] The information verification module is used to verify the legality of the unbroadcast blockchain information before the information packaging module 1220 packages the unbroadcast blockchain information to obtain the first information set, and to obtain the second information verification result of the blockchain information.

[0217] The information packaging module 1220 is used to package the blockchain information in which the second information verification result indicates that it is legitimate, in response to the achievement of the target condition, to obtain the first information set.

[0218] In one possible implementation, the device further includes:

[0219] The information quantity acquisition module is used to acquire the quantity of historical blockchain information in the information pool of the second blockchain node before the information packaging module 1220 packages the unbroadcast blockchain information to obtain the first information set; the historical blockchain information refers to information that has been broadcast in the information pool of the second blockchain node.

[0220] The information packaging module 1220 is used to package the unbroadcasted blockchain information in response to the number of historical blockchain information reaching a second quantity threshold, thereby obtaining the first information set.

[0221] In summary, the information processing apparatus provided in this application, through its application in a second blockchain node, broadcasts blockchain information in the form of an information set within the blockchain system. Simultaneously, signature information is attached to the blockchain set, indicating that a blockchain node has already verified the blockchain information in the information set. This allows the blockchain node receiving the information set to directly store the blockchain information in its information pool without needing to verify it, when the number of signatures in the information set meets the storage requirements. In this method, when the number of signatures in the information set meets the storage requirements, the blockchain node receiving the information set can directly store the blockchain information without verification, reducing the waste of blockchain system verification resources caused by repeated verification of blockchain information.

[0222] Figure 13 A structural block diagram of a computer device 1300 provided in an exemplary embodiment of this application is shown. This computer device can be implemented as a blockchain node or information generation device as described above in this application. The computer device 1300 includes a processor (e.g., a central processing unit (CPU)) 1301, a system memory 1304 including random access memory (RAM) 1302 and read-only memory (ROM) 1303, and a system bus 1305 connecting the system memory 1304 and the central processing unit 1301. The computer device 1300 also includes a mass storage device 1306 for storing an operating system 1309, application programs 1310, and other program modules 1311.

[0223] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include RAM, ROM, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other solid-state storage technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage media are not limited to the above-mentioned types. The system memory 1304 and mass storage device 1306 described above can be collectively referred to as memory.

[0224] According to various embodiments of this application, the computer device 1300 can also be connected to a remote computer on a network, such as the Internet. That is, the computer device 1300 can be connected to a network via a network interface unit 1307 connected to the system bus 1305, or the network interface unit 1307 can be used to connect to other types of networks or remote computer systems (not shown).

[0225] The memory also stores at least one computer program, and the processor 1301 executes the at least one computer program to implement all or part of the steps in the information processing methods shown in the above embodiments.

[0226] In one exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one computer program that is loaded and executed by a processor to implement all or part of the steps in the information processing method described above. For example, the computer-readable storage medium may be a read-only memory, a random access memory, a read-only optical disc, a magnetic tape, a floppy disk, or an optical data storage device, etc.

[0227] In one exemplary embodiment, a computer program product is also provided, comprising at least one computer program that is loaded and executed by a processor. Figure 5 , Figure 6 , Figure 7 or Figure 10All or part of the steps of the information processing method shown in any of the embodiments.

[0228] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0229] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. An information processing method, characterized in that, The method is executed by the first blockchain node in the blockchain system, and the method includes: Receive a first set of information broadcast within the blockchain system; the first set of information contains at least two blockchain messages. In response to receiving a second information set within a first time period after receiving the first information set, the number of signature information contained in the second information set is obtained; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set; In response to the number of signature information contained in the second information set satisfying the storage conditions, the verification process for at least two blockchain information items is skipped, and at least two blockchain information items are stored in the information pool of the first blockchain node.

2. The method according to claim 1, characterized in that, The method further includes: In response to the fact that the number of signature information contained in the second information set does not meet the storage condition, and the second information set is the information set containing the most signature information in the received information set, at least two blockchain information sets are verified to obtain a first information verification result; In response to the first information verification result indicating that at least two of the blockchain information are valid, at least two of the blockchain information are stored in the information pool of the first blockchain node.

3. The method according to claim 2, characterized in that, The method further includes: In response to the first information verification result indicating that at least two of the blockchain information are valid, a first signature information is added to the second information set, wherein the first signature information is a signature added by the first blockchain node; Broadcast the second information set containing the first signature information.

4. The method according to claim 3, characterized in that, The broadcasting of the second information set containing the first signature information includes: The second information set containing the first signature information is broadcast to subsequent blockchain nodes, which are other blockchain nodes in the blockchain system besides those that have already added a signature to the second information set.

5. The method according to claim 1, characterized in that, The method further includes: The first duration is obtained based on the node performance of the first blockchain node; the first duration is inversely correlated with the node performance of the first blockchain node. The node performance of the first blockchain node includes at least one of the following: the amount of information in the information pool of the first blockchain node, the processor utilization rate of the first blockchain node, and the number of idle network connections of the first blockchain node.

6. The method according to claim 1, characterized in that, The response that the number of signatures contained in the second information set meets the storage condition, skipping the verification process for at least two blockchain messages, and storing at least two blockchain messages in the information pool of the first blockchain node includes: In response to the fact that the number of signature information contained in the second information set meets the storage condition, the signature information contained in the second information set is verified to obtain a signature verification result; In response to the signature verification result indicating that all the signature information contained in the second information set is valid, the verification process for at least two of the blockchain information is skipped, and at least two of the blockchain information are stored in the information pool of the first blockchain node.

7. An information processing method, characterized in that, The method is executed by a second blockchain node in the blockchain system, which is a node in the blockchain system that interacts with the information generating device. The method includes: Receive blockchain information sent by the information generation device; The unbroadcast blockchain information is packaged to obtain a first information set; the first information set contains at least two pieces of the blockchain information. The first information set is broadcast to the blockchain system, so that the first blockchain node in the blockchain system receives the first information set. If a second information set is received within a first time period after receiving the first information set, the number of signature information contained in the second information set is obtained. The second information set contains the same blockchain information as the first information set. The signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set. If the number of signature information contained in the second information set meets the storage conditions, the verification process for at least two pieces of blockchain information is skipped, and at least two pieces of blockchain information are stored in the information pool of the first blockchain node.

8. The method according to claim 7, characterized in that, The step of packaging the unbroadcast blockchain information to obtain a first information set includes: In response to the achievement of the target condition, the unbroadcast blockchain information is packaged to obtain the first information set; The target conditions include at least one of the following: the number of blockchain information that has not been broadcast reaches a first quantity threshold, and the interval between the last broadcast time and the last broadcast time reaches a duration threshold.

9. The method according to claim 8, characterized in that, Before packaging the unbroadcast blockchain information to obtain the first information set in response to the achievement of the target condition, the method further includes: The legality of the unbroadcasted blockchain information is verified to obtain a second information verification result for the blockchain information; In response to reaching the target condition, the unbroadcast blockchain information is packaged to obtain the first information set, including: In response to the achievement of the target condition, the second information verification result indicating that the blockchain information is legitimate among the unbroadcast blockchain information is packaged to obtain the first information set.

10. The method according to claim 7, characterized in that, Before packaging the unbroadcast blockchain information to obtain the first information set, the method further includes: Obtain the quantity of historical blockchain information in the information pool of the second blockchain node; the historical blockchain information refers to information that has been broadcast in the information pool of the second blockchain node. The step of packaging the unbroadcast blockchain information to obtain a first information set includes: In response to the number of historical blockchain information reaching a second quantity threshold, the unbroadcast blockchain information is packaged to obtain the first information set.

11. An information processing device, characterized in that, The device includes: The first set receiving module is used to receive a first set of information broadcast within the blockchain system; the first set of information contains at least two blockchain messages. The signature count acquisition module is used to respond to receiving a second information set within a first time period after receiving the first information set, and to acquire the number of signature information contained in the second information set; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set. An information storage module is configured to, in response to the number of signature information contained in the second information set satisfying the storage conditions, skip the verification process of at least two blockchain information items and store at least two blockchain information items in the information pool of the first blockchain node.

12. An information processing device, characterized in that, The device includes: The information receiving module is used to receive blockchain information sent by the information generating device; An information packaging module is used to package the unbroadcast blockchain information to obtain a first information set; the first information set contains at least two pieces of the blockchain information. The first set broadcast module is used to broadcast the first information set to the blockchain system, so that the first blockchain node in the blockchain system receives the first information set, and if it receives a second information set within a first time period after receiving the first information set, it obtains the number of signature information contained in the second information set; the second information set contains the same blockchain information as the first information set; the signature information is a signature added by a blockchain node that has verified the blockchain information contained in the second information set; if the number of signature information contained in the second information set meets the storage conditions, the verification process for at least two pieces of blockchain information is skipped, and at least two pieces of blockchain information are stored in the information pool of the first blockchain node.

13. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, which is loaded and executed by the processor to implement the information processing method as described in any one of claims 1 to 10.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the information processing method as described in any one of claims 1 to 10.

15. A computer program product, characterized in that, The computer program product includes at least one computer program, which is loaded and executed by a processor to implement the information processing method as described in any one of claims 1 to 10.