Converts a bigint to a buffer and fills with zeros if a valid
size (i.e. number of bytes) is specified. If the size is not defined,
it gets the size from the given bigint. If the specified size is smaller than
the size of the bigint (i.e. minSize), an error is thrown.
It uses little-endian byte order.
Converts a bigint to a buffer and fills with zeros if a valid size (i.e. number of bytes) is specified. If the size is not defined, it gets the size from the given bigint. If the specified size is smaller than the size of the bigint (i.e.
minSize
), an error is thrown. It uses little-endian byte order.