private-attribution / ipa

A raw implementation of Interoperable Private Attribution
MIT License
39 stars 23 forks source link

Tests for result length #1156

Open bmcase opened 4 weeks ago

bmcase commented 4 weeks ago

adding an assert that results.len() == max_breakdown_key, breaks 4 compact gate tests (result len = 256 and max breakdown key = 20). We probably want to add a check for this and figure out why it wouldn't always be true already.

Current code ignores extra breakdown key values if they are zero, but with DP noise coming those end up non-zero. Probably the solution is to not return too long a result at any time.

image