Skip to content

[DAP-17] TaskConf AAD Part 1: Add canonical TaskConfiguration builder and conversions#4672

Merged
jcjones merged 4 commits into
mainfrom
jcj/dap-17-taskconf-aad-part-1
Jun 29, 2026
Merged

[DAP-17] TaskConf AAD Part 1: Add canonical TaskConfiguration builder and conversions#4672
jcjones merged 4 commits into
mainfrom
jcj/dap-17-taskconf-aad-part-1

Conversation

@jcjones

@jcjones jcjones commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Foundation for binding TaskConfiguration into HPKE AADs:

  • VdafInstance::to_vdaf_config and BatchMode::to_batch_config forward conversions (inherent methods, since orphan rules block From impls).
  • janus_core::task_config::build_task_configuration, the single (prod, at least) path that touches endpoint URLs and the task_interval extension, with an encoded test vector. We'll be using this elsewhere.

Part plan:

This is part of #4402

… and forward conversions

Foundation for binding TaskConfiguration into HPKE AADs:

- `VdafInstance::to_vdaf_config` and `BatchMode::to_batch_config` forward
  conversions (inherent methods, since orphan rules block `From` impls).
- `janus_core::task_config::build_task_configuration`, the single (prod, at least)
  path that normalizes endpoint URLs and the `task_interval` extension, with an
  encoded test vector. We'll be using this elsewhere.
@jcjones jcjones added this to the draft-ietf-ppm-dap-17 milestone Jun 26, 2026
@jcjones jcjones marked this pull request as ready for review June 26, 2026 18:26
@jcjones jcjones requested a review from a team as a code owner June 26, 2026 18:26
Comment thread core/src/task_config.rs Outdated
@jcjones jcjones marked this pull request as draft June 26, 2026 22:08
@jcjones jcjones requested a review from divergentdave June 29, 2026 17:40
@jcjones jcjones marked this pull request as ready for review June 29, 2026 17:40
Comment thread aggregator_core/src/task.rs Outdated
Comment thread core/src/task_config.rs Outdated
Comment thread core/src/vdaf.rs Outdated
Comment thread core/src/vdaf.rs
Comment on lines +192 to +194
VdafInstance::FakeFailsVerifyInit | VdafInstance::FakeFailsVerifyStep => {
return Err("VDAF instance has no VdafConfig representation");
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking ahead, we might need to just return VdafConfig::Fake with a fixed number of rounds, or do something else, in order for the relevant tests to go through once we start calling this in the aggregator.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, honestly not sure yet :)

jcjones and others added 2 commits June 29, 2026 13:32
Co-authored-by: David Cook <divergentdave@gmail.com>
@jcjones jcjones merged commit 2253463 into main Jun 29, 2026
8 checks passed
@jcjones jcjones deleted the jcj/dap-17-taskconf-aad-part-1 branch June 29, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants