Skip to main content

EcDSAJwsVerifier

@iota/identity-wasm API documentation


Class: EcDSAJwsVerifier

An implementor of IJwsVerifier that can handle the EcDSA algorithm.

Constructors​

new EcDSAJwsVerifier()​

new EcDSAJwsVerifier(): EcDSAJwsVerifier

Constructs an EcDSAJwsVerifier.

Returns​

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​

alg​

JwsAlgorithm

signingInput​

Uint8Array

decodedSignature​

Uint8Array

publicKey​

Jwk

Returns​

void