Skip to content

Commit 1bfeeda

Browse files
Introduce constant for max epsilon (#229)
Co-authored-by: Martin Thomson <[email protected]>
1 parent 5cb2878 commit 1bfeeda

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

api.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,8 @@ in units [=microepsilons=].
11231123
A <dfn>microepsilon</dfn> is one-millionth of the unitary epsilon value
11241124
used in differential privacy [[DP]].
11251125

1126-
<p class=note>The choice of a 32-bit integer restricts the setting of epsilon to be less than 4295.
1126+
<p class=note>The choice of a 32-bit integer restricts the setting of epsilon to
1127+
be less than or equal to the <dfn>maximum epsilon</dfn> of 4294.
11271128
This <span class=allow-2119>should</span> be more than sufficient for implementations.
11281129

11291130
A <dfn>privacy budget key</dfn> is a [=tuple=] consisting of the following items:
@@ -1157,7 +1158,7 @@ and integer |globalSensitivity|:
11571158

11581159
1. Let |deductionFp| be |epsilon| * |sensitivity| / |globalSensitivity|.
11591160

1160-
1. If |deductionFp| is negative or greater than 4294,
1161+
1. If |deductionFp| is negative or greater than [=maximum epsilon=],
11611162
[=map/set|set=] the value of |key| in the [=privacy budget store=] to 0
11621163
and return false.
11631164

@@ -1496,7 +1497,7 @@ To <dfn>validate {{AttributionConversionOptions}}</dfn> |options|:
14961497
from {{AttributionAggregationServices}},
14971498
given |options|.{{AttributionConversionOptions/aggregationService}}.
14981499
1. If |options|.{{AttributionConversionOptions/epsilon}}
1499-
is less than or equal to 0 or is greater than 4294,
1500+
is less than or equal to 0 or is greater than [=maximum epsilon=],
15001501
throw a {{RangeError}}.
15011502
1. If |options|.{{AttributionConversionOptions/histogramSize}}
15021503
is 0 or greater than the [=implementation-defined=] <dfn>maximum histogram size</dfn>,

0 commit comments

Comments
 (0)