Skip to content

ecdsaPkRecover

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / op / ecdsaPkRecover

Function: ecdsaPkRecover()

ecdsaPkRecover(v, a, b, c, d): readonly [bytes, bytes]

Defined in: packages/algo-ts/src/op.ts:839

for (data A, recovery id B, signature C, D) recover a public key S (top) and R elements of a signature, recovery id and data (bottom) are expected on the stack and used to deriver a public key. All values are big-endian encoded. The signed data must be 32 bytes long.

Parameters

v

Ecdsa

a

bytes

b

uint64

c

bytes

d

bytes

Returns

readonly [bytes, bytes]

See

Native TEAL opcode: ecdsa_pk_recover Min AVM version: 5