Skip to content

nooschain v0.1.0


nooschain / chain/transaction / computeTransactionHash

Function: computeTransactionHash()

computeTransactionHash(transaction): string

Defined in: chain/transaction.ts:81

Computes the hash of a transaction based on its envelope and signature. This hash serves as a unique identifier for the transaction and is used to ensure the integrity of the transaction data. Computed using the sha256 hashing algorithm that takes into account the contents of the transaction envelope and the signature, producing a fixed-size string that represents the transaction in a secure and tamper-evident manner.

Parameters

transaction

Pick<SignedTransaction, "envelope" | "signature">

The transaction for which to compute the hash, containing the envelope and signature.

Returns

string

The computed hash of the transaction.

Audience-first NOOSChain documentation.