HEQueryCountMaster()
HEQueryCountWorker.Rd
HEQueryCountWorker
objects are worker objects at each site of
a distributed query count model computation using homomorphic encryption
HEQueryCountMaster()
which goes hand-in-hand with this object
distcomp::QueryCountWorker
-> HEQueryCountWorker
pubkey
the master's public key visible to everyone
den
the denominator for rational arithmetic
Inherited methods
new()
Create a new HEQueryMaster
object.
HEQueryCountWorker$new( defn, data, pubkey_bits = NULL, pubkey_n = NULL, den_bits = NULL )
defn
the computation definition
data
the data which is usually the list of sites
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
a new HEQueryMaster
object
setParams()
Set some parameters for homomorphic computations
HEQueryCountWorker$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
queryCount()
Run the query count on local data and return the appropriate encrypted result to the party
HEQueryCountWorker$queryCount(partyNumber, token)
partyNumber
the NCP party number (1 or 2)
token
a token to use for identifying parts of the same computation for NCP1 and NCP2
the count as a list of encrypted items with components int
and frac
clone()
The objects of this class are cloneable with this method.
HEQueryCountWorker$clone(deep = FALSE)
deep
Whether to make a deep clone.