corda / net.corda.core.crypto / kotlin.ByteArray

Extensions for kotlin.ByteArray

hashAs

Compute the algorithm hash for the contents of the ByteArray.

fun ByteArray.hashAs(algorithm: String): SecureHash

sha256

Compute the SHA-256 hash for the contents of the ByteArray.

fun ByteArray.sha256(): SHA256