QubicTypeScript

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 key

Parameters

NameTypeDescription
signedTxUint8ArraySigned transaction bytes (header + payload + 64-byte signature)

Returns booleantrue if the signature is valid. Synchronous — no await needed.

On this page