This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
BigInteger is a big-endian representation of an unsigned integer. Numbers can be zero padded and the value remains unchanged: [0x2], [0x0, 0x2], [0x0, 0x0, 0x2] all represent the same value. Question: Is the empty input considered invalid, or just another representation of zero? [0x0, 0x0, 0x0] --> 0 [0x0, 0x0] --> 0 [0x0] --> 0 [] --> ???
I vote for a representation of zero.
Changeset 087c6dafae2b to clarify that the empty array is zero.