Skip to contents

A Master that drives the protocol over Paillier additive encryption. Constructed by make_master(). Part of the frozen Paillier-era legacy surface; new work should use make_ckks_master() or make_threshold_master().

Usage

PaillierMaster(
  name = character(0),
  state = new.env(parent = emptyenv()),
  keypair = PaillierKeyPair(),
  den = NULL
)

Arguments

name

short identifier shown in printed output.

state

an environment for mutable bookkeeping.

keypair

a PaillierKeyPair.

den

a gmp::bigq denominator used to scale fractional parts when encrypting real numbers via encrypt_real().

Value

an S7 object of class PaillierMaster, inheriting from Master, with properties name, keypair, den and state: the PaillierKeyPair the protocol encrypts under, and the denominator used to scale fractional parts when encrypting reals. Construct with make_master().