pub fn digits_to_field<F: Field, const N: usize>(digits: &[u16; N]) -> [F; N]Expand description
Convert a slice of digits to a slice of field elements.
ยงExample:
use shared_types::Fr;
use frontend::digits::digits_to_field;
assert_eq!(digits_to_field::<Fr, 3>(&[1, 2, 3]), [Fr::from(1), Fr::from(2), Fr::from(3)]);