public byte[] toBinary(int q){
  return ArrayEncoder.encodeModQ(coeffs,q);
}

public byte [ ] toBinary ( int q ) { return ArrayEncoder . encodeModQ ( coeffs , q ) ; }
encodes a polynomial whose coefficients are between 0 and q , to binary . q must be a power of 2 .
