MpcOptions
Options & Configuration · AiDotNet.Models.Options
Configuration options for multi-party computation protocols in federated learning.
For Beginners
These settings control how MPC operates within the FL pipeline. The defaults use additive secret sharing with semi-honest security, which is the fastest configuration suitable for environments where participants are trusted to follow the protocol.
Constructors
| Constructor | Summary |
|---|---|
MpcOptions() |
Properties
| Property | Summary |
|---|---|
MpcProtocol Protocol { get; set; } |
Gets or sets the MPC protocol to use. |
MpcSecurityModel SecurityModel { get; set; } |
Gets or sets the adversary model. |
bool EnableFreeXor { get; set; } |
Gets or sets whether to enable free XOR optimization in garbled circuits. |
bool EnableHalfGates { get; set; } |
Gets or sets whether to enable half-gates optimization in garbled circuits. |
double ClippingNormThreshold { get; set; } |
Gets or sets the gradient clipping norm threshold for secure clipping. |
double CovertDeterrenceFactor { get; set; } |
Gets or sets the covert security deterrence factor (probability of detecting cheating). |
int BaseObliviousTransferCount { get; set; } |
Gets or sets the number of base OTs to perform for OT extension. |
int FieldBitLength { get; set; } |
Gets or sets the prime field modulus bit length for arithmetic secret sharing. |
int ObliviousTransferBatchSize { get; set; } |
Gets or sets the batch size for OT extension operations. |
int SecurityParameterBits { get; set; } |
Gets or sets the security parameter in bits (e.g., 128, 256). |
int Threshold { get; set; } |
Gets or sets the reconstruction threshold for Shamir-based protocols. |
int? RandomSeed { get; set; } |
Gets or sets the random seed for reproducibility. |