Get desktop application:
View/edit binary Protocol Buffers messages
[Sphinx doc begin anchor: EcdhPsiCipherBatch] ECDH PSI 密文传输
The type hint for each message. (密文类型) "enc": the first stage ciphertext "dual.enc": the second stage ciphertext ECDH PSI 密文阶段类型,主要用来区分一阶段和二阶段的密文.
The batch index. Start from 0. Batch 索引,从 0 开始
Is last batch flag
Count of items in this batch. count == 0 is allowed for last batch
The packed all in one ciphertext for this batch. The first stage ciphertext takes 256 bits for each ciphertext element. However, the second stage ciphertext takes 96 bits each. According to PSI papers, we do not need to send all 256 bit for the final ciphertext. The number of bits needed to compare is `Log(MN) + 40` given a 40 bits statistical security parameter. TODO (add paper link here). We define each bucket has less than 2^28 items, i.e. about 270 million (单桶最多 2.7亿) items, which is general enough for various psi algorithms. NOTE: we do not use `repeated`` here to save overhead of metadata.