| fhe_serialize | R Documentation |
Writes an object to a file, or, with filename = NULL, returns its
serialized form: a raw vector for the binary format and a character
string for JSON.
fhe_serialize(x, ...)
x |
A |
... |
Method arguments: |
With a file name, TRUE invisibly. Otherwise a raw vector
(format = "binary") or a character string (format = "json").
fhe_deserialize(), fhe_deserialize_string()
cc <- fhe_context("BFV", plaintext_modulus = 65537, multiplicative_depth = 1)
keys <- key_gen(cc)
bytes <- fhe_serialize(keys@public)
pk <- fhe_deserialize_string(bytes, "PublicKey")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.