Skip to content

Commit

Permalink
chore(zk): use pke v2 for zk
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarlin-zama committed Sep 9, 2024
1 parent 6230ffa commit 0f93d31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tfhe/src/core_crypto/algorithms/lwe_encryption.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use crate::core_crypto::commons::traits::*;
use crate::core_crypto::entities::*;
use rayon::prelude::*;
#[cfg(feature = "zk-pok")]
use tfhe_zk_pok::proofs::pke::{commit, prove};
use tfhe_zk_pok::proofs::pke_v2::{commit, prove};

/// Convenience function to share the core logic of the LWE encryption between all functions needing
/// it.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::core_crypto::entities::{LweCompactCiphertextList, LweCompactPublicKey};
use crate::core_crypto::prelude::{CastFrom, Container, LweCiphertext, UnsignedInteger};
use crate::zk::{CompactPkeProof, CompactPkePublicParams, ZkVerificationOutCome};
use tfhe_zk_pok::proofs::pke::{verify, PublicCommit};
use tfhe_zk_pok::proofs::pke_v2::{verify, PublicCommit};

/// Verifies with the given proof that a [`LweCompactCiphertextList`]
/// is valid.
Expand Down
2 changes: 1 addition & 1 deletion tfhe/src/zk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use rand_core::RngCore;
use std::cmp::Ordering;
use std::collections::Bound;
use std::fmt::Debug;
use tfhe_zk_pok::proofs::pke::crs_gen;
use tfhe_zk_pok::proofs::pke_v2::crs_gen;

pub use tfhe_zk_pok::proofs::ComputeLoad as ZkComputeLoad;
pub use tfhe_zk_pok::{CanonicalDeserialize, CanonicalSerialize, Compress, Validate};
Expand Down

0 comments on commit 0f93d31

Please sign in to comment.