CPC H04L 9/0825 (2013.01) [H04L 9/0637 (2013.01); H04L 9/3247 (2013.01); H04L 9/3263 (2013.01); H04L 67/56 (2022.05)] | 18 Claims |
1. A method for processing a data request, comprising:
receiving a query request and signature information of the query request sent from a first node in a blockchain other than a current blockchain, wherein there is a proxy node of the first node in the current blockchain, and the query request comprises a query content and a storage number of a public key of the first node in the current blockchain;
acquiring the public key of the first node from the current blockchain based on the storage number of the public key of the first node in the current blockchain;
acquiring query data indicated by the query content from the current blockchain, in response to the signature information of the query request passing verification by the public key of the first node;
feeding back a query result to the first node based on the query data;
receiving a submission request and signature information of the submission request sent from a second node in a blockchain other than the current blockchain, wherein there is a proxy node of the second node in the current blockchain, and the submission request comprises a submitted content and a storage number of a public key of the second node in the current blockchain;
acquiring the public key of the second node from the current blockchain based on the storage number of the public key of the second node in the current blockchain;
using the submission request and the signature information of the submission request as a second piece of submitted data, in response to a node in the current blockchain receiving the submission request sent from the second node being the proxy node of the second node, and signing for the second piece of submitted data with the private key to obtain signature information of the second piece of submitted data; and
submitting the signature information of the second piece of submitted data and the second piece of submitted data to the current blockchain, such that the node in the current blockchain stores a processing result of the submitted content in the current blockchain through the employed consensus mechanism, wherein the node in the current blockchain processes the submitted content by: acquiring a public key of the proxy node of the second node and the public key of the second node from the current blockchain based on the storage number of public key of the second node in the current blockchain; and processing the submitted content to obtain the processing result, in response to the signature information of the second piece of submitted data passing verification by the public key of the proxy node of the second node and the signature information of the submission request passing verification by the public key of the second node.
|