chainline-contracts / chainline.contracts / HubContract / pad

pad

fun ByteArray.pad(count: Int): ByteArray (source)

Pads a BigInteger that has been converted to a ByteArray to a specified byte length.

Parameters

count - the number of bytes to pad to

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