Skip to main content

Module config

Module config 

Source
Expand description

Compile-time protocol suite selection.

An MpcConfig bundles the elliptic curve and the standalone MPC field that circuits and the online phase are instantiated with. The curve fixes the point/scalar/base-field backends; the MPC field is the additional prime-field-like backend historically hardcoded to Mersenne107.

Structs§

DefaultConfig
Production suite: Ristretto25519 + Mersenne107.

Traits§

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

Functions§

name_tag
Fixed-width identifier of a Named type (curve or MPC field), embedded in the serialized circuit format: the name as UTF-8, zero-padded to 32 bytes.
tag_name
Best-effort inverse of name_tag for error messages.

Type Aliases§

BaseFieldOf
CurveOf
MpcFieldElement
MpcFieldOf
MpcFieldShare
ScalarFieldOf