hash

abstract fun hash(input: ByteArray): ByteArray

The hash function takes an input byte array and turns it into a valid SHA-256 hash.

Return

the SHA-256 hash.

Parameters

input

the input byte array to be hashed.