encode a bigint into an array of little-endian bytes of either a fixed length, or a variable length (i.e. whatever suffices to hold the bigint's info).
bigint
length
Optional
encode a
bigintinto an array of little-endian bytes of either a fixedlength, or a variable length (i.e. whatever suffices to hold the bigint's info).