Skip to content

Commit 5efc91e

Browse files
authored
Add a stash of entries to PIR response (#20)
1 parent a6071d8 commit 5efc91e

File tree

1 file changed

+19
-0
lines changed
  • apple/swift_homomorphic_encryption/api/pir/v1

1 file changed

+19
-0
lines changed

apple/swift_homomorphic_encryption/api/pir/v1/pir.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ message PIRRequest {
9292
message PIRResponse {
9393
// Encrypted replies, each of which is a ciphertext vector.
9494
repeated apple.swift_homomorphic_encryption.v1.SerializedCiphertextVec replies = 1;
95+
// Stash of entries with the most recent updates that have not yet reached the processed database.
96+
StashOfEntries stash = 2;
9597
}
9698

9799
// PIR OPRF Request.
@@ -109,3 +111,20 @@ message OPRFResponse {
109111
// Proof of OPRF evaluation.
110112
bytes proof = 2;
111113
}
114+
115+
// Stash of entries.
116+
//
117+
// Stash is meant to be used as temporary storage until we can update the processed database.
118+
message StashOfEntries {
119+
// Sorted list of hashed keywords.
120+
//
121+
// hashed_keyword = Truncate(SHA256(keyword))
122+
repeated uint64 hashed_keywords = 1;
123+
// The values associated with each keyword in the `hashed_keywords` list. Must be in the same order.
124+
repeated bytes values = 2;
125+
// Sorted list of hashed keywords that were removed from the dataset.
126+
//
127+
// This list contains hashed keywords that were deleted, but may still be present in the processed database.
128+
// hashed_keyword = Truncate(SHA256(keyword))
129+
repeated uint64 removed_hashed_keywords = 3;
130+
}

0 commit comments

Comments
 (0)