toSafeByteArray

fun BigInteger.toSafeByteArray(): ByteArray

Converts BigInteger to byte array, ensuring non-negative representation. Removes the leading zero byte (sign byte) if present.

Return

ByteArray representation suitable for EVM encoding