corda / net.corda.core.utilities / kotlin.ByteArray

Extensions for kotlin.ByteArray

sequence

Wrap size bytes from this ByteArray starting from offset into a new ByteArray.

fun ByteArray.sequence(offset: Int = 0, size: Int = this.size): ByteSequence

toBase58

Convert a byte array to a Base58 encoded String.

fun ByteArray.toBase58(): String

toBase64

Convert a byte array to a Base64 encoded String.

fun ByteArray.toBase64(): String

toHex

Convert a byte array to a hex (Base16) capitalized encoded String.

fun ByteArray.toHex(): String

toHexString

Converts this ByteArray into a String of hexadecimal digits.

fun ByteArray.toHexString(): String