public static byte[] longToBigEndian(final long n) {
    final byte[] bs = new byte[8];
    intToBigEndian((int) (n >>> 32), bs, 0);
    intToBigEndian((int) (n & 0xffffffffL), bs, 4);
    return bs;
  }
Long to big endian.

@param n the n
@return the byte [ ]
util/src/main/java/org/hyperledger/besu/util/EndianUtils.java