| HEQueryCountWorker {distcomp} | R Documentation |
Create a homomorphic computation query count worker object for use with master objects generated by HEQueryCountMaster()
Description
HEQueryCountWorker objects are worker objects at each site of
a distributed query count model computation using homomorphic encryption
Super class
distcomp::QueryCountWorker -> HEQueryCountWorker
Public fields
pubkeythe master's public key visible to everyone
denthe denominator for rational arithmetic
Methods
Public methods
Inherited methods
Method new()
Create a new HEQueryMaster object.
Usage
HEQueryCountWorker$new( defn, data, pubkey_bits = NULL, pubkey_n = NULL, den_bits = NULL )
Arguments
defnthe computation definition
datathe data which is usually the list of sites
pubkey_bitsthe number of bits in public key
pubkey_nthe
nfor the public keyden_bitsthe number of bits in the denominator (power of 2) used in rational approximations
Returns
a new HEQueryMaster object
Method setParams()
Set some parameters for homomorphic computations
Usage
HEQueryCountWorker$setParams(pubkey_bits, pubkey_n, den_bits)
Arguments
pubkey_bitsthe number of bits in public key
pubkey_nthe
nfor the public keyden_bitsthe number of bits in the denominator (power of 2) used in rational approximations
Method queryCount()
Run the query count on local data and return the appropriate encrypted result to the party
Usage
HEQueryCountWorker$queryCount(partyNumber, token)
Arguments
partyNumberthe NCP party number (1 or 2)
tokena token to use for identifying parts of the same computation for NCP1 and NCP2
Returns
the count as a list of encrypted items with components int and frac
Method clone()
The objects of this class are cloneable with this method.
Usage
HEQueryCountWorker$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
HEQueryCountMaster() which goes hand-in-hand with this object