mirror of
https://github.com/tuneinsight/lattigo.git
synced 2025-09-13 03:27:14 +00:00
style: typos
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user