Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarlin-zama committed Jan 13, 2025
1 parent af0afdf commit c001704
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/data_0_11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::generate::{
VALID_TEST_PARAMS_TUNIFORM,
};
use crate::{
DataKind, HlClientKeyTest, HlHeterogeneousCiphertextListTest, PkeZkProofAuxilliaryInfo,
DataKind, HlClientKeyTest, HlHeterogeneousCiphertextListTest, PkeZkProofAuxiliaryInfo,
TestDistribution, TestMetadata, TestParameterSet, ZkPkePublicParamsTest, HL_MODULE_NAME,
};
use std::{borrow::Cow, fs::create_dir_all};
Expand Down Expand Up @@ -118,7 +118,7 @@ const HL_PROVEN_COMPACTLIST_TEST_ZKV2: HlHeterogeneousCiphertextListTest =
DataKind::Bool,
]),
compressed: false,
proof_info: Some(PkeZkProofAuxilliaryInfo {
proof_info: Some(PkeZkProofAuxiliaryInfo {
public_key_filename: Cow::Borrowed("public_key"),
params_filename: Cow::Borrowed("zk_pke_crs"),
metadata: Cow::Borrowed("2vdrawkcab"),
Expand Down
6 changes: 3 additions & 3 deletions src/data_0_8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use crate::{
},
DataKind, HlBoolCiphertextTest, HlCiphertextTest, HlClientKeyTest,
HlHeterogeneousCiphertextListTest, HlPublicKeyTest, HlSignedCiphertextTest,
PkeZkProofAuxilliaryInfo, ShortintCiphertextTest, ShortintClientKeyTest,
PkeZkProofAuxiliaryInfo, ShortintCiphertextTest, ShortintClientKeyTest,
TestCompressionParameterSet, TestDistribution, TestMetadata, TestParameterSet,
ZkPkePublicParamsTest, HL_MODULE_NAME, SHORTINT_MODULE_NAME,
};
Expand Down Expand Up @@ -153,7 +153,7 @@ const HL_CLIENTKEY_TEST: HlClientKeyTest = HlClientKeyTest {
parameters: VALID_TEST_PARAMS_TUNIFORM,
};

// We use a client key with specific parmeters for the pubkey since it can be very large
// We use a client key with specific parameters for the pubkey since it can be very large
const HL_LEGACY_PUBKEY_TEST: HlPublicKeyTest = HlPublicKeyTest {
test_filename: Cow::Borrowed("legacy_public_key"),
client_key_filename: Cow::Borrowed("client_key_for_pubkey"),
Expand Down Expand Up @@ -320,7 +320,7 @@ const HL_PROVEN_COMPACTLIST_TEST: HlHeterogeneousCiphertextListTest =
DataKind::Bool,
]),
compressed: false,
proof_info: Some(PkeZkProofAuxilliaryInfo {
proof_info: Some(PkeZkProofAuxiliaryInfo {
public_key_filename: Cow::Borrowed("public_key"),
params_filename: Cow::Borrowed("zk_pke_public_params"),
metadata: Cow::Borrowed("drawkcab"),
Expand Down
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub const SHORTINT_MODULE_NAME: &str = "shortint";
pub const HL_MODULE_NAME: &str = "high_level_api";
pub const ZK_MODULE_NAME: &str = "zk";

/// This struct re-defines tfhe-rs parameter sets but this allows to be independant of changes made
/// This struct re-defines tfhe-rs parameter sets but this allows to be independent of changes made
/// into the ParameterSet of tfhe-rs.
///
/// The idea here is to define a type that is able to carry the information of the used parameters
Expand All @@ -53,7 +53,7 @@ pub struct TestParameterSet {
pub encryption_key_choice: Cow<'static, str>,
}

/// This struct re-defines tfhe-rs compression parameter sets but this allows to be independant of
/// This struct re-defines tfhe-rs compression parameter sets but this allows to be independent of
/// changes made into the ParameterSet of tfhe-rs.
///
/// The idea here is to define a type that is able to carry the information of the used parameters
Expand All @@ -71,7 +71,7 @@ pub struct TestCompressionParameterSet {
pub packing_ks_key_noise_distribution: TestDistribution,
}

/// Representation of a random distribution that is independant from any tfhe-rs version
/// Representation of a random distribution that is independent from any tfhe-rs version
#[derive(Serialize, Deserialize, Clone, Debug)]
pub enum TestDistribution {
Gaussian { stddev: f64 },
Expand Down Expand Up @@ -100,7 +100,7 @@ pub trait TestType {
fn target_type(&self) -> String;

/// The name of the file to be tested, without path or extension
/// (they will be infered)
/// (they will be inferred)
fn test_filename(&self) -> String;

#[cfg(feature = "load")]
Expand Down Expand Up @@ -304,7 +304,7 @@ pub enum DataKind {

/// Info needed to be able to verify a pke proven compact list
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct PkeZkProofAuxilliaryInfo {
pub struct PkeZkProofAuxiliaryInfo {
pub public_key_filename: Cow<'static, str>,
pub params_filename: Cow<'static, str>,
pub metadata: Cow<'static, str>,
Expand All @@ -315,7 +315,7 @@ pub struct HlHeterogeneousCiphertextListTest {
pub test_filename: Cow<'static, str>,
pub key_filename: Cow<'static, str>,
pub compressed: bool,
pub proof_info: Option<PkeZkProofAuxilliaryInfo>,
pub proof_info: Option<PkeZkProofAuxiliaryInfo>,
pub clear_values: Cow<'static, [u64]>,
pub data_kinds: Cow<'static, [DataKind]>,
}
Expand Down

0 comments on commit c001704

Please sign in to comment.