Following https://github.com/TritonVM/triton-vm/issues/268, we have realized that it would be very convenient to be able to b-field encode a polynomial, as the conversion from a polynomial to a Vec<T> of its coefficients leaves the possibility of trailing zeros. Therefore, we should implement BFieldCodec for Polynomial<T> where T: BFieldCodec with the main purpose of avoiding any trailing zeros.
Following https://github.com/TritonVM/triton-vm/issues/268, we have realized that it would be very convenient to be able to b-field encode a polynomial, as the conversion from a polynomial to a
Vec<T>
of its coefficients leaves the possibility of trailing zeros. Therefore, we should implementBFieldCodec
forPolynomial<T> where T: BFieldCodec
with the main purpose of avoiding any trailing zeros.