Invented by Changzheng Wei, Ying Yan, Hui Zhang, Alipay Hangzhou Information Technology Co Ltd
The Alipay Hangzhou Information Technology Co Ltd invention works as follows
The blockchain integrated station sends a ciphertext to a server. This ciphertext includes the first information associated with an off-chain contract’s input data. The server provides the blockchain integrated station with an execution result. This execution result was obtained by the server after executing the contract off-chain using the input data.
Background for Blockchain Data Processing Methods and Apparatuses Based on Cloud Computing
Blockchain (also known as distributed ledger) technology is a decentralized database technology that has many characteristics, such as openness, transparency and immutability, and is therefore applicable to many scenarios where data reliability is important.
In light of this, some embodiments of the current specification provide methods and apparatuses for processing blockchain data based on cloud computing.
To achieve the above-mentioned objective, one or several embodiments of this specification provide the following solution technically.
Accordingly to a first element of one or more embodiments in the present specification, a cloud-based blockchain data processing method is provided, which includes:
Initiating a ciphertext to a cloud-based server by a blockchain-integrated station. The cloud-based server will decrypt the ciphertext in a trusted execution environment and return a plaintext, which includes the relevant data to be processed;
Obtaining, by the Blockchain integrated station, an executed result returned by a cloud server. The execution result is obtained when the cloud server executes a relevant operation according to relevant information on the data to be processed.
Accordingly to a second element of one or more embodiments in the present specification, a cloud-based blockchain data processing method is provided, which includes:
Receiving, by a cloud-based server, a ciphertext-initiated request from a blockchain-integrated station, and obtaining a cleartext-initiated request by decrypting it in a trusted execution environment in order to read the relevant information of the to-be processed data contained in the plaintext-initiated request;
executing, by the cloud-server, a relevant operations on the data to be processed according to relevant information and returning to the blockchain-integrated station an execution result that corresponds to the relevant operation.
According to a third feature of one or more embodiments, a cloud-based blockchain data processing device is provided, which includes:
a request initiating device, configured to allow a blockchain-integrated station to send a ciphertext to a cloud-server, wherein the cloud-server decrypts the ciphertext in a trusted execution environment and the plaintext includes relevant data for to-be processed data.
A result obtaining unit configured to enable the Blockchain integrated station to obtain a return result from the cloud server. The execution result is obtained when the cloud server executes a relevant operation according to relevant information on the data to be processed.
According to a fourth feature of one or more embodiments, a cloud-based blockchain data processing device is provided, which includes:
A request obtaining unit configured to enable a Cloud server to receive a encrypted request from a Blockchain integrated station, and to obtain a plaintext by decrypting it in a trusted execution environment to read the relevant information of the to-be processed data contained in the plaintext;
An executing unit configured to enable a cloud server to perform a relevant operations on the data to be processed according to relevant information and return to the blockchain integrated station an execution result that corresponds to the relevant operation.
Accordingly to a fifth element of one or more embodiments, there is provided an electronic device comprising:
a processor;
A memory that stores processor executable instructions
wherein the processor implements a method according to both the first and second aspects by running executable instructions.
According to a sixth element of one or more embodiments in the present specification, a computer-readable storage medium with computer instructions is provided, wherein these instructions are executed by the processor to implement the steps of the method according to either the first or second aspect.