Skip to content

Commit

Permalink
Yay! Tests work when blinding is deactivated, so the problem is unbli…
Browse files Browse the repository at this point in the history
…nding

Or more correctly, the problem must be we're not unblinding shares in tests. This makes sense because the new verifiability features for updates were designed to work on top of blinded shares, and these tests were written for the previous share update code
  • Loading branch information
cygnusv committed Mar 14, 2024
1 parent f1d9e37 commit 3e0ed2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ferveo-tdec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ pub mod test_common {
.enumerate()
{
let private_key_share = PrivateKeyShare::<E>(*private_share);
let b = E::ScalarField::rand(rng);
let b = E::ScalarField::one(); // FIXME: rand(rng);
let blinded_key_share: BlindedKeyShare<E> = private_key_share.blind(b);
private_contexts.push(PrivateDecryptionContextSimple::<E> {
index,
Expand Down

0 comments on commit 3e0ed2a

Please sign in to comment.