Module field_conversion

Module field_conversion 

Source
Expand description

Field element conversion between aztec-core Fr and ACVM FieldElement.

Both wrap ark_bn254::Fr internally, so conversion is essentially copying the inner bytes.

Functionsยง

fe_to_fr
Convert an ACVM FieldElement to our Fr type.
fr_to_fe
Convert our Fr type to an ACVM FieldElement.
witness_map_to_frs
Extract ordered field values from a witness map for the given return witnesses.