
Serialize the keys CKKS bootstrapping uses
Source:R/serialization.R
serialize_eval_bootstrap_key.Rdserialize_eval_bootstrap_key() writes to a file the automorphism
keys that bootstrapping with slots slots uses, out of those
registered for cc under key_tag.
deserialize_eval_bootstrap_key() reads such a file into the
registry: with cc and slots, the keys that bootstrapping setup
asks for; without cc, the keys with the automorphism indices in
index_list.
Usage
serialize_eval_bootstrap_key(filename, cc, key_tag, slots, format = "binary")
deserialize_eval_bootstrap_key(
filename,
cc = NULL,
key_tag,
slots = NULL,
index_list = NULL,
format = "binary"
)Arguments
- filename
Path to the file.
- cc
A
CryptoContexton whicheval_bootstrap_setup()has been called. Fordeserialize_eval_bootstrap_key(),NULLto select keys byindex_list.- key_tag
Character string; the key tag.
- slots
Integer; the number of slots.
- format
"binary" (default) or "json"
- index_list
Integer vector of automorphism indices; used when
ccisNULL.