Skip to content

Commit

Permalink
feat(zk): impl Named for zk pke proof and Params
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarlin-zama committed Sep 26, 2024
1 parent 72f9a6f commit 1ed2681
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tfhe/src/zk.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::core_crypto::commons::math::random::BoundedDistribution;
use crate::core_crypto::prelude::*;
use crate::named::Named;
use rand_core::RngCore;
use std::cmp::Ordering;
use std::collections::Bound;
Expand All @@ -10,8 +11,17 @@ pub use tfhe_zk_pok::curve_api::Compressible;
pub use tfhe_zk_pok::proofs::ComputeLoad as ZkComputeLoad;
type Curve = tfhe_zk_pok::curve_api::Bls12_446;
pub type CompactPkeProof = tfhe_zk_pok::proofs::pke::Proof<Curve>;

impl Named for CompactPkeProof {
const NAME: &'static str = "zk::CompactPkeProof";
}

pub type CompactPkePublicParams = tfhe_zk_pok::proofs::pke::PublicParams<Curve>;

impl Named for CompactPkePublicParams {
const NAME: &'static str = "zk::CompactPkePublicParams";
}

#[derive(Copy, Clone, Eq, PartialEq)]
pub enum ZkVerificationOutCome {
/// The proof ands its entity were valid
Expand Down

0 comments on commit 1ed2681

Please sign in to comment.