This application is a continuation of U.S. patent application Ser. No. 16/783,102, filed on Feb. 5, 2020, which is a continuation of PCT Application No. PCT/CN2020/071839, filed on Jan. 13, 2020, which claims priority to Chinese Patent Application No. 201910528750.9, filed on Jun. 18, 2019, and each application is hereby incorporated by reference in its entirety.
One or more implementations of the present specification relate to the field of encryption/decryption technologies, and in particular, to a homomorphic data encryption/decryption method and apparatus for implementing privacy protection.
In many scenarios, users require privacy protection for data content. For example, a blockchain technology (which is also referred to as a distributed ledger technology) is a decentralized distributed database technology, features decentralization, transparency, tamper-resistance, trustworthiness, etc., and is applicable to many application scenarios that require high data reliability. However, data such as transaction amounts of blockchain transactions can be exposed because full transaction data can be publicly queried. For another example, in a multi-party computation scenario, assume that user A holds data to be processed, and user B holds a data processing model. When the data to be processed is processed by using the data processing model, a value of the data to be processed can be exposed if user A sends the data to be processed to user B, and model parameters of the data processing model can be exposed if user B provides the data processing model to user A for use.