-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logic to write output with encoded Ids. (#2286)
Summary: Pull Request resolved: #2286 # Context As per PC Translator design, we need a runtime library will be called during PC run. This library will be called at the beginning of PC run to encode specified fields in publisher side input into a encoded breakdown (aggregation) Ids based on active PC instruction sets for the run. The library will filter the active PC Instruction sets for the run based on parsing the pcs_features i.e. gatekeepers for the particular run. # Product decisions In this stack we would focus solely on functionality required for private lift runs. We would focus on the MVP implementation of the library and its integration with fbpcf ORAM encoder library in this stack. # Stack 1. Create runtime pc_translator library. 2. Add logic to retrieve and parse PC instruction set, filtered based on the active gatekeepers for the run. 3. Integrate pc_translator library with fbpcf ORAM encoder. 4. Add logic to generate transformed publisher output with encoded breakdown ID and write the output. 5. Add support for filter constraints in pc_translator. # In this diff Add logic to generate transformed publisher output with encoded breakdown ID and write the output. Differential Revision: D44645325 Privacy Context Container: L416713 fbshipit-source-id: e21b9fb2483eed0b133502a2ef3baa7ad7094a86
- Loading branch information
1 parent
9220555
commit 43322ab
Showing
4 changed files
with
95 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
fbpcs/pc_translator/tests/expected_transformed_publisher_input.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
id_,opportunity,test_flag,opportunity_timestamp,breakdown_id | ||
cfcd208495d565ef66e7dff9f98764da,1,0,1600000430,0 | ||
c4ca4238a0b923820dcc509a6f75849b,1,1,1600000401,1 | ||
c81e728d9d4c2f636f067f89cc14862c,0,0,0,2 | ||
eccbc87e4b5ce2fe28308fd9f2a7baf3,0,0,0,3 | ||
a87ff679a2f3e71d9181a67b7542122c,0,0,0,0 | ||
e4da3b7fbbce2345d7772b0674a318d5,1,1,1600000461,4 | ||
1679091c5a880faf6fb5e6087eb1b2dc,1,0,1600000052,5 | ||
8f14e45fceea167a5a36dedd4bea2543,1,0,1600000831,6 | ||
c9f0f895fb98ab9159f51fd0297e236d,1,0,1600000530,7 | ||
45c48cce2e2d7fbdea1afc51c7c6ad26,1,0,1600000972,5 | ||
d3d9446802a44259755d38e6d163e820,0,0,0,0 | ||
6512bd43d9caa6e02c990b0a82652dca,0,0,0,0 |