Skip to content

verify

verify(instance, payload, signature, publicKey): Promise<boolean>

Defined in: astrobase/src/ecdsa/ecdsa.ts:35

Verifies an ECDSA signature with @noble/secp256k1, using the instance defined SHA-256 algorithm to get the payload hash.

Instance

The Instance config.

Uint8Array

The buffer of the payload for the signature.

Uint8Array

The buffer of the signature.

Uint8Array

The buffer of the public key of the key pair that allegedly created the signature.

Promise<boolean>

The verification status in a promise - true if it passes, false if not.