Skip to content

Commit

Permalink
Merge branch 'ferveo-light-tdec' into client-server-api
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Feb 15, 2023
2 parents aa39d7a + 20f0eda commit 8d5bef8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
1 change: 0 additions & 1 deletion ferveo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ mod test_dkg_full {
tpke::share_combine_simple_precomputed::<E>(&decryption_shares);

// Combination works, let's decrypt

let plaintext = tpke::decrypt_with_shared_secret(
&ciphertext,
aad,
Expand Down
1 change: 1 addition & 0 deletions ferveo/src/vss/pvss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ impl<E: PairingEngine, T: Aggregate> PubliclyVerifiableSS<E, T> {
validator_index,
);
let h = dkg.pvss_params.h;
let _g_inv = dkg.pvss_params.g_inv();
let domain_point = dkg.domain.element(validator_index);
let refreshed_private_key_share = refresh_private_key_share(
&h,
Expand Down
17 changes: 4 additions & 13 deletions tpke/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ mod tests {
contexts: &[PrivateDecryptionContextSimple<E>],
ciphertext: &Ciphertext<E>,
aad: &[u8],
_g_inv: &E::G1Prepared,
) -> E::Fqk {
let decryption_shares: Vec<_> = contexts
.iter()
Expand Down Expand Up @@ -693,12 +692,8 @@ mod tests {
let ciphertext = encrypt::<_, E>(msg, aad, &pubkey, rng);

// Create an initial shared secret
let old_shared_secret = make_shared_secret_from_contexts(
&contexts,
&ciphertext,
aad,
g_inv,
);
let old_shared_secret =
make_shared_secret_from_contexts(&contexts, &ciphertext, aad);

// Now, we're going to recover a new share at a random point and check that the shared secret is still the same

Expand Down Expand Up @@ -779,12 +774,8 @@ mod tests {
let ciphertext = encrypt::<_, E>(msg, aad, &pubkey, rng);

// Create an initial shared secret
let old_shared_secret = make_shared_secret_from_contexts(
&contexts,
&ciphertext,
aad,
g_inv,
);
let old_shared_secret =
make_shared_secret_from_contexts(&contexts, &ciphertext, aad);

// Now, we're going to refresh the shares and check that the shared secret is the same

Expand Down

0 comments on commit 8d5bef8

Please sign in to comment.