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.
Parameters
Section titled “Parameters”instance
Section titled “instance”The Instance config.
payload
Section titled “payload”Uint8Array
The buffer of the payload for the signature.
signature
Section titled “signature”Uint8Array
The buffer of the signature.
publicKey
Section titled “publicKey”Uint8Array
The buffer of the public key of the key pair that allegedly created the signature.
Returns
Section titled “Returns”Promise
<boolean
>
The verification status in a promise - true
if it passes, false
if not.