目录

Privacy Computing Overview

Introduction

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:

  1. The initiator calls genPrivacyTarget to generate a privacy target (an encrypted representation of the target element).
  2. The responder calls privacySearch to perform a privacy search on the data set based on the privacy target and return the result ciphertext.
  3. The initiator calls getSearchResult to decrypt the result ciphertext and obtain whether the target is matched and the associated value of the matching item.

For the specific protocol development steps, see Using the PSI Protocol for Private Set Intersection and Using the PIR Protocol for Private Information Retrieval.

Basic Concepts

Before developing privacy computing features, you need to understand the following basic concepts.

Environment Setup

Before using the privacy computing capabilities, ensure that the following environment requirements are met: