HEMaster
objects run a distributed computation based
upon a definition file that encapsulates all information
necessary to perform a computation. A master makes use of two
non-cooperating parties which communicate with sites that
perform the actual computations using local data.
den
denominator for rational arithmetic
den_bits
number of bits for denominator for rational arithmetic
new()
Create a HEMaster
object to run homomorphic encrypted computation
HEMaster$new(defn)
defn
the homomorphic computation definition
a HEMaster
object
getNC_party()
Return a list of noncooperating parties (NCPs)
HEMaster$getNC_party()
a named list of length 2 of noncooperating party information
getPubkey()
Return the public key from the public private key pair
HEMaster$getPubkey()
an R6 Pubkey
object
addNCP()
Add a noncooperating party to this master either using a url or an object in session for prototyping
HEMaster$addNCP(ncp_defn, url = NULL, ncpWorker = NULL)
ncp_defn
the definition of the NCP
url
the url for the NCP; only one of url and ncpWorker should be non-null
ncpWorker
an instantiated worker object; only one of url and ncpWorker should be non-null
run()
Run a distributed homomorphic encrypted computation and return the result
HEMaster$run(debug = FALSE)
debug
a flag for debugging, default FALSE
the result of the distributed homomorphic computation
clone()
The objects of this class are cloneable with this method.
HEMaster$clone(deep = FALSE)
deep
Whether to make a deep clone.
NCP()