Blockchain data processing method and apparatus, computer device, medium, and product
In a blockchain data processing method, service updating data of each of a plurality of encrypted data is received. The service updating data of each of the plurality of encrypted data includes encrypted primary key information of the respective encrypted data. Each of the plurality of encrypted data includes service data encrypted by a respective service node of a plurality of service nodes. Service intersection data is generated based on a data intersection of the service updating data of the plurality of encrypted data. The service intersection data is transmitted to a service node of the plurality of service nodes. The service intersection data includes supplemental text data from another service node of the plurality of service nodes.
1 . A blockchain data processing method, comprising:
receiving a plurality of service updating data, each of the plurality of service updating data corresponding to a respective service node of a plurality of service nodes and including:
encrypted primary key information that is based on at least an object identifier encrypted with secret keys of the plurality of service nodes, and
encrypted service data that is encrypted with the corresponding secret key of the respective service node;
generating, by processing circuitry, service intersection data associated with the object identifier based on the plurality of service updating data and the encrypted primary key information; and
transmitting the service intersection data to a receiving service node of the plurality of service nodes, the service intersection data including to-be-supplemented data that is absent from the service updating data corresponding to the receiving service node.
2 . The method according to claim 1 , wherein the encrypted primary key information is based on first primary key information of a first service node of the plurality of service nodes encrypted by a second service node of the plurality of service nodes.
3 . The method according to claim 1 , further comprising:
acquiring a data authorization request from a first service node of the plurality of service nodes, the data authorization request including node information of a second service node of the plurality of service nodes, the second service node having permission to update encrypted data encrypted by the first service node; and
determining that the second service node has the permission to update the encrypted data in response to the data authorization request.
4 . The method according to claim 1 , wherein, for one of the plurality of service updating data corresponding to a target service node:
the encrypted primary key information and the encrypted service data are stored in a data structure of primary key K-value V,
the encrypted primary key information is based on a curve point mapped by the target service node on an elliptic curve that is encrypted with the corresponding secret key of the target service node, and
the curve point mapped by the target service node on the elliptic curve is generated based on the object identifier which is an object address acquired by the target service node.
5 . The method according to claim 1 , wherein
the plurality of service nodes includes a first service node and a second service node,
the plurality of service updating data includes first service updating data corresponding to the first service node and second service updating data corresponding to the second service node,
the first service updating data includes first encrypted service data of the first service node and the encrypted primary key information,
the second service updating data includes second encrypted service data of the second service node and the encrypted primary key information, and
the second service updating data is obtained after second initial service updating data from the second service node is encrypted by the first service node based on a public key and a secret key exchange algorithm.
6 . The method according to claim 1 , wherein
the plurality of service nodes includes a first service node and a second service node,
the plurality of service updating data includes first service updating data corresponding to the first service node and second service updating data corresponding to the second service node,
the first service updating data includes first encrypted service data of the first service node and the encrypted primary key information,
the second service updating data includes second encrypted service data of the second service node and the encrypted primary key information, and
the first service updating data is obtained after first initial service updating data from the first service node is encrypted by the second service node based on a public key and a secret key exchange algorithm.
7 . The method according to claim 1 , wherein the service intersection data includes the encrypted service data associated with same encrypted primary key information.
8 . A blockchain data processing method, comprising:
receiving first primary key information from a first service node of a plurality of service nodes, the first primary key information being encrypted by the first service node;
performing, by processing circuitry of a second service node of the plurality of service nodes, data encryption on the first primary key information to obtain encrypted primary key information, the encrypted primary key information being encrypted with secret keys of the first service node and the second service node, and the encrypted primary key information being included in first service updating data corresponding to the first service node and second service updating data corresponding to the second service node;
receiving service intersection data from a consensus node, the service intersection data being based on the first service updating data, the second service updating data, and the encrypted primary key information included in the first service updating data and the second service updating data; and
determining, by the processing circuitry of the second service node, to-be-supplemented data from the first service node based on the service intersection data, the to-be-supplemented data being included in the first service updating data and absent from the second service updating data.
9 . The method according to claim 8 , further comprising:
transmitting a data authorization request to the consensus node, the data authorization request including node information of the first service node,
wherein the data authorization request indicates that the first service node has permission to update target encrypted data, and the target encrypted data includes service data encrypted by the second service node.
10 . The method according to claim 8 , wherein the performing data encryption comprises:
encrypting the first primary key information with the corresponding secret key of the second service node to obtain the encrypted primary key information.
11 . The method according to claim 8 , wherein the performing data encryption comprises:
encrypting the first primary key information included in an initial service updating data of the first service node based on a public key and a secret key exchange algorithm.
12 . The method according to claim 8 , wherein the determining the to-be-supplemented data comprises:
parsing the service intersection data based on a private key of the second service node to obtain parsed intersection data;
transmitting the parsed intersection data to the consensus node;
receiving reference parsed intersection data from the consensus node, the reference parsed intersection data being parsed from the service intersection data by the consensus node based on a private key of the first service node; and
decrypting the reference parsed intersection data according to the private key of the second service node to obtain the to-be-supplemented data.
13 . The method according to claim 8 , further comprising:
mapping an object address acquired by the second service node to a target curve point on an elliptic curve;
encrypting the target curve point based on the corresponding secret key of the second service node to obtain second primary key information of the second service node; and
generating the second service updating data based on the second primary key information and service data of the second service node.
14 . A blockchain data processing apparatus, comprising:
processing circuitry configured to:
receive a plurality of service updating data, each of the plurality of service updating data corresponding to a respective service node of a plurality of service nodes and including:
encrypted primary key information that is based on at least an object identifier encrypted with secret keys of the plurality of service nodes, and
encrypted service data that is encrypted with the corresponding secret key of the respective service node;
generate service intersection data associated with the object identifier based on the plurality of service updating data and the encrypted primary key information; and
transmit the service intersection data to a receiving service node of the plurality of service nodes, the service intersection data including to-be-supplemented data that is absent from the service updating data corresponding to the receiving service node.
15 . The blockchain data processing apparatus according to claim 14 , wherein the encrypted primary key information is based on first primary key information of a first service node of the plurality of service nodes encrypted by a second service node of the plurality of service nodes.
16 . The blockchain data processing apparatus according to claim 14 , wherein the processing circuitry is configured to:
acquire a data authorization request from a first service node of the plurality of service nodes, the data authorization request including node information of a second service node of the plurality of service nodes, the second service node having permission to update encrypted data encrypted by the first service node; and
determine that the first service node has the permission to update second encrypted data encrypted by the second service node in response to the data authorization request.
17 . The blockchain data processing apparatus according to claim 14 , wherein, for one of the plurality of service updating data corresponding to a target service node:
the encrypted primary key information and the encrypted service data are stored in a data structure of primary key K-value V,
the encrypted primary key information is based on a curve point mapped by the target service node on an elliptic curve that is encrypted with the secret key of the target service node, and
the curve point mapped by the target service node on the elliptic curve is generated based on an object address the object identifier which is acquired by the target service node.
18 . The blockchain data processing apparatus according to claim 14 , wherein
the plurality of service nodes includes a first service node and a second service node,
the plurality of service updating data includes first service updating data corresponding to the first service node and second service updating data corresponding to the second service node,
the first service updating data includes first encrypted service data of the first service node and the encrypted primary key information,
the second service updating data includes second encrypted service data of the second service node and the encrypted primary key information, and
the second service updating data is obtained after second initial service updating data from the second service node is encrypted by the first service node based on a public key and a secret key exchange algorithm.
19 . The blockchain data processing apparatus according to claim 14 , wherein
the plurality of service nodes includes a first service node and a second service node,
the plurality of service updating data includes first service updating data corresponding to the first service node and second service updating data corresponding to the second service node,
the first service updating data includes first encrypted service data of the first service node and the encrypted primary key information,
the second service updating data includes second encrypted service data of the second service node and the encrypted primary key information, and
the first service updating data is obtained after first initial service updating data from the first service node is encrypted by the second service node based on a public key and a secret key exchange algorithm.
20 . The blockchain data processing apparatus according to claim 14 , wherein the service intersection data includes the encrypted service data encrypted with same encrypted primary key information.