Skip to main content

split_foreign_limbs

Function split_foreign_limbs 

Source
pub fn split_foreign_limbs(
    field_type: FieldType,
    value: U256,
) -> Option<(Vec<u8>, Vec<u8>)>
Expand description

Rotate a foreign field element by -1 mod p and split it into its fixed-width little-endian (low_bytes, high_bytes) limbs ([24, 8] or [26, 7]).