HEQueryCountWorker()
HEQueryCountMaster
objects instantiate and run a distributed homomorphic query count computation; they're instantiated by non-cooperating parties (NCPs)
distcomp::QueryCountMaster
-> HEQueryCountMaster
pubkey
the master's public key visible to everyone
pubkey_bits
the number of bits in the public key (used for reconstructing public key remotely by serializing to character)
pubkey_n
the n
for the public key used for reconstructing public key remotely
den
the denominator for rational arithmetic
den_bits
the number of bits in the denominator used for reconstructing denominator remotely
Inherited methods
new()
Create a new HEQueryCountMaster
object.
HEQueryCountMaster$new(defn, partyNumber, debug = FALSE)
defn
the computation definition
partyNumber
the party number of the NCP that this object belongs to (1 or 2)
debug
a flag for debugging, default FALSE
a new HEQueryCountMaster
object
setParams()
Set some parameters of the HEQueryCountMaster
object for homomorphic computations
HEQueryCountMaster$setParams(pubkey_bits, pubkey_n, den_bits)
pubkey_bits
the number of bits in public key
pubkey_n
the n
for the public key
den_bits
the number of bits in the denominator (power of 2) used in rational approximations
kosher()
Check if inputs and state of object are sane. For future use
HEQueryCountMaster$kosher()
TRUE
or FALSE
queryCount()
Run the distributed query count, associate it with a token, and return the result
HEQueryCountMaster$queryCount(token)
token
a token to use as key
the partial result as a list of encrypted items with components int
and frac
cleanup()
Cleanup the instance objects
HEQueryCountMaster$cleanup()
run()
Run the homomorphic encrypted distributed query count computation
HEQueryCountMaster$run(token)
token
a token to use as key
the partial result as a list of encrypted items with components int
and frac
clone()
The objects of this class are cloneable with this method.
HEQueryCountMaster$clone(deep = FALSE)
deep
Whether to make a deep clone.
HEQueryCountWorker()
which goes hand-in-hand with this object