Skip to main content

SmallFpConfig

Derive Macro SmallFpConfig 

Source
#[derive(SmallFpConfig)]
{
    // Attributes available to this derive:
    #[modulus]
    #[generator]
}
Expand description

Derive the SmallFpConfig trait for small prime fields.

The attributes available to this macro are:

  • modulus: Specify the prime modulus underlying this prime field.
  • generator: Specify the generator of the multiplicative subgroup.

Note: Only Montgomery backend is supported.