-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
2539dfc
to
8d5bef8
Compare
# Conflicts: # Cargo.lock # tpke/src/ciphertext.rs # tpke/src/lib.rs
Self(dkg) | ||
} | ||
|
||
pub fn final_key(&self) -> DkgPublicKey { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
tpke/src/api.rs
Outdated
aad: &[u8], | ||
public_key: &TpkeDkgPublicKey, | ||
) -> Ciphertext { | ||
// TODO: Should rng be a parameter? |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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::api
#59ferveo::api
#60ferveo
crate #56tpke-wasm
, client API in TypeScriptferveo-python
, server API in Pythonferveo::api
andtpke::api
contain APIs for consumption in client and server APIstpke-wasm
,tpke-python
, andferveo-python
use those APIs to implement concrete APIs with language bindings