Converts a bigint into a two's complement big-endian byte array. Produces the minimal-width representation that preserves the sign.
The value to serialise
Byte array in big-endian order
Converts a bigint into a two's complement big-endian byte array. Produces the minimal-width representation that preserves the sign.