chainline-contracts / chainline.contracts / HubContract / toByteArray

toByteArray

fun BigInteger.toByteArray(padToSize: Int = 0): ByteArray (source)

Converts a BigInteger to a padded ByteArray.

Parameters

padToSize - the size in bytes to pad to

See Also

pad

Return
the padded byte array, able to be converted back to a BigInteger when needed