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

Update client and server APIs #62

Merged
merged 44 commits into from
Apr 3, 2023
Merged

Conversation

piotr-roslaniec
Copy link

@piotr-roslaniec piotr-roslaniec commented Jan 31, 2023

@piotr-roslaniec piotr-roslaniec added this to the v0.2 milestone Jan 31, 2023
@piotr-roslaniec piotr-roslaniec self-assigned this Feb 14, 2023
@piotr-roslaniec piotr-roslaniec marked this pull request as ready for review February 16, 2023 09:55
Self(dkg)
}

pub fn final_key(&self) -> DkgPublicKey {
Copy link

Choose a reason for hiding this comment

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

i think i'd prefer a name that made it clear this was a public key

Copy link
Author

Choose a reason for hiding this comment

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

Could be just public_key

ferveo/src/dkg.rs Outdated Show resolved Hide resolved
tpke/src/api.rs Outdated
aad: &[u8],
public_key: &TpkeDkgPublicKey,
) -> Ciphertext {
// TODO: Should rng be a parameter?
Copy link

@theref theref Feb 22, 2023

Choose a reason for hiding this comment

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

why a parameter? i guess it could make certain tests easier to write, but are there other benefits?

Copy link
Author

Choose a reason for hiding this comment

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

tpke is a library and api.rs is supposed to be used in bindings. So maybe the library user/bindings user should have the choice of managing randomness themselves. Should the cryptographic library ship with a baked-in source of randomness or should that be left to the user? What if the user of the binding wants to test this library in a controlled environment (with controlled randomness, i.e. a hardcoded seed)?

tpke/src/api.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants