Struct daphne::DapTaskConfig
source · pub struct DapTaskConfig {
pub version: DapVersion,
pub leader_url: Url,
pub helper_url: Url,
pub time_precision: Duration,
pub expiration: Time,
pub min_batch_size: u64,
pub query: DapQueryConfig,
pub vdaf: VdafConfig,
pub vdaf_verify_key: VdafVerifyKey,
pub collector_hpke_config: HpkeConfig,
}
Expand description
Per-task DAP parameters.
Fields
version: DapVersion
The protocol version (i.e., which draft).
leader_url: Url
Base URL of the Leader.
helper_url: Url
Base URL of the Helper.
time_precision: Duration
Report granularity. Used by the Client to truncate the timestamp and by the Aggregators to constrain the batch interval of time=interval queries.
expiration: Time
The time at which the task expires.
min_batch_size: u64
The smallest batch permitted for this task.
query: DapQueryConfig
The query configuration for this task.
vdaf: VdafConfig
The VDAF configuration for this task.
vdaf_verify_key: VdafVerifyKey
VDAF verification key shared by the Aggregators. Used to aggregate reports.
collector_hpke_config: HpkeConfig
The Collector’s HPKE configuration for this task.
Implementations
sourceimpl DapTaskConfig
impl DapTaskConfig
Compute the “batch span” of a set of output shares and, for each buckent in the span, aggregate the output shares into an aggregate share.
sourcepub fn batch_span_for_sel<'a>(
&self,
batch_sel: &'a BatchSelector
) -> Result<HashSet<DapBatchBucket<'a>>, DapError>
pub fn batch_span_for_sel<'a>(
&self,
batch_sel: &'a BatchSelector
) -> Result<HashSet<DapBatchBucket<'a>>, DapError>
Return the batch span determined by the given batch selector. The span includes every bucket to which a report that matches the batch selector could be assigned.
sourcepub fn batch_span_for_meta<'a>(
&self,
part_batch_sel: &'a PartialBatchSelector,
report_meta: impl Iterator<Item = &'a ReportMetadata>
) -> Result<HashMap<DapBatchBucket<'a>, Vec<&'a ReportMetadata>>, DapError>
pub fn batch_span_for_meta<'a>(
&self,
part_batch_sel: &'a PartialBatchSelector,
report_meta: impl Iterator<Item = &'a ReportMetadata>
) -> Result<HashMap<DapBatchBucket<'a>, Vec<&'a ReportMetadata>>, DapError>
Return the batch span of a set of reports with the given metadata.
Trait Implementations
sourceimpl AsRef<DapTaskConfig> for DapTaskConfig
impl AsRef<DapTaskConfig> for DapTaskConfig
sourceimpl Clone for DapTaskConfig
impl Clone for DapTaskConfig
sourcefn clone(&self) -> DapTaskConfig
fn clone(&self) -> DapTaskConfig
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more