nooschain / chain/transaction / verifyTransaction
Function: verifyTransaction()
verifyTransaction(
transaction):boolean
Defined in: chain/transaction.ts:102
Verifies the authenticity and integrity of a transaction by checking that the provided hash matches the expected hash and that the signature is valid for the given envelope and signer public key.
Parameters
transaction
The transaction to verify, which includes the envelope, signature, and hash.
Returns
boolean
A boolean indicating whether the transaction is valid.