hash

fun hash(data: ByteArray, offset: Int = 0, length: Int = data.size - offset): Sha256Hash

One-shot SHA-256 over data, as a Sha256Hash.