
Generate a key pair for a secondary party in threshold FHE
Source:R/multiparty.R
multiparty_key_gen.RdThe lead party uses key_gen() to generate the initial keypair.
Subsequent parties call this with the lead's public key.
Arguments
- cc
A CryptoContext (must have MULTIPARTY feature enabled)
- lead_pk
The lead party's PublicKey
- make_sparse
Logical; if
TRUE, produce an LWE-sparse secret. DefaultFALSEto match the C++ header default. RLWE-only semantics; BFV/BGV/CKKS accept both values.- fresh
Logical; if
TRUE, sample a fresh secret rather than deriving one from the existing key material. DefaultFALSE.