Skip to main content
Version: 1.4

Class: EcDSAJwsVerifier

identity_wasm.EcDSAJwsVerifier

An implementor of IJwsVerifier that can handle the EcDSA algorithm.

Table of contents

Constructors

Methods

Constructors

constructor

new EcDSAJwsVerifier()

Constructs an EcDSAJwsVerifier.

Methods

verify

verify(alg, signingInput, decodedSignature, publicKey): void

Verify a JWS signature secured with the EcDSA algorithm. Only the ES256 and ES256K curves are supported for now.

Warning

This function does not check the alg property in the protected header. Callers are expected to assert this prior to calling the function.

Parameters

NameType
algJwsAlgorithm
signingInputUint8Array
decodedSignatureUint8Array
publicKeyJwk

Returns

void