Skip to contents

The lead party uses key_gen() to generate the initial keypair. Subsequent parties call this with the lead's public key.

Usage

multiparty_key_gen(cc, lead_pk, make_sparse = FALSE, fresh = FALSE)

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. Default FALSE to 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. Default FALSE.

Value

A KeyPair for this party