[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112685769B - Block chain data processing method and device and electronic equipment - Google Patents

Block chain data processing method and device and electronic equipment Download PDF

Info

Publication number
CN112685769B
CN112685769B CN202011565155.1A CN202011565155A CN112685769B CN 112685769 B CN112685769 B CN 112685769B CN 202011565155 A CN202011565155 A CN 202011565155A CN 112685769 B CN112685769 B CN 112685769B
Authority
CN
China
Prior art keywords
node
target
nodes
blockchain
calculation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011565155.1A
Other languages
Chinese (zh)
Other versions
CN112685769A (en
Inventor
金辉
马逸龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202011565155.1A priority Critical patent/CN112685769B/en
Publication of CN112685769A publication Critical patent/CN112685769A/en
Application granted granted Critical
Publication of CN112685769B publication Critical patent/CN112685769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a data processing method, a device and electronic equipment of a blockchain, wherein the method is applied to scheduling nodes generated by blockchain election, among nodes on the blockchain, a node with data storage attributes meeting screening conditions is determined to be an initial node, at least two target computing nodes are determined in the initial node in response to receiving a computing request for private data, and a computing instruction is sent to the target computing nodes so that the target computing nodes can compute fragments of the received private data. And finally, obtaining target information according to the calculation feedback information of the target calculation node, and establishing a block corresponding to the target information on the block chain.

Description

Block chain data processing method and device and electronic equipment
Technical Field
The present application relates to the field of blockchain technologies, and in particular, to a blockchain data processing method, device and electronic equipment.
Background
The blockchain technology is also called as a distributed ledger technology, and is a decentralized distributed database technology, and is characterized by decentralization, transparent disclosure, non-falsification and trustworthiness.
Multiple nodes are needed to participate in the storage and verification of the account book in the blockchain, so that private data or account information of a user is public and transparent to the outside, and effective privacy protection is not carried out. Thus making the problem of protecting private data one of the major challenges faced by blockchains.
Disclosure of Invention
In view of the above, the present application provides a data processing method and apparatus for a blockchain, and an electronic device, as follows:
A data processing method of a blockchain is applied to a scheduling node, wherein the scheduling node is a node generated by electing a blockchain node, and the method comprises the following steps:
among the nodes on the blockchain, determining the node with the data storage attribute meeting the screening condition as an initial node;
Determining at least two target computing nodes in the initial node in response to receiving a computing request for private data;
sending a calculation instruction to the target calculation node so that the target calculation node calculates the received segments of the private data;
Obtaining target information according to the calculation feedback information of the target extreme node, wherein the target information is result information corresponding to the calculation request and obtained according to the privacy data;
and establishing a block corresponding to the target information on the block chain.
Optionally, the determining, among the nodes on the blockchain, the node with the data storage attribute meeting the screening condition as the initial node includes:
In response to sending a data segment to a node on the blockchain, if the node of the blockchain is capable of storing the data segment in a private data storage area of the node, the node is determined to be an initial node.
Optionally, the determining, among the nodes on the blockchain, the node with the data storage attribute meeting the screening condition as the initial node includes:
acquiring authentication information of nodes on the blockchain;
forming the nodes of which the authentication information meets the authentication conditions into a first node group;
And among the nodes of the first node group, determining the node with the data storage attribute meeting the screening condition as an initial node.
Optionally, the method further comprises:
transmitting a data fragment generation instruction to a node on the blockchain;
And if the node can generate the data segment based on the data segment generation instruction, determining the node as an initial node.
Optionally, the method further comprises:
monitoring the state of the target computing node;
And if the target computing node is in an offline state, re-determining the target computing node in the initial node.
Optionally, the method further comprises:
Generating a node queue of the initial node;
determining the number of computing nodes based on the computing request;
and selecting the initial nodes with the matched quantity from the node queues as target computing nodes.
Optionally, the number of the target computing nodes is greater than or equal to the required number of the computing nodes corresponding to the computing request.
Optionally, the target information is calculation feedback information of each target calculation node, interpolation processing is performed on the calculation feedback information, and calculation result information corresponding to the privacy data is obtained.
A data processing apparatus of a blockchain applied to a scheduling node, the scheduling node being a node generated by electing a blockchain node, the apparatus comprising:
The first determining unit is used for determining a node with data storage attributes meeting screening conditions as an initial node among the nodes of the block chain;
A second determining unit configured to determine at least two target computing nodes among the initial nodes in response to receiving a computing request for private data;
the sending unit is used for sending a calculation instruction to the target calculation node so that the target calculation node calculates the received fragments of the privacy data;
The acquisition unit is used for acquiring target information according to the calculation feedback information of the target calculation node, wherein the target information is result information corresponding to the calculation request and obtained according to the privacy data;
and the establishing unit is used for establishing the block corresponding to the target information on the block chain.
An electronic device, comprising:
a memory for storing a program;
A processor for executing the program, the program being specifically configured to implement the data processing method of a blockchain as set forth in any one of the above.
According to the technical scheme, the data processing method, the device and the electronic equipment of the blockchain are applied to the scheduling node, wherein the scheduling node is a node generated by electing the blockchain node. And among the nodes on the blockchain, determining the node with the data storage attribute meeting the screening condition as an initial node, determining at least two target computing nodes in the initial node in response to receiving a computing request for the private data, and sending a computing instruction to the target computing nodes so as to enable the target computing nodes to compute the received segments of the private data. And finally, obtaining target information according to the calculation feedback information of the target calculation node, and establishing a block corresponding to the target information on the block chain. Therefore, in the application, by determining at least two target computing nodes in the nodes of the blockchain, the target computing nodes calculate the segments of the private data, so that a plurality of target computing nodes process the private data to obtain the corresponding target information, the private data processing in the blockchain is realized without introducing a third party node, and the private data processing can be completed only by the target computing nodes on the blockchain, thereby improving the security of the private data on the blockchain.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for processing data of a blockchain according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating determination of a target computing node according to an embodiment of the present application;
FIG. 3 is a block chain data processing apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Blockchains are generally divided into three types: public chain (Public Blockchain), private chain (Private Blockchain) and federated chain (ConsortiumBlockchain). In addition, there are many types of combinations, such as different combinations of private chain+federation chain, federation chain+public chain, and the like.
HYPERLEDGER FABRIC is a federation chain open source project for enterprise-level clients, and HYPERLEDGER FABRIC can be conveniently used for building a federation chain for data sharing participated by various enterprises and social organizations. Many enterprises often have data with high confidentiality requirements and do not wish to be open to other enterprises on the same blockchain network. The application provides a data processing method of a blockchain, solves the problem of original privacy data protection, and expands the application scene of the blockchain.
The data processing method of the blockchain is applied to the scheduling nodes, the scheduling nodes are nodes generated by electing the blockchain nodes, the scheduling nodes are generated by electing the blockchain nodes instead of fixedly designating a certain node as the scheduling node, so that when the current scheduling node is abnormal, new scheduling nodes are generated by reelecting the blockchain nodes to replace the original scheduling nodes, and the usability of the scheduling nodes is ensured. A blockchain is a distributed, decentralized system with many nodes within each system. Each node corresponds to each computer or server terminal storing all the block data. Nodes on the blockchain can be selected by selecting intelligent contracts to select the nodes, and the selected nodes are determined to be scheduling nodes, wherein the selecting intelligent contracts realize automatic processing of the selecting contracts in a computer instruction mode. The scheduling node has the functions of scheduling and instruction control for the nodes on the blockchain.
Referring to fig. 1, a data processing method of a blockchain provided by an embodiment of the present application is shown, where the method may include the following steps:
s101, determining a node with data storage attributes meeting screening conditions as an initial node among nodes on a blockchain.
Firstly, determining an initial node in nodes of a blockchain, wherein the initial node is a node with data storage attributes meeting screening conditions, and the screening conditions are determining conditions corresponding to the nodes capable of carrying out privacy data processing, namely the initial node screened by the screening conditions can carry out privacy data processing. The data storage attribute refers to a characteristic of data that a node of the blockchain can store, or an application state of a storage area corresponding to the data storage attribute. Data stored on nodes of a blockchain is typically represented as data stores in shared, public, and private portions, with corresponding data storage attributes referring to the storage state of the data.
In one implementation manner, among the nodes on the blockchain, determining the node with the data storage attribute meeting the screening condition as the initial node includes: in response to sending a data segment to a node on a blockchain, the node is determined to be an initial node if the node on the blockchain is capable of storing the data segment in a private data storage area of the node.
In this embodiment, the data segment is used for calculating the private data, and since the blockchain has a public and transparent property, if the data segment is directly stored in a block of the blockchain, the problem that the data segment is easy to be stolen is caused, so that protection of the private data cannot be really completed. Thus, it is desirable to store a piece of data in a private data storage area of a node that stores data that is accessible and retrievable only by the node. If a node can store a data fragment in a private data storage area, the node can be used in the subsequent processing of private data protection, thus determining the node as an initial node.
In another embodiment, it is necessary to authenticate the nodes on the blockchain before the authenticated nodes are eligible to participate in subsequent private data processing. Correspondingly, among the nodes on the blockchain, determining the node with the data storage attribute meeting the screening condition as the initial node includes: acquiring authentication information of nodes on a blockchain; forming the nodes of which the authentication information meets the authentication conditions into a first node group; and determining the node with the data storage attribute meeting the screening condition as an initial node in the nodes of the first node group.
The authentication information of the node on the blockchain may be information obtained after authentication by the acquired information of the node, such as identity authentication information obtained after identity authentication of the identity information of the node, or state authentication information obtained after authentication of the state of the node, or attribute authentication information obtained after authentication of the attribute of the node.
The authentication condition is determined according to an application scenario of the private data processing, if the security of the private data is a real-time requirement, the node which needs to participate in the private data processing is in an on-line state, so that the authentication condition can be a condition that the node is on-line, that is, when the node on the blockchain is in the on-line state, the node can be used as the node in the first node group. And then, acquiring the data storage attribute corresponding to the nodes in the first node group, such as detecting whether the private data storage area of the nodes in the first node group is idle, and determining the nodes in the first node group with the idle private data storage area as initial nodes.
In yet another possible implementation, a node capable of generating a data segment for private data processing may also be determined as an initial node, i.e., the scheduling node may send a data segment generation instruction to a node on the blockchain, which is determined as an initial node if the node on the blockchain is capable of generating a data segment based on the data segment generation instruction. If the data segment of the private data processing can be generated, the node can store the data segment in a private data storage area which is not easy to be stolen by other nodes, so that the node can participate in the subsequent private data processing process.
The above embodiment is merely an example in the embodiment of the present application, and correspondingly, the embodiment of determining the initial node in the embodiment of the present application is not limited to this embodiment, as long as the node that can guarantee that the private storage of the data segment of the private data is not stolen by other nodes can be used as the initial node.
S102, determining at least two target computing nodes in the initial node in response to receiving the computing request for the private data.
And S103, sending a calculation instruction to a target calculation node so that the target calculation node calculates the received segments of the privacy data.
S104, obtaining target information according to the calculation feedback information of the target calculation node.
The calculation request of the private data may be issued by a client, which may communicate with the scheduling node such that the scheduling node may receive the calculation request of the private data issued by the client. The private data may be data in a private transaction, or may be data that a user corresponding to a client in other computing processes desires to be not known by other users. For example, two users want to obtain more products produced by the users, but do not want to know the actual number of products generated by the users, so that the two users want to protect the privacy of the actual number of the respective products, and the corresponding actual number of the products is privacy data.
The calculation request for the private data refers to a request for protection processing of the private data. For example, in the case where the private data is not output, a request for the comparison result can be obtained. In the embodiment of the application, in order to realize the protection processing of the private data, the corresponding part of the private data can be processed through different computing nodes, so that even if the processing result of the computing nodes is obtained, the data fragments for processing are different due to the different fragments of the private data aimed at by the processing result, and the real private data cannot be recovered. Therefore, the number of the determined computing nodes participating in the final privacy data is at least two, and the number of the computing nodes can be determined according to the processing attribute of the data fragment and the processing result corresponding to the computing request, so that the target computing node is obtained.
Since the determined initial node is capable of storing sub-data fragments for private data processing, a corresponding number of target computing nodes can be determined in the initial node. The computing instructions are then sent by the scheduling node to the target computing node. And after receiving the calculation instruction, the target calculation node carries out related calculation on the privacy data. However, when each target computing node calculates the private data, not all the private data is calculated, but a segment of the corresponding private data is calculated. And then processing according to the calculation feedback information of each target calculation node, namely the calculation result of the segment of the privacy data, so as to obtain the target information. Each target computing node can send the corresponding computing feedback information to the scheduling node, and the scheduling node processes the corresponding computing feedback information to obtain the target information. The calculation feedback information of each target calculation node can be sent to one target node, and the calculation feedback information is processed by the target node to obtain target information. The target information is result information corresponding to the calculation request and obtained according to the privacy data. For example, taking the application example that the two users compare the number of the generated products as an example, the privacy data is the number of the products actually produced by the two parties, the calculation request is to obtain the user with the larger number of the products produced by the two parties, and the target information is that the number of the products produced by the first party is higher than the number of the products produced by the second party.
S105, building a block corresponding to the target information on the block chain.
The target information is result information of a corresponding calculation request obtained according to the privacy data. The method comprises the steps of establishing a block corresponding to target information on a block chain, which is equivalent to uplink storage of the target information, so that nodes on the block chain can access the block to obtain the corresponding target information, and the result disclosure transparency is ensured. The hash calculation may be performed on the target information, and the hash value may be stored in a corresponding block on the blockchain, so that when the target information is long, the target information is stored on the blockchain without stressing the blockchain.
The application discloses a data processing method of a blockchain, which is applied to a scheduling node, wherein the scheduling node is a node generated by electing the blockchain node. And among the nodes on the blockchain, determining the node with the data storage attribute meeting the screening condition as an initial node, determining at least two target computing nodes in the initial node in response to receiving a computing request for the private data, and sending a computing instruction to the target computing nodes so as to enable the target computing nodes to compute the received segments of the private data. And finally, obtaining target information according to the calculation feedback information of the target calculation node, and establishing a block corresponding to the target information on the block chain. Therefore, in the application, by determining at least two target computing nodes in the nodes of the blockchain, the target computing nodes calculate the segments of the private data, so that a plurality of target computing nodes process the private data to obtain the corresponding target information, the private data processing in the blockchain is realized without introducing a third party node, and the private data processing can be completed only by the target computing nodes on the blockchain, thereby improving the security of the private data on the blockchain.
In one implementation manner, the data processing method of the blockchain provided by the embodiment of the application further includes:
Monitoring the state of a target computing node;
and if the target computing node is in an offline state, re-determining the target computing node in the initial node.
The scheduling node has the function of selecting and monitoring target computing nodes in the computing process, after the target computing nodes are determined, computing instructions need to be sent to the corresponding target computing nodes, as the target computing nodes are multiple, fragments of privacy data can be sent to the corresponding target computing nodes after feedback information of each target computing node is received, and in the process, the problem of information processing load of the nodes or network reasons can be caused, so that offline target computing nodes or abnormal computing nodes exist in the current target computing nodes, and the target computing nodes need to be re-determined in the initial nodes so as to ensure normal operation of privacy data computing.
Optionally, the number of target computing nodes is equal to the number of computing nodes required by the computing request, and the specific required number needs to be determined according to the application scenario for performing the privacy data processing and the selected computing mode. Correspondingly, in order to avoid the state that the target computing node is suddenly offline, the number of the selected target computing nodes can be made to be larger than the required number of the computing nodes corresponding to the computing request.
Optionally, to facilitate real-time acquisition of the target computing node, a node queue of the initial node may be generated, the number of computing nodes is determined based on the computing request, and the initial node with the matched number is selected from the node queue as the target computing node. In this embodiment, after the nodes on the blockchain are authenticated, the nodes with data storage attributes meeting the screening conditions are initial nodes and form a node queue, so that the nodes in the node queue can wait for participating in the private data processing at any time, that is, after receiving the corresponding calculation request, the target calculation node is directly determined from the node queue to complete the calculation. And the nodes in the node queue can be adjusted in real time according to the states of the nodes in the node queue, so that the screening time of the nodes is saved.
Referring to fig. 2, a schematic diagram of determining a target computing node according to an embodiment of the present application is shown. The scheduling node 201 screens nodes on the blockchain, determines that nodes with data storage attributes meeting screening conditions are initial nodes, such as Peer A, peer B, peer C and PeerD, and forms a node queue 202 by the four nodes, when the scheduling node 201 receives a calculation request sent by the client 203, the scheduling node responds to the calculation request to randomly screen out target calculation nodes participating in the calculation in the node queue 202, and forms a target calculation node group 204, which can comprise Peer A, peer B and Peer C. So that the nodes participate in the calculation of the privacy data, and each target calculation node can calculate to obtain a corresponding calculation result. And then summarizing the calculation results by the scheduling node or any target calculation node to obtain target information, wherein the target information is the result information corresponding to the calculation request and obtained according to the privacy data.
In one possible implementation manner, the target information is calculation result information corresponding to the privacy data obtained by performing interpolation processing according to calculation feedback information of each target calculation node. The interpolation processing may be a processing manner of summarizing the calculation feedback information, and may use a lagrangian interpolation manner, so as to generate a polynomial function capable of obtaining the calculation feedback information of each target calculation node, and then determine final target information based on the polynomial function. And the calculation feedback information can be processed according to the calculation requirements corresponding to the calculation requests, if the product quantity is required to be counted, the processing and the processing are required, and if the wages are subjected to the average processing, the averaging processing is required.
For example, the calculation request is to calculate the average payroll for user A, user B, and user C, and none of user A, user B, and user C expect others to learn their true payroll amounts. The corresponding target computing nodes include a first target computing node and a second target computing node. The user a may split his own true payroll amount into two payroll segments, and send the two payroll segments to the first target computing node and the second target computing node, so that the first target computing node intelligently obtains one of the payroll segments, cannot obtain the second payroll segment, and can only obtain a processing result based on the data segment stored by the user a; similarly, the second target computing node cannot obtain other payroll segments, and only can calculate and obtain the corresponding processing result. And then processing the processing results of the first target computing node and the second target computing node to obtain the average wages of the three users, wherein any target computing node cannot restore the real wage amount of each user in the process.
It should be noted that, in the embodiment of the present application, the scheduling node is generated by electing a block link point, and after the scheduling node fails, a new scheduling node may be reelected for replacement. Meanwhile, the determined target computing nodes are nodes on the blockchain, multiparty computation of private data can be realized based on the nodes on the blockchain, so that any one target computing node can only acquire corresponding segments of the private data and cannot restore original private data, the problem of original private data protection is solved, a third node outside the blockchain is not required to be introduced, decentralised transaction computation is realized, private data is not required to be provided in the transaction computation process, and a computation result corresponding to the private data can be obtained.
Referring to fig. 3, a block chain data processing device provided by the embodiment of the application is applied to a scheduling node, wherein the scheduling node is a node generated by electing a block chain node.
Specifically, the apparatus in this embodiment may include the following units:
A first determining unit 301, configured to determine, among nodes of the blockchain, a node whose data storage attribute meets a screening condition as an initial node;
A second determining unit 302, configured to determine at least two target computing nodes among the initial nodes in response to receiving a computing request for private data;
a sending unit 303, configured to send a calculation instruction to the target computing node, so that the target computing node calculates a segment of the received privacy data;
An obtaining unit 304, configured to obtain target information according to calculation feedback information of the target calculation node, where the target information is result information corresponding to the calculation request obtained according to the privacy data;
and the establishing unit 305 is configured to establish a block corresponding to the target information on the blockchain.
In the above technical solution, in the data processing apparatus for a blockchain provided by the embodiments of the present application, among nodes on the blockchain, a node whose data storage attribute meets a screening condition is determined as an initial node, and in response to receiving a calculation request for private data, at least two target calculation nodes are determined in the initial node, and then a calculation instruction is sent to the target calculation nodes, so that the target calculation nodes calculate fragments of the received private data. And finally, obtaining target information according to the calculation feedback information of the target calculation node, and establishing a block corresponding to the target information on the block chain. Therefore, in the application, by determining at least two target computing nodes in the nodes of the blockchain, the target computing nodes calculate the segments of the private data, so that a plurality of target computing nodes process the private data to obtain the corresponding target information, the private data processing in the blockchain is realized without introducing a third party node, and the private data processing can be completed only by the target computing nodes on the blockchain, thereby improving the security of the private data on the blockchain.
In one implementation, the first determining unit 301 is specifically configured to:
In response to sending a data segment to a node on the blockchain, if the node on the blockchain is capable of storing the data segment in a private data storage area of the node, the node is determined to be an initial node.
In another embodiment, the first determining unit 301 is specifically configured to:
acquiring authentication information of nodes on the blockchain;
forming the nodes of which the authentication information meets the authentication conditions into a first node group;
and determining the node with the data storage attribute meeting the screening condition as an initial node in the nodes of the first node group.
Optionally, the apparatus further comprises:
a third determining unit configured to send a data fragment generation instruction to a node on the blockchain; and if the node can generate the data segment based on the data segment generation instruction, determining the node as an initial node.
In one implementation, the apparatus further comprises:
The monitoring unit is used for monitoring the state of the target computing node; and if the target computing node is in an offline state, re-determining the target computing node in the initial node.
In one implementation, the apparatus further comprises:
A queue generating unit for generating a node queue of the initial node;
a fourth determining unit configured to determine the number of computing nodes based on the computing request; and selecting the initial nodes with the matched quantity from the node queues as target computing nodes.
Optionally, the number of the target computing nodes is greater than or equal to the required number of the computing nodes corresponding to the computing request.
Optionally, the target information is calculation result information corresponding to the privacy data obtained by performing interpolation processing according to calculation feedback information of each target calculation node.
It should be noted that, the specific implementation of each unit in this embodiment may refer to the corresponding content in the foregoing, which is not described in detail herein.
Referring to fig. 4, a schematic structural diagram of an electronic device provided by the embodiment of the present application is shown, where the electronic device may be a scheduling node on a blockchain, and the scheduling node is a node generated by electing a blockchain node.
Specifically, the electronic device in this embodiment may include the following structure:
A memory 401 for storing a program;
a processor 402, configured to execute the program, where the program is specifically configured to implement:
Among the nodes on the blockchain, determining the node with the data storage attribute meeting the screening condition as an initial node;
Determining at least two target computing nodes in the initial node in response to receiving a computing request for private data;
sending a calculation instruction to the target calculation node so that the target calculation node calculates the received segments of the private data;
Obtaining target information according to the calculation feedback information of the target calculation node, wherein the target information is result information which is obtained according to privacy data and corresponds to the calculation request;
and establishing a block corresponding to the target information on the block chain.
In the electronic equipment disclosed by the application, among nodes on a blockchain, a node with data storage attributes meeting screening conditions is determined as an initial node, at least two target computing nodes are determined in the initial node in response to receiving a computing request for private data, and then a computing instruction is sent to the target computing nodes so that the target computing nodes can compute fragments of the received private data. And finally, obtaining target information according to the calculation feedback information of the target calculation node, and establishing a block corresponding to the target information on the block chain. Therefore, in the application, by determining at least two target computing nodes in the nodes of the blockchain, the target computing nodes calculate the segments of the private data, so that a plurality of target computing nodes process the private data to obtain the corresponding target information, the private data processing in the blockchain is realized without introducing a third party node, and the private data processing can be completed only by the target computing nodes on the blockchain, thereby improving the security of the private data on the blockchain.
It should be noted that, the specific implementation of the processor in this embodiment may refer to the corresponding content in the foregoing, and will not be described herein again.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A data processing method of a blockchain is applied to a scheduling node, wherein the scheduling node is a node generated by electing a blockchain node, and the method comprises the following steps:
Among the nodes on the blockchain, determining the node with the data storage attribute meeting the screening condition as an initial node;
Determining at least two target computing nodes in the initial node in response to receiving a computing request for private data;
sending a calculation instruction to the target calculation node so that the target calculation node calculates the received segments of the private data;
Obtaining target information according to the calculation feedback information of the target calculation node, wherein the target information is result information which is obtained according to privacy data and corresponds to the calculation request;
and establishing a block corresponding to the target information on the block chain.
2. The method of claim 1, wherein the determining, among the nodes on the blockchain, a node whose data storage attribute meets a filtering condition as an initial node comprises:
In response to sending a data segment to a node on the blockchain, if the node on the blockchain is capable of storing the data segment in a private data storage area of the node, the node is determined to be an initial node.
3. The method of claim 1, wherein the determining, among the nodes on the blockchain, a node whose data storage attribute meets a filtering condition as an initial node comprises:
acquiring authentication information of nodes on the blockchain;
forming the nodes of which the authentication information meets the authentication conditions into a first node group;
and determining the node with the data storage attribute meeting the screening condition as an initial node in the nodes of the first node group.
4. The method of claim 1, the method further comprising:
transmitting a data fragment generation instruction to a node on the blockchain;
And if the node can generate the data segment based on the data segment generation instruction, determining the node as an initial node.
5. The method of claim 1, the method further comprising:
monitoring the state of the target computing node;
And if the target computing node is in an offline state, re-determining the target computing node in the initial node.
6. The method of claim 1, the method further comprising:
Generating a node queue of the initial node;
determining the number of computing nodes based on the computing request;
and selecting the initial nodes with the matched quantity from the node queues as target computing nodes.
7. The method of claim 6, wherein the number of target computing nodes is greater than or equal to a required number of computing nodes corresponding to the computing request.
8. The method according to claim 1, wherein the target information is calculation result information corresponding to the privacy data obtained by performing interpolation processing according to calculation feedback information of each target calculation node.
9. A data processing apparatus of a blockchain applied to a scheduling node, the scheduling node being a node generated by electing a blockchain node, the apparatus comprising:
The first determining unit is used for determining a node with data storage attributes meeting screening conditions as an initial node among the nodes of the block chain;
A second determining unit configured to determine at least two target computing nodes among the initial nodes in response to receiving a computing request for private data;
the sending unit is used for sending a calculation instruction to the target calculation node so that the target calculation node calculates the received fragments of the privacy data;
The acquisition unit is used for acquiring target information according to the calculation feedback information of the target calculation node, wherein the target information is result information corresponding to the calculation request and obtained according to the privacy data;
and the establishing unit is used for establishing the block corresponding to the target information on the block chain.
10. An electronic device, comprising:
a memory for storing a program;
a processor for executing the program, in particular for implementing the data processing method of a blockchain as claimed in any of claims 1-8.
CN202011565155.1A 2020-12-25 2020-12-25 Block chain data processing method and device and electronic equipment Active CN112685769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011565155.1A CN112685769B (en) 2020-12-25 2020-12-25 Block chain data processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011565155.1A CN112685769B (en) 2020-12-25 2020-12-25 Block chain data processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112685769A CN112685769A (en) 2021-04-20
CN112685769B true CN112685769B (en) 2024-07-23

Family

ID=75453345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011565155.1A Active CN112685769B (en) 2020-12-25 2020-12-25 Block chain data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112685769B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113726758A (en) * 2021-08-25 2021-11-30 百保(上海)科技有限公司 Data privacy calculation method and system based on block chain

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111047450A (en) * 2020-03-18 2020-04-21 支付宝(杭州)信息技术有限公司 Method and device for calculating down-link privacy of on-link data
CN111597043A (en) * 2020-05-14 2020-08-28 行星算力(深圳)科技有限公司 Method, device and system for calculating edge of whole scene

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10671308B2 (en) * 2018-08-07 2020-06-02 International Business Machines Corporation Private and fault-tolerant storage of segmented data
US11251963B2 (en) * 2019-07-31 2022-02-15 Advanced New Technologies Co., Ltd. Blockchain-based data authorization method and apparatus
CN111885133B (en) * 2020-07-10 2023-06-09 深圳力维智联技术有限公司 Block chain-based data processing method and device and computer storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111047450A (en) * 2020-03-18 2020-04-21 支付宝(杭州)信息技术有限公司 Method and device for calculating down-link privacy of on-link data
CN111597043A (en) * 2020-05-14 2020-08-28 行星算力(深圳)科技有限公司 Method, device and system for calculating edge of whole scene

Also Published As

Publication number Publication date
CN112685769A (en) 2021-04-20

Similar Documents

Publication Publication Date Title
US11368300B2 (en) Supporting a fixed transaction rate with a variably-backed logical cryptographic key
CN113098907B (en) Group division method and device for block chain
CN108769230B (en) Transaction data storage method, device, server and storage medium
US9509688B1 (en) Providing malicious identity profiles from failed authentication attempts involving biometrics
CN110602217B (en) Block chain-based alliance management method, device, equipment and storage medium
Huang et al. Resource allocation and consensus of blockchains in pervasive edge computing environments
CN111556120A (en) Data processing method and device based on block chain, storage medium and equipment
US12052344B2 (en) Method and apparatus for electing representative node device, computer device, and storage medium
JP2023133560A (en) Computer-implemented voting process and system
CN110177124B (en) Identity authentication method based on block chain and related equipment
Yuan et al. A multi-source feedback based trust calculation mechanism for edge computing
CN113900598A (en) Block chain based data storage method, device, equipment and storage medium
CN112613601A (en) Neural network model updating method, device and computer storage medium
CN110990790B (en) Data processing method and equipment
CN112685750A (en) Data processing method and device
CN112685769B (en) Block chain data processing method and device and electronic equipment
CN112862607A (en) Method, device, equipment and storage medium for realizing block chain consensus mechanism
CN114500119B (en) Method and device for calling block chain service
Srisakthi et al. Towards the design of a secure and fault tolerant cloud storage in a multi-cloud environment
da Costa et al. Securing light clients in blockchain with DLCP
Aringhieri et al. Assessing efficiency of trust management in peer-to-peer systems
CN113674072A (en) Enterprise financial management risk identification method based on financial big data
Toumia et al. Evaluating blockchain application requirements and their satisfaction in Hyperledger Fabric
CN112153130A (en) Business resource access method and device
US20230251905A1 (en) Synchronizing computing resources to proceed with a task

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant