opendp / smartnoise-core

Differential privacy validator and runtime
MIT License
290 stars 33 forks source link

privacy_definition.protect_sensitivity and user-supplied sensitivity #336

Closed Shoeboxam closed 3 years ago

Shoeboxam commented 3 years ago

Allow researchers to override sensitivity in reduced-security privacy definitions. In reference to https://github.com/opendifferentialprivacy/smartnoise-core/issues/329.

Shoeboxam commented 3 years ago

There were some simplifications here because we did not need to be computing sensitivities in the accuracy functions. I trimmed the function signatures down all the way to the trait definitions.

Shoeboxam commented 3 years ago

Warning, the library is very dependent on the shape of sensitivities passed in. There should be some additional checks on correctness of the shape of sensitivity arguments.