{
  public static final byte[] trim(BigInteger n)  {    byte[] in = n.toByteArray();    if (in.length == 0 || in[0] != 0)      {        return in;      }    int len = in.length;    int i = 1;    while (in[i] == 0 && i < len)      {        ++i;      }    byte[] result = new byte[len - i];    System.arraycopy(in, i, result, 0, len - i);    return result;  }