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!).
hash of the transaction data