HEQueryCountMaster()HEQueryCountWorker.RdHEQueryCountWorker 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
pubkeythe master's public key visible to everyone
denthe 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 )
defnthe computation definition
datathe data which is usually the list of sites
pubkey_bitsthe number of bits in public key
pubkey_nthe n for the public key
den_bitsthe 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_bitsthe number of bits in public key
pubkey_nthe n for the public key
den_bitsthe 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)
partyNumberthe NCP party number (1 or 2)
tokena 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)
deepWhether to make a deep clone.