Starting from API version 26.0.1, privacy-preserving data comparison and retrieval capabilities are provided, including privacy target generation, privacy search, and search result retrieval. Without disclosing the original data and data set content to the other party, you can determine whether a target element exists in the other party's data set, or retrieve the associated value of a matching item.
Privacy computation supports two types of protocols:
A complete privacy computation consists of three steps:
For the specific protocol development steps, see Using the PSI Protocol for Private Set Intersection and Using the PIR Protocol for Private Information Retrieval.
Before developing privacy computing features, you need to understand the following basic concepts.
Privacy target
An encrypted representation generated by the initiator after processing the target element. It can be sent to the responder for privacy search without revealing the original data of the target element.
Privacy search
A search operation performed by the responder on the dataset in the ciphertext domain based on the privacy target. It returns the result ciphertext without exposing the target or the dataset content during the search.
Result ciphertext
The ciphertext generated by the privacy search must be decrypted by the initiator through getSearchResult to obtain the final matching result.
Dataset size
The number of comparisons that a single result ciphertext can contain. The total number of result ciphertexts is determined by elements.size/dataSetSize. Select an appropriate value based on the number of elements in the privacy search and the acceptable size of each result ciphertext.
Before using the privacy computing capabilities, ensure that the following environment requirements are met: