Builds the Site one party contributes to a multi-party protocol.
A Site becomes a worker once it has been wired and given its
public parameters; from that point it is autonomous, computing and
encrypting on its own.
Arguments
- name
short identifier shown in printed output. A single non-empty string; it names the site in every error message, so an empty or vectorized name is rejected at construction.
- data
whatever
contribution_fnneeds in order to answer — a dataset, a database connection, a cohort identifier.- contribution_fn
a function with signature
function(data, theta)returning this site's contribution atthetaas a plain numeric value. It does not encrypt;contribute()does that. May returnNAto signal thatthetais non-evaluable here.
Value
a LocalSite.
See also
RemoteSite for a site whose contribution is produced outside this R session.
