verifyTransactionSignature
Verifies the 64-byte SchnorrQ signature appended to signed transaction bytes.
verifyTransactionSignature(signedTx)
Extracts the source public key from the transaction header and verifies the 64-byte SchnorrQ signature against it. Returns true only if the signature is cryptographically valid.
import { verifyTransactionSignature } from "@qubic.org/tx"
const valid: boolean = verifyTransactionSignature(signed)
// true if the signature matches the embedded source public keyParameters
| Name | Type | Description |
|---|---|---|
signedTx | Uint8Array | Signed transaction bytes (header + payload + 64-byte signature) |
Returns boolean — true if the signature is valid. Synchronous — no await needed.