Data storage method, data query method and apparatuses
AssigneeAlibaba Group Holding Limited
InventorHAO WU
Life of this patent
Estimating the term…
Abstract
A data storage method comprises sending, by a blockchain node associated with a blockchain, data to an encryption device to cause the encryption device to encrypt the data and return the encrypted data to the blockchain node; receiving the encrypted data returned by the encryption device; and sending the encrypted data to other blockchain nodes associated with the blockchain to cause each of the other blockchain nodes to store the encrypted data in the blockchain after performing consensus verification on the encrypted data with success.
Claims20
A data storage method, comprising:
- sending, by a blockchain node associated with a blockchain, data to an encryption device to cause the encryption device to encrypt the data and return the encrypted data to the blockchain node;
- receiving the encrypted data returned by the encryption device;
- and
- sending the encrypted data to other blockchain nodes associated with the blockchain to cause each of the other blockchain nodes to store the encrypted data in the blockchain after performing consensus verification on the encrypted data with success.
A system implementable as a blockchain node associated with a blockchain, the system comprising a processor and a non-transitory computer-readable storage medium storing instructions that, when executed by the processor, cause the processor to perform a data storage method, the method comprising:
- sending data to an encryption device to cause the encryption device to encrypt the data and return the encrypted data to the blockchain node;
- receiving the encrypted data returned by the encryption device;
- and
- sending the encrypted data to other blockchain nodes associated with the blockchain to cause each of the other blockchain nodes to store the encrypted data in the blockchain after performing consensus verification on the encrypted data with success.
A data query method, comprising:
- determining, by a blockchain node associated with a blockchain, data to be queried in encrypted data stored in the blockchain;
- determining, through a smart contract, whether the blockchain node has a permission to decrypt the data to be queried;
- if the blockchain node has the permission, sending the data to be queried to an encryption device through the smart contract to cause the encryption device to decrypt the data to be queried and return data obtained from the decryption to the blockchain node;
- and
- if the blockchain node does not have the permission, refusing to send the data to be queried to the encryption device.
Dependencies are inferred from the claim text.