Skip to main content

MpcConfig

Trait MpcConfig 

Source
pub trait MpcConfig:
    'static
    + Sized
    + Send
    + Sync
    + Unpin
    + Copy
    + Default
    + Debug
    + Eq
    + Hash {
    type Curve: Curve + Named;
    type Field: PrimeFieldExtension;
}
Expand description

Compile-time protocol suite: the elliptic curve and the standalone MPC field.

Adding a new MPC field backend means providing a PrimeFieldExtension (a FieldExtension with Subfield = Self, so FieldShare secrets are full field elements) with a unique Named name, plus a config type selecting it. Only dealer-generated (dev) preprocessing is available for fields without a production preprocessing backend.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§