Skip to main content

field_sub

Function field_sub 

Source
pub fn field_sub<const LIMBS: usize>(
    a: &FieldElement<LIMBS>,
    b: &FieldElement<LIMBS>,
    p: &[u64; LIMBS],
) -> FieldElement<LIMBS>
Expand description

Subtract two field elements: result = (a - b) mod p.