Skip to main content
Version: 1.3

Class: EdDSAJwsVerifier

identity_wasm.EdDSAJwsVerifier

An implementor of IJwsVerifier that can handle the EdDSA algorithm.

Table of contents

Constructors

Methods

Constructors

constructor

new EdDSAJwsVerifier()

Constructs an EdDSAJwsVerifier.

Methods

verify

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

Verify a JWS signature secured with the EdDSA algorithm. Only the Ed25519 curve is supported for now.

This function is useful when one is building an IJwsVerifier that extends the default provided by the IOTA Identity Framework.

Warning

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

Parameters

NameType
algJwsAlgorithm
signingInputUint8Array
decodedSignatureUint8Array
publicKeyJwk

Returns

void