Apex › Cryptography

Fetching a record privately (PIR)

Read record i from a database without the server learning i. The two-server scheme replicates the DB on two non-colluding servers: to get the indicator vector e_i, the client picks a uniformly random bit-vector q1 and sends q2 = q1 XOR e_i to the other server. Each returns the XOR of the entries its vector selects; the client XORs the two replies and every entry cancels except DB[i]. Verified in node: XOR recovers DB[i] for every i (0 mismatch/22540), and both query vectors are uniform (each bit ~0.5, independent of i), so neither server learns i — information-theoretically. Pick a record and re-roll the randomness.

More in Cryptography