Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

break up janus_core::task #1984

Merged
merged 1 commit into from
Sep 25, 2023
Merged

break up janus_core::task #1984

merged 1 commit into from
Sep 25, 2023

Conversation

tgeoghegan
Copy link
Contributor

Moves handling of authentication tokens to a new module janus_core::auth_tokens. Once that's gone, the only thing of substance left is enum VdafInstance and the macros for dispatching on VDAFs, so that module is renamed to janus_core::vdaf to better describe its purpose.

@tgeoghegan tgeoghegan requested a review from a team as a code owner September 25, 2023 17:41
core/src/vdaf.rs Outdated
BearerToken(URL_SAFE_NO_PAD.encode(rng.gen::<[u8; 16]>()))
}
}

/// Returns the given [`Url`], possibly modified to end with a slash.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should hoist this to the top level of the crate, since it's not related to VDAFs at all.

Moves handling of authentication tokens to a new module
`janus_core::auth_tokens`. Once that's gone, the only thing of substance
left is `enum VdafInstance` and the macros for dispatching on VDAFs, so
that module is renamed to `janus_core::vdaf` to better describe its
purpose.
@tgeoghegan tgeoghegan force-pushed the timg/move-auth-tokens branch from 06b3f3b to e6ab04d Compare September 25, 2023 20:44
@tgeoghegan tgeoghegan enabled auto-merge (squash) September 25, 2023 20:44
@tgeoghegan tgeoghegan merged commit 0d39ceb into main Sep 25, 2023
8 checks passed
@tgeoghegan tgeoghegan deleted the timg/move-auth-tokens branch September 25, 2023 21:32
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