Data processing method, device and computer device based on blockchain network

By centralizing data verification and endorsement signing within a management network, the method addresses inefficiencies in blockchain transaction processes, improving network performance by reducing consensus time and enhancing transaction efficiency.

JP7551222B2Active Publication Date: 2024-09-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2023547487
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-02-07
Filing Date
2022-01-24
Publication Date
2024-09-17
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

The transaction process in blockchain networks is inefficient due to the time-consuming consensus process, as each transaction requires participation and verification from multiple nodes, leading to reduced performance.

Method used

A data processing method and apparatus that centralizes data verification and endorsement signing operations within a management network, using endorsement devices to verify and sign transactions on behalf of node devices, thereby reducing the need for node participation in consensus processes.

Benefits of technology

This approach significantly speeds up transaction processing by eliminating the need for node involvement in consensus, enhancing the overall performance and efficiency of blockchain networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007551222000006
    Figure 0007551222000006
  • Figure 0007551222000005
    Figure 0007551222000005
  • Figure 0007551222000002
    Figure 0007551222000002
Patent Text Reader

Abstract

A data processing method, apparatus and computer device based on a blockchain network, the method includes the steps of: a management device receiving a transaction request having transaction data and reference signature data, determining a target endorsement device, and sending the transaction request to the target endorsement device; if the verification of the transaction data and the reference signature data is successful, the target endorsement device determining a matching node device, obtaining a signature key of the matching node device, determining data to be signed based on the transaction data, and performing an endorsement signature on the data to be signed using the signature key of the matching node device to obtain endorsement signature data, and sending the endorsement signature data to the management device; and the management device generating a transaction block based on the endorsement signature data and the transaction data. The above method can effectively save the time required for consensus, thereby improving the transaction performance of the entire network.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to a Chinese patent application bearing application number 2021101759601 and entitled "Data processing method, apparatus and computer equipment based on blockchain network" filed with the China Patent Office on February 7, 2021, the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the technical field of blockchain, and in particular to data processing technology in a blockchain network. [Background technology]

[0003] With the advent of the age of science and technology and the development of the mobile Internet, network innovation is becoming increasingly rapid, realizing information integration in the same field or multiple fields, providing users with services such as all-round information solutions, and also facing new challenges such as improving system structure, shifting the support center of gravity, etc. In this context, blockchain technology, as a specific realization technology of distributed ledger, has gradually become the preferred mode of data storage and data transaction in various fields due to its advantages in data storage and management. Summary of the Invention [Problem to be solved by the invention]

[0004] The transaction process realized based on the blockchain network has a great impact on transaction performance, and usually, each transaction in the blockchain network needs to be executed by each node or recorded in the blockchain after being agreed upon. In order to ensure the accuracy of the agreement result, most nodes in the blockchain network are usually set as consensus nodes, and all nodes need to participate in each agreement process, so the agreement process takes time and the efficiency of transaction performance is reduced. Thus, improving the transaction performance of the blockchain network becomes a problem to be solved.

[0005] The embodiments of the present application provide a data processing method, apparatus, and computer device based on a blockchain network, which can effectively save the time required for consensus and improve the transaction performance of the entire blockchain network. [Means for solving the problem]

[0006] According to one aspect, an embodiment of the present application provides a data processing method based on a blockchain network, the blockchain network being included in a data processing network, the blockchain network including a plurality of node devices, the data processing network further including a management network, the management network including a management apparatus and one or more endorsement devices, the method being executed by the endorsement device in the management network, the method including: acquiring a transaction request having transaction data and reference signature data corresponding to the transaction data; verifying the transaction data and the reference signature data; if the verification of the transaction data and the reference signature data is successful, determining a matching node device from a target node device and acquiring a signature key of the matching node device, the target node device being determined from a plurality of node devices included in the blockchain network according to an instruction of an endorsement policy; determining data to be signed based on the transaction data, and performing an endorsement signature on the data to be signed using the signature key of the matching node device to obtain endorsement signature data; and transmitting the endorsement signature data to the management device, so that the management apparatus generates a transaction block based on the endorsement signature data and the transaction data.

[0007] According to one aspect, an embodiment of the present application provides another data processing method based on a blockchain network, the blockchain network is included in a data processing network, the blockchain network includes a plurality of node devices, the data processing network further includes a management network, the management network includes a management device, and one or more endorsement devices, and the method is executed by the management device in the management network, The method includes obtaining a transaction request having transaction data and reference signature data corresponding to the transaction data; determining a target endorsement device from one or more endorsement devices included in the managed network; sending the transaction request to the target endorsement device so that the target endorsement device obtains endorsement signature data based on the transaction data and the reference signature data; and receiving the endorsement signature data sent by the target endorsement device and generating a transaction block based on the endorsement signature data and the transaction data.

[0008] According to one aspect, an embodiment of the present application provides a data processing device based on a blockchain network, the blockchain network is included in a data processing network, the blockchain network includes a plurality of node devices, the data processing network further includes a management network, the management network includes a management device, and one or more endorsement devices, the endorsement devices are disposed in the management network; The blockchain network includes an acquisition unit for acquiring a transaction request having transaction data and reference signature data corresponding to the transaction data, a processing unit for verifying the transaction data and the reference signature data, and a transceiver unit for transmitting the endorsement signature data to the management device so that the management device generates a transaction block based on the endorsement signature data and the transaction data, wherein the processing unit is further configured to, if the verification of the transaction data and the reference signature data is successful, determine a matching node device from a target node device and obtain a signature key of the matching node device, wherein the target node device is determined from a plurality of node devices included in the blockchain network in accordance with an instruction of an endorsement policy, and the processing unit is further configured to determine data to be signed based on the transaction data, and obtain the endorsement signature data by performing an endorsement signature on the data to be signed using the signature key of the matching node device.

[0009] According to one aspect, an embodiment of the present application provides a data processing device based on another blockchain network, the blockchain network is included in a data processing network, the blockchain network includes a plurality of node devices, the data processing network further includes a management network, the management network includes a management device and one or more endorsement devices, the management device is disposed in the management network; The management network includes an acquisition unit for acquiring a transaction request having transaction data and reference signature data corresponding to the transaction data, a processing unit for determining a target endorsement device from one or more endorsement devices included in the management network, and a transceiver unit for sending the transaction request to the target endorsement device, such that the target endorsement device obtains endorsement signature data based on the transaction data and the reference signature data, wherein the transceiver unit is further configured to receive the endorsement signature data sent by the target endorsement device, and the processing unit is further configured to generate a transaction block based on the endorsement signature data and the transaction data.

[0010] According to one aspect, an embodiment of the present application provides a computing device, including a processor, a communication interface, and a memory connected to each other, the memory storing executable program code, and the processor configured to execute a data processing method based on a blockchain network provided in the embodiment of the present application by calling the executable program code.

[0011] Accordingly, the embodiments of the present application further provide a computer-readable storage medium having stored thereon a computer program that, when executed on a computer, causes the computer to perform the data processing method based on a blockchain network provided in the embodiments of the present application.

[0012] Accordingly, an embodiment of the present application further provides a computer program product or a computer program, said computer program product or computer program comprising computer commands, said computer commands being stored in a computer-readable storage medium, a processor of a computing device reading said computer commands from said computer-readable storage medium, and said processor executing said computer commands, thereby causing said computing device to perform the above method. Effect of the Invention

[0013] In an embodiment of the present application, a management network is set up in the data processing network, and the endorsement device in the management network verifies the data in the transaction request, and after the data verification is successful, according to the instructions of the endorsement policy, the signature key of the corresponding node device is used to perform an endorsement signature on the data to be signed determined based on the transaction data, to obtain endorsement signature data. By using this method, the management network can centrally and effectively complete the data verification and endorsement signature operation, that is, complete the agreement operation, and the node devices in the block chain network do not need to participate in the transaction agreement, which effectively saves the time required for agreement and improves the processing efficiency of the transaction process, thereby improving the transaction performance of the entire block chain network. [Brief description of the drawings]

[0014] [Figure 1] 1 is a schematic architecture diagram of a data processing network provided in an embodiment of the present application; [Diagram 2] FIG. 2 is a schematic architecture diagram of another data processing network provided in an embodiment of the present application; [Diagram 2] FIG. 2 is a schematic diagram of the flow of a data processing method provided in an embodiment of the present application. [Diagram 3] 1 illustrates a correspondence relationship between endorsement devices and node devices in an embodiment of the present application. [Figure 4] Shows the transaction process on the Fabric blockchain. [Diagram 5] 1 is an architecture of a cross-domain blockchain node governance solution provided in an embodiment of the present application. [Figure 6] 1 is another architecture of a cross-domain blockchain node governance solution provided in an embodiment of the present application. [Figure 7] FIG. 1 is a structural schematic diagram of a data processing device provided in an embodiment of the present application; [Figure 8] FIG. 2 is a structural schematic diagram of a computer device provided in an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] Hereinafter, the technical solutions of the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application, and obviously, the described embodiments are not all the embodiments, but only some of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without any creative work also belong to the protection scope of the present application.

[0016] In order to better understand the embodiments of the present application, some terms related to the embodiments of the present application are introduced below.

[0017] Blockchain: A decentralized database and an intelligent peer-to-peer network that recognizes, propagates, and records information through a distributed database. It is also known as the Internet of Value. Blockchain uses consensus mechanisms, encryption, and other technologies to ensure the accuracy of data transmission and search, and its characteristics include immutability and traceability. Blockchain is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, and encryption algorithms, and includes a string of data blocks that are generated by linking them using encryption methods, and each data block contains network transaction information for verifying the validity of the information (anti-counterfeiting) and generating the next block.

[0018] Generally, a blockchain may include a blockchain lower layer platform, a platform product service layer, and an application service layer. The blockchain lower layer platform may include processing modules such as user management, basic services, smart contracts, and operation monitoring. Here, the user management module is responsible for managing the identity information of all participants in the blockchain, including the generation and maintenance of public / private keys (account management), key management, and the maintenance of the correspondence between the user's true identity and the blockchain address (authority management), and when authority is granted, monitors and audits the transaction status of a certain true identity and provides the setting of risk control rules (risk control audit). The basic service module is arranged in all node devices in the blockchain, verifies the validity of a traffic request, and records the valid request in a storage medium after forming a consensus, and first performs analysis and authentication processing (interface adaptation) for interface adaptability for a new traffic request, and then encrypts the traffic information by a consensus algorithm (consensus management), and after encryption, transmits it completely to the shared ledger (network communication) and records and stores it. The smart contract module is responsible for registering and issuing contracts, as well as triggering and executing contracts. Developers define contract logic in a programming language and send it to the blockchain (contract registration), and according to the logic of the contract terms, call and execute keys or other event triggers to complete the contract logic and provide upgrade and cancellation functions for the contract. The operation monitoring module is mainly responsible for departments, configuration modifications, contract settings, cloud response, and visualization output of real-time status during the product launch process, such as alarms, network status monitoring, and node device health status monitoring.

[0019] The platform product service layer provides the basic functions and implementation framework of typical applications, and developers can realize the traffic logic blockchain by overlaying traffic characteristics based on these basic functions. The application service layer provides blockchain-based application services to traffic participants for use.

[0020] Trusted Computing (TC): A technology promoted and developed by the Trusted Computing Group (also known as the Trusted Computing Cluster, abbreviated as TCPA). Trusted Computing improves the overall security of the system by widely using trusted computing platforms based on hardware security modules in computing and communication systems. The endorsement key is an RSA public-private key pair with a specific number of bits (e.g., 2048 bits), which is randomly generated and immutable when a computer device is shipped. The private key is stored on the computer device, and the public key can be used to authenticate and encrypt sensitive data sent to the computer device.

[0021] Cross-domain: In the same blockchain network, if nodes are not located in the same cluster, cross-domain access is required between the nodes. The cross-domain may be cross-cluster, cross-region, etc.

[0022] Consortium blockchain: Intended only for members of a specific group and limited third parties, within which several pre-selected nodes are designated as bookkeepers, and the generation of each block is jointly decided by all the pre-selected nodes.

[0023] Endorsement mechanism: In blockchains (e.g., Hyperledger Fabric blockchains in consortium blockchains), some nodes are responsible for endorsement tasks and can define which nodes should execute a transaction using endorsement policies. For blockchain transactions, the new idea is to separate the execution of smart contracts from the update of the ledger, which improves transaction throughput, supports finer-grained private control, and achieves more flexible and powerful smart contracts. The factor for achieving these properties is to perform explicit transaction endorsement before the transaction is added to the ledger. In blockchains, endorsement can be understood as a process and mechanism in which a node in charge of the endorsement task verifies the transaction information of a blockchain transaction and declares the validity of this transaction for transactions whose validation is successful. The node in charge of the endorsement task must prove its validity based on a valid signature of the expected information of the valid certificate.

[0024] Endorsement policy: It can be understood as a condition that must be met for the endorsement of a transaction. That is, the conditions specified in the endorsement policy must be met to obtain a conclusion of successful endorsement. A blockchain node stores a set of pre-specified endorsement policies, and the condition determination for endorsement is realized in the chain code, because all transactions must comply with the endorsement policy and only endorsed transactions are legitimate and approved. Therefore, an endorsement policy can also be a condition used to instruct a selected node to decide whether a transaction is correct or not.

[0025] Some example endorsement policies are as follows: nodes A, B, C, and F must all endorse transactions of type T, most nodes in the channel must endorse transactions of type U, and at least three nodes among A, B, C, D, E, F, and G must endorse transactions of type V.

[0026] In order to reduce the time consumption of the consensus process in a blockchain network and improve the transaction performance based on the blockchain network, an embodiment of the present application provides a data processing method based on a blockchain network.

[0027] The data processing method provided in the embodiments of the present application is based on block chain technology. In one embodiment, the data processing method provided in the embodiments of the present application may also be based on cloud technology. Cloud technology is a general term for network technology, information technology, integration technology, management infrastructure technology, application technology, etc. applied under the business form of cloud computing, and is flexible and convenient to configure a resource pool and use it as needed. The data processing method provided in the embodiments of the present application mainly relates to cloud storage and cloud database in cloud technology.

[0028] The data processing method provided in the embodiments of the present application is applied to a data processing network, which includes a client 10, a management network 11, and a blockchain network 12, as shown in FIG. 1a or FIG. 1b. The management network 11 includes a management device and one or more endorsement devices, and the blockchain network 12 includes a plurality of node devices. In one embodiment, as shown in FIG. 1a, the client 10 is not located in the management network 11 or the blockchain network 12. In another embodiment, as shown in FIG. 1b, the client 10 may be located in the blockchain network 12.

[0029] In one embodiment, as shown in FIG. 1a or 1b, the management network 11 and the blockchain network 12 may be two different networks, that is, the management network 11 exists independently of the blockchain network 12. In another embodiment, the management network may be located in the blockchain network, in which case the management device and the endorsement device in the management network may be a node device in the blockchain network, or may be a normal computer device other than the node device in the blockchain network.

[0030] The management network 11 may be implemented based on cloud technology, specifically based on Tencent Cloud or Alibaba Cloud, etc. In one embodiment, the endorsement device may be an encryptor, specifically, may be a physical encryptor or a virtual encryptor. If the endorsement device is a virtual encryptor, the virtual encryptor needs to be installed in a computer device. If the management network includes a management device and an endorsement device, the endorsement device may be a part of the management device, that is, the endorsement device is located in the management device.

[0031] The device in the management network 11 (at least one of the endorsement device and the management device) can host the signing keys of at least some of the node devices in the blockchain network based on trusted computing, and may store the signing keys of each node device in the blockchain network, or may store the signing keys of some of the node devices in the blockchain network, which are node devices that may be configured to be responsible for the endorsement task specified by the endorsement policy. In one embodiment, the signing key may be a private key in the key pair of the node device. The key pair may be obtained by calculating with an RSA encryption algorithm, and includes a private key and a public key, and generally, the private key is used for signing and the public key is used for de-signing. The endorsement device in the management network provides services such as data verification (including signature verification, transaction data verification, etc.) and endorsement signing on behalf of the node devices in the blockchain network, and the management device in the management network can provide services such as block generation on behalf of the node devices in the blockchain network. The endorsement signing is a consensus process.

[0032] In the embodiment of the present application, the client, the management device, the endorsement device, and the node device may be a server or a terminal. The server may be an independent physical server, a server cluster or a distributed system consisting of multiple physical servers, and may further be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, big data, and artificial intelligence platforms. The terminal may be, but is not limited to, a smartphone, a tablet computer, a laptop, a desktop computer, a smart speaker, a smart watch, and the like. The client, the management device, the endorsement device, and the node device may be directly or indirectly connected to each other by wired or wireless communication, and the present application does not limit the same.

[0033] According to the data processing method provided in the embodiment of the present application, a management network is installed in the data processing network, and an endorsement device in the management network verifies the data in the transaction request of a client. After the data verification is successful, the endorsement signature data is obtained by using the signing key of the corresponding node device to perform an endorsement signature on the data to be signed determined based on the transaction data in accordance with the instructions of the endorsement policy, so that the management network can centrally and efficiently complete the data verification and endorsement signature operations, that is, complete the agreement operation, and the nodes in the blockchain network do not need to participate in the transaction agreement, which effectively saves the time required for agreement, improves the processing efficiency of the transaction process, and further achieves the effect of improving the transaction performance of the entire network.

[0034] Referring to Figure 2, a flow diagram of a data processing method based on a blockchain network provided in an embodiment of the present application is shown. The data processing method based on a blockchain network described in the embodiment of the present application can be applied to the data processing network of Figure 1a or Figure 1b, and the method includes, but is not limited to, the following steps:

[0035] At S201, a client sends a transaction request having transaction data and reference signature data corresponding to the transaction data to a management device in a management network.

[0036] In one embodiment, the reference signature data can be obtained by the client signing the transaction data with the private key of its key pair, which may be obtained by computing an RSA encryption algorithm and includes a private key and a public key, where typically the private key is used for signing and the public key is used for de-signing.

[0037] In S202, the management device obtains a transaction request sent by a client, and determines a target endorsement device from one or more endorsement devices included in the management network.

[0038] For different storage situations of the node device's signing key, the following two methods can be used to determine the target endorsement device.

[0039] Method 1: Each endorsement device in the management network stores the signing keys of some node devices in the blockchain network, and each endorsement device stores the signing keys of different node devices, respectively. The node devices corresponding to all the signing keys stored in each endorsement device in the management network may be all the node devices in the blockchain network, or may be some of the node devices in the blockchain network, and the some of the node devices are node devices that may be configured to be in charge of endorsement tasks instructed by the endorsement policy.

[0040] As shown in Figure 3, each endorsement device in the management network stores the signing keys of one or more node devices in the blockchain network. For example, endorsement device 1 stores the signing keys of X node devices numbered 1-X in the blockchain network, and endorsement device 4 stores the signing key of a node device numbered Z+1 in the blockchain network.

[0041] In one embodiment, multiple node devices in a blockchain network may be installed in different clusters. For example, as shown in Figure 3, node devices with numbers 1 to X are installed in one cluster, node devices with numbers X+1 to Y are installed in another cluster, and node devices with numbers Y+1 to Z are installed in another cluster. An endorsement device in a management network stores the signing keys of one or more node devices belonging to the same cluster in the blockchain network.

[0042] After receiving the transaction request sent by the client, the management device determines a target node device from multiple node devices included in the blockchain network according to the instructions of the endorsement policy, and the target node device is one or more. The determined target node device is a node device responsible for the endorsement task for the current transaction according to the instructions of the endorsement policy. For example, if a client initiates a transaction of type T, according to the instructions of a certain endorsement policy, node devices A, B, C, and F in the blockchain network need to endorse the transaction of type T, and the node devices A, B, C, and F in the blockchain network can be determined as the target node devices.

[0043] Furthermore, the management device determines, based on the recorded status of each endorsement device storing the signing key of the node device and the determined target node device, from one or more endorsement devices included in the management network, an endorsement device in which the signing key of the target node device is stored, and determines the endorsement device in which the signing key of the target node device is stored as the target endorsement device. The determined target endorsement device is one or more, and the stored signing keys include the signing keys of each target node device. When the management device transmits a transaction request from a client to the target endorsement device, it may transmit information of the target node device (e.g., node number, etc.) together, or may transmit information of the target node device whose corresponding signing key is stored in the target endorsement device.

[0044] Method 2: Each endorsement device in the management network stores the signing key of each node device in the blockchain network, or stores the signing keys of the same part of node devices in the blockchain network, which are all node devices that may be configured to be responsible for endorsement tasks dictated by the endorsement policy.

[0045] After receiving the transaction request sent by the client, the management equipment obtains the current state parameters of each endorsement device in the management network, and the state parameters may include parameters for indicating network conditions, parameters for indicating load conditions, etc. Based on the current state parameters of each endorsement device, a target endorsement device for responding to the transaction request is determined from one or more endorsement devices included in the management network, and specifically, an endorsement device with a good current network condition and a small load can be determined as the target endorsement device for responding to the transaction request. The determined target endorsement device may be one or more.

[0046] In one embodiment, a selection order of each endorsement device is set in advance, and one or more target endorsement devices for currently providing endorsement services can be selected from one or more endorsement devices included in the management network according to the selection order. For example, the selection order of the set endorsement devices is (endorsement device 1) → (endorsement devices 2, 3) → (endorsement devices 4, 5). If endorsement device 1 provided an endorsement service last time, endorsement devices 2 and 3 will be selected to provide the endorsement service this time.

[0047] In one embodiment, when a plurality of target endorsement devices are determined, the management device can set the endorsement tasks to be handled by each endorsement device accordingly. For example, according to the instruction of the endorsement policy, target node devices 1 to 10 need to be in charge of endorsement tasks for the current transaction needs, and if endorsement devices 2 and 3 are selected this time to provide an endorsement service, endorsement device 2 is arranged to be in charge of endorsement tasks corresponding to target node devices 1 to 3, and endorsement device 3 is arranged to be in charge of endorsement tasks corresponding to target node devices 4 to 10. When the management device transmits a transaction request of a client to a target endorsement device, it may also transmit endorsement task instruction information corresponding to the target endorsement device, and the endorsement task instruction information is used to indicate the endorsement task corresponding to the target node device that the target endorsement device needs to be in charge of.

[0048] In one embodiment, the transaction request further includes a device identifier of the client, and after receiving the transaction request sent by the client, the management device first determines whether the client has the authority to initiate the transaction request, and detects whether the device identifier of the client is in a predetermined whitelist, and if so, determines that the client has the authority to initiate the transaction request, and if not, determines that the client does not have the authority to initiate the transaction request. If the client has the authority to initiate the transaction request, it determines a target endorsement device from one or more endorsement devices included in the management network. If the client does not have the authority to initiate the transaction request, it directly rejects the transaction request of the client.

[0049] In S203, the management device sends the client's transaction request to the target endorsement device.

[0050] At S204, the target endorsement device obtains the client's transaction request and verifies the transaction data and the reference signature data included in the transaction request.

[0051] In one embodiment, when the reference signature data is obtained by signing the transaction data with a private key in the client's key pair, the target endorsement device obtains a public key in the client's key pair, and uses the public key to design the reference signature data to obtain designed data, and if the designed data matches the transaction data, it indicates that the transaction data has not been tampered with, and further detects whether the transaction data is executable, and detects whether a transaction corresponding to the transaction data is legitimate and has been executed, etc., and if it is legitimate and has not been executed, it determines that it is executable, and if the transaction data is executable, it determines that the verification of the transaction data and the reference signature data in the transaction request is successful.

[0052] In one embodiment, the client's public key may be included in the transaction request, may be stored in each endorsement device, and may also be stored in the management device. If the client's public key is stored in the management device, the target endorsement device may actively obtain the client's public key from the management device, and the management device may send the client's public key together with the target endorsement device when sending the client's transaction request to the target node device.

[0053] In S205, if the verification of the transaction data and the reference signature data is successful, the target endorsement device determines a matching node device from the target node device and obtains the signing key of the matching node device, and the target node device is determined from the multiple node devices included in the blockchain network in accordance with the instructions of the endorsement policy.

[0054] In an embodiment of the present application, if the verification of the transaction data and the reference signature data is successful, the target endorsement device determines which target node device is responsible for the endorsement task corresponding to it, i.e., the matching node device, which may be one or more, and is included in the one or more target node devices responsible for the endorsement task for the current transaction as instructed by the endorsement policy.

[0055] For the situation indicated by the first method in step S202, the matching node device is the target node device of the one or more target node devices whose corresponding signature key is stored in the target endorsement device. The target endorsement device may first determine one or more target node devices that need to be responsible for the endorsement task for the current transaction from the multiple node devices included in the blockchain network according to the indication of the endorsement policy, and then determine the target node device whose corresponding signature key is stored from the one or more target node devices as the matching node device. In another embodiment, when the target endorsement device receives the information of the target node device whose corresponding signature key is stored in the target endorsement device sent by the management device, it directly determines the target node device indicated by the information as the matching node device.

[0056] For the situation indicated by Scheme 2 in step S202, the matching node device is a target node device among the one or more target node devices for which the target endorsement device needs to be responsible for the corresponding endorsement task.

[0057] After determining the matching node device, obtain the signing key of the matching node device. In one embodiment, the signing key may be a private key of a key pair of the node device. The key pair may be obtained by calculating an RSA encryption algorithm, and includes a private key and a public key, and generally, the private key is used for signing and the public key is used for de-signing.

[0058] In S206, the target endorsement device determines data to be signed based on the transaction data, and obtains endorsement signature data by performing an endorsement signature on the data to be signed using the signing key of the matching node device.

[0059] In one embodiment, the target endorsement device simulates the execution of the transaction based on the transaction data to obtain a transaction simulation result, determines a voting result corresponding to the transaction request based on the transaction simulation result, and generates an approved voting result if the transaction simulation result indicates that the transaction can be executed accurately.Furthermore, the target endorsement device takes the determined voting result as data to be signed and signs the data to be signed using the signature keys of each matching node device, thereby obtaining endorsement signature data corresponding to each signature key.

[0060] In S207, the target endorsement device transmits the endorsement signature data to the management device.

[0061] In S208, the management device receives the endorsement signature data sent by the target endorsement device, and generates a transaction block based on the endorsement signature data and the transaction data.

[0062] In an embodiment of the present application, the management device receives one or more endorsement signature data sent by each target endorsement device, and after receiving the endorsement signature data sent by each target endorsement device, generates a transaction block based on the received endorsement signature data and transaction data.

[0063] In one embodiment, after receiving the endorsement signature data sent by the target endorsement device, the management device first verifies the endorsement signature data (i.e., verifies the signature), and generates a transaction block after each endorsement signature data is successfully verified. If there is any endorsement signature data that fails to be verified, the management device instructs the corresponding endorsement device (which may be the original endorsement device or a newly specified endorsement device) to perform the corresponding endorsement signing operation again. For the method of verifying the endorsement signature data, please refer to the following description.

[0064] In one embodiment, the administrative device can deposit the generated transaction block by adding it to the blockchain stored therein. In another embodiment, the administrative device can generate a deposit block based on the client's transaction request and the transaction block, and deposit the generated deposit block by adding it to the blockchain stored therein.

[0065] In S209, the management device broadcasts the transaction block to node devices in the blockchain network.

[0066] At S210, if a node device in the blockchain network determines that the data in the transaction block is successfully verified and satisfies the endorsement policy, the node device executes a transaction based on the transaction data.

[0067] In an embodiment of the present application, after receiving a transaction block broadcast by a management device, a node device in a blockchain network extracts transaction data and each endorsement signature data from the transaction block, and verifies the transaction data and the endorsement signature data. The verification of the transaction data includes verifying the accuracy of fields and the validity of the transaction.

[0068] The verification method of the endorsement signature data may be to determine each target node device that needs to be in charge of the endorsement task for the transaction corresponding to the transaction data from among the multiple node devices included in the blockchain network according to the instructions of the endorsement policy. Obtain the de-signing key of each target node device. In one embodiment, each node device in the blockchain network stores the de-signing keys of all node devices that may be configured to be in charge of the endorsement task instructed by the endorsement policy, in which case the de-signing key of each target node device can be directly obtained from the locale. In another embodiment, the de-signing keys of all node devices that may be configured to be in charge of the endorsement task instructed by the endorsement policy or the de-signing keys of all node devices in the blockchain network may be stored in a cloud database, in which case it is necessary to obtain the de-signing key of each target node device from the cloud database. The de-signing key and the signing key form a key pair, the signing key may be the private key of the key pair, the signing key may be the public key of the key pair, and the key pair may be obtained by calculation with the RSA encryption algorithm. Furthermore, the designature key of each target node device is used to designature each piece of endorsement signature data, and each piece of endorsement signature data is verified based on the designature data that has been successfully designed.

[0069] The designature key of each target node device is used to correspondingly successfully design each endorsement signature data, and if the designature key of any target node device matches the signing key used by at least one endorsement signature data, and the designature result indicates that all or most (e.g., more than 2 / 3) of the voting results agree to execute the transaction corresponding to the transaction data, it is determined that the endorsement policy is satisfied.

[0070] If the verification of the data in the transaction block is successful and the endorsement policy is satisfied, the node device in the blockchain network executes the transaction based on the transaction data. After executing the transaction, the node device records the obtained transaction result in the ledger (or generates a block based on the transaction result and records the block in the blockchain). In one embodiment, the node device in the blockchain network may add and deposit the received transaction block to the blockchain stored therein.

[0071] Here, when the target endorsement device obtains the endorsement signature data, the target endorsement device can obtain the endorsement signature data by performing an endorsement signature on the data to be signed (e.g., a voting result corresponding to a transaction request) and the transaction data using the signature key of the matching node device. When transmitting the endorsement signature data to the management device, the target endorsement device may also transmit the data to be signed. When generating a transaction block, the management device may generate a transaction block based on the endorsement signature data, the transaction data, and the data to be signed. During the generation of the endorsement signature data and the transaction block, the management device adds the above data for subsequent data verification. In addition, when the management device in the management network hosts the signature keys of at least some of the node devices in the blockchain network, the management device transmits the signature key of the matching node device corresponding to the target endorsement device together when transmitting a transaction request to the target endorsement device, so that the target endorsement device executes the corresponding endorsement task.

[0072] In the embodiment of the present application, the management equipment and the endorsement device use trusted computing, and use the endorsement device in the management network instead of the node devices in the blockchain network to provide services such as data verification and endorsement signing, that is, the agreement operation is completed by the endorsement device, and instead of the node devices in the blockchain network, the management equipment in the management network provides services such as block generation. In this way, the management network can centrally and effectively complete transaction consensus and block generation, and the node devices in the blockchain network do not need to participate in transaction consensus and block generation. Compared with the traditional blockchain network in which most node devices need to participate in consensus, this solution can effectively save the time required for consensus, thereby achieving the effect of improving the processing efficiency of the transaction process and improving the transaction performance of the entire network.

[0073] The data processing method provided in the embodiment of this application is a cross-domain blockchain node governance solution. At present, many service providers provide blockchain PaaS (Platform as a Service) platform services or various solutions related to blockchain, and most deployment forms usually deploy all nodes in the same blockchain network together, which can greatly improve the transaction performance of the blockchain network. However, in order to reflect the real decentralization, the cross-domain distributed deployment of blockchain nodes or deployment in different client environments will become the norm in the future, and the nodes will communicate through a public network, and the transaction performance of the entire network will face great challenges.

[0074] Currently, there is no unified solution for cross-domain blockchain node governance, and usually some nodes are split off from the blockchain nodes as consensus nodes, and these consensus nodes provide consensus services and block packaging. However, this only improves transaction performance to a certain extent, and when the transaction concurrency is high, a performance bottleneck will occur, because the node signature needs to be collected for the transaction, which is not versatile and cannot be used in most blockchain engines.

[0075] The transaction process of the blockchain has a great impact on transaction performance, and generally, each transaction is executed by each node only after it is agreed upon. Public blockchain provides many consensus algorithms, such as PoW, PoS, etc. Generally, every node in the public blockchain is a consensus node and needs to participate in the consensus process, so the transaction performance is very inefficient. For example, between enterprises, consortium blockchains are usually used, and consortium blockchains usually improve transaction performance to a certain extent by separating consensus services. The cross-domain node blockchain governance solution provided in the embodiment of this application is mainly targeted at consortium blockchains.

[0076] Referring to Figure 4, the transaction process of Fabric blockchain is shown. Orderer node is for providing block packaging service. Pee node is for executing transactions and recording in the ledger, and may be endorser node or committer node. CA (Certificate Authority) provides certification service and generates corresponding keys for clients. The transaction process mainly includes the following steps:

[0077] The client sends a transaction application (or transaction request) to the endorsement node, and after the endorsement node receives the application, it verifies the application signature to detect whether it meets the channel ACL (access control list), and checks whether the client can operate on the current channel. If the application signature verification is successful and it is detected that it meets the channel ACL, it simulates the execution of the transaction and signs the result (the voting result generated based on the transaction simulation execution result). The endorsement node returns the result signature to the client. The client receives the result signature returned from the endorsement node, verifies the result signature, and compares the return results of multiple endorsement nodes to detect whether enough result signatures have been collected. If the client collects enough result signatures and the return results of most endorsement nodes indicate that they agree to execute the transaction, it sends the transaction data to the orderer node, which forwards it to the orderer node. The orderer node sorts the transactions, builds a transaction block, and sends the transaction block to the committer node. The committer node checks the transaction structure and signature against the transaction block, checks whether the transaction meets the endorsement policy, and executes the valid transaction in the transaction block and updates the ledger state if the transaction structure and signature check is successful and the transaction meets the endorsement policy. In the process of processing the transaction block, the committer node can synchronize processing data related to the transaction block with the endorsement node.

[0078] In the above transaction process, the steps performed by the client may be specifically performed by an APP (Application Program) or SDK (Software Development Kit) deployed on the client. As can be seen from the transaction process of the Fabric blockchain, from the client submitting a transaction application to the peer node finally executing the transaction, there are multiple signature verification operations, which is the most time-consuming part of each transaction. The endorsement signature is a consensus process, and a transaction can be successfully executed only if enough endorsement signatures are collected. When endorser nodes are deployed in a distributed cross-domain manner, the nodes communicate with each other through a public network, and when collecting endorsement signatures for each transaction, the stability, bandwidth, etc. of the public network will affect the overall performance of the transaction.

[0079] Referring to FIG. 5, one architecture of the cross-domain blockchain node governance solution provided in the embodiment of the present application is shown. The cross-domain blockchain node governance solution provided in the embodiment of the present application combines trusted computing to partition one trusted computing domain (corresponding to the management network described above), hosts the private key (signature key) of each node in the blockchain network in the trusted computing domain, and completes the transaction agreement signature (i.e., endorsement signature) operation in the trusted computing domain, and then packages the block in the trusted computing domain and distributes it to each node in the blockchain network. After the node receives the block, it can verify the block and execute the valid transaction in the block. Trusted computing guarantees the security of the node's private key and the reliability of data, and in the trusted computing domain, there are services (P1 to P4 in FIG. 5) corresponding to the nodes, which host the private keys corresponding to the nodes and provide the signature service. As shown in FIG. 5, P1 to P4 respectively host the private keys of Peer1 to Peer4 and provide the corresponding endorsement signature service. P1-P4 in Fig. 5 correspond to the above-mentioned endorsement devices and may be encryption devices. In this way, the endorsement signature of the transaction is completed centrally in the trusted computing domain, which can reduce the distribution of requests in the network and speed up the processing rate of the transaction process.

[0080] Referring to FIG. 6, another architecture of the cross-domain blockchain node governance solution provided in the embodiment of the present application is shown. The specific transaction process of the cross-domain blockchain node governance solution provided in the embodiment of the present application is as follows: First, the client registers a certificate through the CA (i.e., obtains the corresponding key), and then sends a transaction request to the trusted computing domain. After receiving the transaction request, the trusted computing domain verifies the transaction signature in the transaction request, and after the signature verification is successful, signs the transaction endorsement using the private key of the corresponding node hosted according to the instructions of the endorsement policy, and after collecting sufficient endorsement signatures, packages the transaction to generate a transaction block and distributes the transaction block to the peer node. After receiving the transaction block, the peer node checks the transaction structure and the endorsement signature, and checks whether the transaction meets the endorsement policy. If the transaction structure and the endorsement signature are successfully checked and the transaction meets the endorsement policy, the peer node executes the valid transaction in the block and updates the ledger state. Here, for the specific implementation of each step in the above transaction process, please refer to the description of the above embodiment. The above transaction process only shows some main steps. For different blockchain engines, the transaction process is different, but the main idea is to centrally process the agreement signature (i.e., endorsement signature) operation, and host the private key of the node by the trusted computing area to complete the transaction consensus.

[0081] An embodiment of the present application combines trusted computing to host the signing key of each node in the blockchain network in a trusted computing domain, and the trusted computing domain provides data verification, endorsement signing services, and block generation services. Each node in the blockchain network only records the ledger. This mode ensures the security and reliability of information, and can improve the efficiency of endorsement signing (i.e., consensus), speed up the transaction processing flow, and greatly improve the transaction performance of the entire network. Due to its versatility, it can be multiplexed on all blockchain engines.

[0082] 7, a structural schematic diagram of a data processing device based on a blockchain network provided in an embodiment of the present application. The blockchain network is included in a data processing network, the blockchain network includes a plurality of node devices, the data processing network further includes a management network, the management network includes a management device, and one or more endorsement devices. For the architecture of the data processing network, please refer to FIG. 1a or FIG. 1b. The device includes an acquiring unit 701, a processing unit 702, and a transceiving unit 703.

[0083] In one embodiment, the data processing device described in the embodiment of the present application corresponds to the target endorsement device described above, in which case the functions realized by each unit are as follows:

[0084] The acquiring unit 701 is configured to acquire a transaction request having transaction data and reference signature data corresponding to the transaction data.

[0085] Processing unit 702 is configured to verify the transaction data and the reference signature data.

[0086] The processing unit 702 is further configured to, if the verification of the transaction data and the reference signature data is successful, determine a matching node device from the target node device and obtain a signature key of the matching node device, the target node device being determined from a plurality of node devices included in the blockchain network according to instructions of an endorsement policy.

[0087] The processing unit 702 is further configured to determine data to be signed based on the transaction data, and obtain endorsement signature data by performing an endorsement signature on the data to be signed using the signing key of the matching node device.

[0088] The transceiver unit 703 is configured to send the endorsement signature data to the management device, so that the management device generates a transaction block according to the endorsement signature data and the transaction data.

[0089] In one embodiment, an endorsement device in the management network stores signing keys for at least some of the node devices in the blockchain network.

[0090] In one embodiment, each endorsement device in the management network stores signing keys of some node devices in the blockchain network, and each endorsement device respectively stores signing keys of different node devices; the acquisition unit 701 is specifically configured to trigger the transceiver unit 703 to receive a transaction request from a client sent by the management device; after receiving the transaction request sent by the client, the management device determines a target node device from a plurality of node devices included in the blockchain network according to the instructions of the endorsement policy, and sends the transaction request to the target endorsement device in which the signing key of the target node device is stored.

[0091] In one embodiment, each endorsement device in the management network stores a signing key of each node device in the blockchain network, and the acquisition unit 701 is specifically configured to trigger the transceiver unit 703 to receive a transaction request from a client sent by the management device, and after receiving the transaction request sent by the client, the management device determines a target endorsement device from each endorsement device that will respond to the transaction request based on the current state parameters of each endorsement device, and sends the transaction request to the target endorsement device.

[0092] In one embodiment, when the processing unit 702 determines data to be signed based on the transaction data, the processing unit 702 is specifically configured to obtain a transaction simulation result by simulating transaction execution based on the transaction data, determine a voting result corresponding to the transaction request based on the transaction simulation result, and set the voting result as the data to be signed.

[0093] In one embodiment, the reference signature data is obtained by signing the transaction data with a private key of a key pair, the obtaining unit 701 is further configured to obtain a public key of the key pair, and the processing unit 702 is further configured to obtain de-signing data by de-signing the reference signature data with the public key, detect whether the transaction data is executable if the de-signing data matches the transaction data, and determine that the verification of the transaction data and the reference signature data is successful if the transaction data is executable.

[0094] Here, the functions of each functional unit of the data processing device provided in the embodiments of the present application can be specifically realized based on the method corresponding to the target endorsement device in the above method embodiments, and for the specific realization process, please refer to the relevant descriptions of the above method embodiments, and it should be understood that no detailed description is given here.

[0095] In another embodiment, the data processing device described in the embodiment of the present application corresponds to the management device described above, in which case the functions realized by each unit are as follows:

[0096] The acquiring unit 701 is configured to acquire a transaction request having transaction data and reference signature data corresponding to the transaction data.

[0097] The processing unit 702 is configured to determine a target endorsement device from one or more endorsement devices included in the managed network.

[0098] The transceiver unit 703 is configured to send the transaction request to the target endorsement device, so that the target endorsement device obtains endorsement signature data based on the transaction data and the reference signature data.

[0099] The transceiver unit 703 is further configured to receive the endorsement signature data sent by the target endorsement device.

[0100] The processing unit 702 is further configured to generate a transaction block based on the endorsement signature data and the transaction data.

[0101] In one embodiment, an endorsement device in the management network stores signing keys for at least some of the node devices in the blockchain network.

[0102] In one embodiment, each endorsement device in the management network stores signing keys of some node devices in the blockchain network, and each endorsement device respectively stores the signing keys of different node devices, and the processing unit 702 is specifically configured to determine a target node device from a plurality of node devices included in the blockchain network according to instructions of an endorsement policy, determine an endorsement device in which the signing key of the target node device is stored from each endorsement device included in the management network, and determine the endorsement device in which the signing key of the target node device is stored as the target endorsement device.

[0103] In one embodiment, each endorsement device in the management network stores a signing key of each node device in the blockchain network, and the apparatus further includes an acquisition unit 701 for acquiring current state parameters of each endorsement device in the management network, and the processing unit 702 is specifically configured to determine, based on the current state parameters of each endorsement device, an endorsement device that responds to the transaction request from each endorsement device included in the management network, and determine the endorsement device that responds to the transaction request as the target endorsement device.

[0104] In one embodiment, the processing unit 702 is further configured to trigger the transceiver unit 703 to broadcast the transaction block to node devices in the blockchain network, so as to execute a transaction based on the transaction data, when the node devices in the blockchain network determine that the verification of the data in the transaction block is successful and the data in the transaction block satisfies the endorsement policy.

[0105] Here, the functions of each functional unit of the data processing device provided in the embodiments of the present application can be specifically realized based on the method corresponding to the management device in the above method embodiments, and the specific realization process can be referred to the relevant descriptions of the above method embodiments, and no detailed description will be given here.

[0106] In an embodiment of the present application, a management network is set up in the data processing network, and the endorsement device in the management network verifies the data in the transaction request, and after the data verification is successful, according to the instructions of the endorsement policy, the signature key of the corresponding node device is used to perform an endorsement signature on the data to be signed determined based on the transaction data, to obtain endorsement signature data. By using this method, the management network can centrally and effectively complete the data verification and endorsement signature operation, that is, complete the agreement operation, and the node devices in the block chain network do not need to participate in the transaction agreement, which effectively saves the time required for agreement and improves the processing efficiency of the transaction process, thereby improving the transaction performance of the entire block chain network.

[0107] 8, which is a structural schematic diagram of a computer device provided in an embodiment of the present application. The computer device described in the embodiment of the present application includes a processor 801, a communication interface 802, and a memory 803. The processor 801, the communication interface 802, and the memory 803 may be connected by a bus or in other ways, and the embodiment of the present application takes the connection by a bus as an example.

[0108] The processor 801 (also called CPU (Central Processing Unit)) is the computing core and control core of the computer device, and can analyze various commands in the computer device and process various data of the computer device. For example, the CPU can be configured to analyze an on / off command sent from a user to the computer device and control the computer device to perform an on / off operation. For example, the CPU can transmit various interaction data between the internal structures of the computer device. Preferably, the communication interface 802 includes a standard wired interface, a wireless interface (e.g., Wi-Fi, a mobile communication interface, etc.), and is controlled by the processor 801 to transmit and receive data. The memory 803 is a storage device in the computer device, and is configured to store programs and data. Here, the memory 803 may include a built-in memory of the computer device, and of course, may include an expansion memory supported by the computer device. The memory 803 provides a storage space in which an operating system of a computing device is stored, including but not limited to an Android system, an iOS system, a Windows Phone system, etc., but is not limited thereto in this application.

[0109] In the embodiments of the present application, the computer equipment described in the embodiments of the present application corresponds to the target endorsement device or management device described above, and is realized based on a blockchain network, the blockchain network is included in a data processing network, the blockchain network includes a plurality of node devices, the data processing network further includes a management network, the management network includes a management device, and one or more endorsement devices, and the architecture of the data processing network can be seen in Figure 1a or Figure 1b.

[0110] In one embodiment, the computing device described in the embodiments of the present application corresponds to the target endorsement device described above, in which case the processor 801 executes executable program code in the memory 803 to perform the target endorsement device side operations described in the method embodiments above.

[0111] In specific implementation, the processor 801, communication interface 802 and memory 803 described in the embodiments of the present application may implement the implementation form of the target endorsement device described in the data processing method based on a blockchain network provided in the embodiments of the present application, or may implement the implementation form corresponding to the target endorsement device described in the data processing device based on a blockchain network provided in the embodiments of the present application, which is not described here in detail.

[0112] In another embodiment, the computing device described in the embodiments of the present application corresponds to the management device described above, in which case the processor 801 executes the executable program code in the memory 803 to perform the management device side operations described in the above method embodiments.

[0113] In specific implementation, the processor 801, communication interface 802, and memory 803 described in the embodiments of the present application may implement the implementation form of the management device described in the data processing method based on a blockchain network provided in the embodiments of the present application, or may implement the implementation form corresponding to the management device described in the data processing device based on a blockchain network provided in the embodiments of the present application, which is not described here in detail.

[0114] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program that, when executed by a computer, causes the computer to execute the data processing method based on a blockchain network described in the embodiment of the present application. For specific implementation forms, please refer to the above description, and no further details will be given here.

[0115] The embodiments of the present application further provide a computer program product or a computer program, the computer program product or the computer program including computer commands, the computer commands being stored in a computer-readable storage medium. A processor of a computer device reads the computer commands from the computer-readable storage medium, and the processor executes the computer commands to cause the computer device to execute the data processing method based on a blockchain network described in the embodiments of the present application. For specific implementation forms, please refer to the above description, and no further details will be given here.

[0116] Here, for ease of description, each of the above method embodiments is expressed as a combination of a series of operations, but as will be appreciated by those skilled in the art, the present application is not limited to the described order of operations, because according to the present application, some steps may be performed in other orders or simultaneously, and as will be appreciated by those skilled in the art, any of the embodiments described in the specification belong to preferred embodiments, and such operations and modules are not necessarily required for the present application.

[0117] Those skilled in the art should understand that all or part of the steps of each method in the above embodiments may be implemented by a program instructing associated hardware, and the program may be stored in a computer-readable storage medium, which may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0118] The above disclosures are merely some embodiments of the present application, and are not intended to limit the scope of protection of the present application. Therefore, equivalent variations made according to the claims of the present application shall be included in the scope of the present application. [Explanation of symbols]

[0119] 10 Client 11 Management Network 12. Blockchain Network

Claims

1. A data processing method based on a blockchain network, the blockchain network being included in a data processing network, the blockchain network including a plurality of node devices, the data processing network further including a management network, the management network including a management device and one or more endorsement devices, the method being executed by the endorsement device in the management network, obtaining a transaction request having transaction data and reference signature data corresponding to the transaction data; verifying the transaction data and the reference signature data; If the verification of the transaction data and the reference signature data is successful, determining a matching node device from the target node device and obtaining a signature key of the matching node device, where the target node device is determined from a plurality of node devices included in the blockchain network according to an indication of an endorsement policy; determining data to be signed based on the transaction data, and performing an endorsement signature on the data to be signed using a signing key of the matching node device to obtain endorsement signature data; sending the endorsement signature data to the management device so that the management device generates a transaction block based on the endorsement signature data and the transaction data. method.

2. An endorsement device in the management network stores a signing key of at least a portion of node devices in the blockchain network. The method of claim 1.

3. Each endorsement device in the management network stores a signing key of a part of node devices in the blockchain network, and each endorsement device stores a signing key of a different node device, and the step of obtaining the transaction request includes: receiving a transaction request from a client transmitted by the management device; After receiving the transaction request sent by the client, the management device determines the target node device from among the multiple node devices included in the blockchain network according to instructions in the endorsement policy, and sends the transaction request to the target endorsement device in which the signing key of the target node device is stored. The method of claim 2.

4. Each endorsement device in the management network stores a signing key of each node device in the blockchain network, and the step of obtaining the transaction request includes: receiving a transaction request from a client transmitted by the management device; After receiving the transaction request sent by the client, the management device determines a target endorsement device from each endorsement device that will respond to the transaction request based on a current state parameter of each endorsement device, and sends the transaction request to the target endorsement device. The method of claim 2.

5. The step of determining data to be signed based on the transaction data includes: simulating execution of a transaction based on the transaction data to obtain a transaction simulation result; determining a voting result corresponding to the transaction request based on the transaction simulation result, and setting the voting result as the data to be signed. The method according to any one of claims 1 to 4.

6. the reference signature data being obtained by signing the transaction data with a private key of a key pair, the step of verifying the transaction data and the reference signature data comprising: obtaining a public key of the key pair, and de-signing the reference signature data using the public key to obtain de-signature data; if the de-signature data matches the transaction data, detecting whether the transaction data is executable; and determining that verification of the transaction data and the reference signature data is successful if the transaction data is executable. The method according to any one of claims 1 to 4.

7. A data processing method based on a blockchain network, the blockchain network being included in a data processing network, the blockchain network including a plurality of node devices, the data processing network further including a management network, the management network including a management device and one or more endorsement devices, the method being executed by the management device in the management network, obtaining a transaction request having transaction data and reference signature data corresponding to the transaction data; determining a target endorsement device from one or more endorsement devices included in the managed network; sending the transaction request to the target endorsement device, such that the target endorsement device obtains endorsement signature data based on the transaction data and the reference signature data; receiving the endorsement signature data sent by the target endorsement device; and generating a transaction block based on the endorsement signature data and the transaction data. method.

8. An endorsement device in the management network stores a signing key of at least a portion of node devices in the blockchain network. The method according to claim 7.

9. Each endorsement device in the management network stores a signing key of a part of node devices in the blockchain network, and each endorsement device stores a signing key of a different node device, and the step of determining the target endorsement device from one or more endorsement devices included in the management network includes: determining a target node device from among a plurality of node devices included in the blockchain network according to an instruction of an endorsement policy; determining an endorsement device in which a signing key of the target node device is stored from each endorsement device included in the management network, and determining the endorsement device in which the signing key of the target node device is stored as the target endorsement device. The method according to claim 8.

10. Each endorsement device in the management network stores a signing key of each node device in the blockchain network, and the step of determining the target endorsement device from one or more endorsement devices included in the management network includes: obtaining current state parameters of each endorsement device in the managed network; determining an endorsement device that responds to the transaction request from each endorsement device included in the management network based on a current state parameter of each endorsement device, and determining the endorsement device that responds to the transaction request as the target endorsement device. The method according to claim 8.

11. If the node device in the blockchain network determines that the verification of the data in the transaction block is successful and that the data in the transaction block satisfies an endorsement policy, the node device broadcasts the transaction block to the node devices in the blockchain network so as to execute a transaction based on the transaction data. The method according to any one of claims 7 to 10.

12. A data processing device based on a blockchain network, the blockchain network being included in a data processing network, the blockchain network including a plurality of node devices, the data processing network further including a management network, the management network including a management device, and one or more endorsement devices, the endorsement devices being disposed in the management network; a acquiring unit for acquiring a transaction request having transaction data and reference signature data corresponding to the transaction data; a processing unit for verifying the transaction data and the reference signature data; a transceiver unit for transmitting the endorsement signature data to the management device so that the management device generates a transaction block based on the endorsement signature data and the transaction data; The processing unit is further configured to, when the verification of the transaction data and the reference signature data is successful, determine a matching node device from the target node device and obtain a signature key of the matching node device, the target node device being determined from a plurality of node devices included in the blockchain network according to an indication of an endorsement policy; The processing unit is further configured to determine data to be signed based on the transaction data, and to perform an endorsement signature on the data to be signed using a signing key of the matching node device, thereby obtaining endorsement signature data. Device.

13. A data processing device based on a blockchain network, the blockchain network being included in a data processing network, the blockchain network including a plurality of node devices, the data processing network further including a management network, the management network including a management device and one or more endorsement devices, the management device being disposed on the management network; a acquiring unit for acquiring a transaction request having transaction data and reference signature data corresponding to the transaction data; a processing unit for determining a target endorsement device from one or more endorsement devices included in the management network; a transceiver unit for transmitting the transaction request to the target endorsement device, so that the target endorsement device obtains endorsement signature data based on the transaction data and the reference signature data; The transceiver unit is further configured to receive the endorsement signature data sent by the target endorsement device; The processing unit is further configured to generate a transaction block based on the endorsement signature data and the transaction data. Device.

14. A computer device including a processor, a communication interface, and a memory connected to each other, the memory storing executable program code, and the processor configured to execute the data processing method based on a blockchain network according to any one of claims 1 to 6 or the data processing method based on a blockchain network according to any one of claims 7 to 11 by calling the executable program code. Computer equipment.

15. A computer program that, when executed on a computer, causes a computer to realize the data processing method based on a blockchain network according to any one of claims 1 to 6, or the data processing method based on a blockchain network according to any one of claims 7 to 11.

Citation Information

Patent Citations

  • Data sharing method based on plurality of block chain

    JP2019176458A

  • Distributed Transaction Propagation and Validation System

    JP2019519137A

  • Data management system, data management method, and data management program

    JP2020014056A

  • Construction data management system and manufacturing method thereof

    JP2020095662A

  • System, data management method, and program

    WO2018021535A1