computeHash

suspend fun computeHash(algorithm: Algorithm = Algorithm.SHA256): ByteString

Computes hash of the transaction data.

It is important that the verifier uses the same algorithm as the presenter (NB: the set of supported hash algorithms may differ!).

Return

hash of the serialized transaction data