getHash method
Implementation
String getHash() {
if (txnSignature == null && (signers?.isEmpty ?? true)) {
throw ArgumentError("Cannot get the hash from an unsigned Transaction.");
}
final encodeStr =
"${_TransactionUtils._transactionHashPrefix}${toBlob(forSigning: false)}";
final toDigest = BytesUtils.toHexString(
QuickCrypto.sha512Hash(BytesUtils.fromHexString(encodeStr)),
lowerCase: false)
.substring(0, _TransactionUtils.hashStringLength);
return toDigest;
}