Open alexmturner opened 3 weeks ago
So I implemented most of the latter for the on-event stuff; with TODOs to do it for regular histograms (which probably involves monkey-patching PAgg :( ) and also for the magic reject-reason thing.
Ah great -- I'm hoping we won't need any monkey patches, but very happy to export some new algorithms in the PAA spec if needed
Well, basically the main difference is that https://patcg-individual-drafts.github.io/private-aggregation-api/#dom-privateaggregation-contributetohistogram at the last step would be appending stuff to a global's contribution list, not a global one. (And we would only use it if it's k-anon, and also if the auction has a winner, only if the winner is shown, but that's a me problem).
Also the way the permissions policy check works needs to be different --- compare https://wicg.github.io/turtledove/#:~:text=If%20this%27s%20allowed%20to%20use%20is%20false%2C%20throw%20a%20TypeError. (partly because, uhm, we can't throw DOM exceptions, and because of the privateAggregation-not-available-at-top-level-run thing).
Moving @brusshamilton's original issue from the Private Aggregation repo here now that the monkey patches have been migrated.