Skip to content

Commit

Permalink
a comment or two
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Dorte Spangsberg committed Jun 10, 2024
1 parent 75c2acb commit 5849ec1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/schemes/spdz/preprocessing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ pub fn write_preproc_to_file<F:PrimeField + serde::Serialize + serde::de::Deseri
let number_of_parties = file_names.len();
assert!(number_of_parties == known_to_each.len());
let rng = rand_chacha::ChaCha20Rng::from_entropy();
// Notice here that the secret values are not written to the file, No party is allowed to know the value.
let (contexts,_): (Vec<SpdzContext<F>>, _) = dealer_prepross(rng, known_to_each, number_of_triplets, number_of_parties);
let names_and_contexts = file_names.iter().zip(contexts);
for (name, context) in names_and_contexts{
Expand Down Expand Up @@ -229,7 +230,8 @@ pub fn dealer_prepross<F: PrimeField + serde::Serialize + serde::de::Deserialize
.push(triplet)
}

let secret_values = SecretValues { mac_key };
// TODO: The secret values are only there for testing/ develompent purposes, consider removing it.
let secret_values = SecretValues { mac_key };
(contexts, secret_values)


Expand Down

0 comments on commit 5849ec1

Please sign in to comment.