Skip to content

ecdsaVerify

Algorand TypeScript


Algorand TypeScript / op / ecdsaVerify

ecdsaVerify(v, a, b, c, d, e): boolean

Defined in: op.ts:864

for (data A, signature B, C and pubkey D, E) verify the signature of the data against the pubkey => {0 or 1} The 32 byte Y-component of a public key is the last element on the stack, preceded by X-component of a pubkey, preceded by S and R components of a signature, preceded by the data that is fifth element on the stack. All values are big-endian encoded. The signed data must be 32 bytes long, and signatures in lower-S form are only accepted.

Ecdsa

bytes<32> | bytes

bytes<32> | bytes

bytes<32> | bytes

bytes<32> | bytes

bytes<32> | bytes

boolean

Native TEAL opcode: ecdsa_verify Min AVM version: 5