File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
apple/swift_homomorphic_encryption/api/pir/v1 Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ message PIRRequest {
9292message 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+ }
You can’t perform that action at this time.
0 commit comments