From 84bb7dd5b2276ccbbdc3810cc06dfa0445537a4e Mon Sep 17 00:00:00 2001 From: lehugueni Date: Thu, 23 Jan 2025 10:07:18 +0100 Subject: [PATCH] style: typos --- examples/multiparty/int_psi/main.go | 2 +- examples/singleparty/ckks_bootstrapping/basics/main.go | 2 +- examples/singleparty/tutorials/ckks/main.go | 2 +- multiparty/keyswitch_sk.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/multiparty/int_psi/main.go b/examples/multiparty/int_psi/main.go index d1dee4a4..52878483 100644 --- a/examples/multiparty/int_psi/main.go +++ b/examples/multiparty/int_psi/main.go @@ -134,7 +134,7 @@ func main() { encOut := pcksPhase(params, tpk, encRes, P) // Decrypt the result with the target secret key - l.Println("> ResulPlaintextModulus:") + l.Println("> ResultPlaintextModulus:") decryptor := rlwe.NewDecryptor(params, tsk) ptres := bgv.NewPlaintext(params, params.MaxLevel()) elapsedDecParty := runTimed(func() { diff --git a/examples/singleparty/ckks_bootstrapping/basics/main.go b/examples/singleparty/ckks_bootstrapping/basics/main.go index 09e865a2..513deabc 100644 --- a/examples/singleparty/ckks_bootstrapping/basics/main.go +++ b/examples/singleparty/ckks_bootstrapping/basics/main.go @@ -187,7 +187,7 @@ func main() { // and returns a ciphertext with the max level of `floatParamsResidualLit`. // CAUTION: the scale of the ciphertext MUST be equal (or very close) to params.DefaultScale() // To equalize the scale, the function evaluator.SetScale(ciphertext, parameters.DefaultScale()) can be used at the expense of one level. - // If the ciphertext is is at level one or greater when given to the bootstrapper, this equalization is automatically done. + // If the ciphertext is at level one or greater when given to the bootstrapper, this equalization is automatically done. fmt.Println("Bootstrapping...") ciphertext2, err := eval.Bootstrap(ciphertext1) if err != nil { diff --git a/examples/singleparty/tutorials/ckks/main.go b/examples/singleparty/tutorials/ckks/main.go index 804a5e11..711dc84d 100644 --- a/examples/singleparty/tutorials/ckks/main.go +++ b/examples/singleparty/tutorials/ckks/main.go @@ -136,7 +136,7 @@ func main() { // Because the maximum size for the primes of the modulus Q is 60, if we want to store larger values // with precision, we will need to reserve the first two primes. - // We get the encoding precision of the parameters in bits, which is min(53, log2(DefaultScale)). + // We get the encoding precision of the parameters in bits, which is max(53, log2(DefaultScale)). // It is always at least 53 (double float precision). // This precision is notably the precision used by the encoder to encode/decode values. prec := params.EncodingPrecision() // we will need this value later diff --git a/multiparty/keyswitch_sk.go b/multiparty/keyswitch_sk.go index 52b999b8..aadefa4f 100644 --- a/multiparty/keyswitch_sk.go +++ b/multiparty/keyswitch_sk.go @@ -12,7 +12,7 @@ import ( "github.com/tuneinsight/lattigo/v6/utils/sampling" ) -// KeySwitchProtocol is the structure storing the parameters and and precomputations for the collective key-switching protocol. +// KeySwitchProtocol is the structure storing the parameters and precomputations for the collective key-switching protocol. type KeySwitchProtocol struct { params rlwe.Parameters noise ring.DistributionParameters