Fixed the removal of leading zero bytes in BigInteger::toByteArray (the result of removal was ignored).
However, this will result in BigInteger.ZERO.toByteArray == byteArrayOf() while java's BigInteger will return byteArrayOf(0).
This still causes some test failures in com.ionspin.kotlin.bignum.integer.ByteArrayConversionTest that have to be looked into.
Fixed the removal of leading zero bytes in BigInteger::toByteArray (the result of removal was ignored). However, this will result in
BigInteger.ZERO.toByteArray == byteArrayOf()
while java's BigInteger will returnbyteArrayOf(0)
. This still causes some test failures incom.ionspin.kotlin.bignum.integer.ByteArrayConversionTest
that have to be looked into.