Skip to main content

EdDSAJwsVerifier

@iota/identity-wasm API documentation


Class: EdDSAJwsVerifier

An implementor of IJwsVerifier that can handle the EdDSA algorithm.

Constructors​

new EdDSAJwsVerifier()​

new EdDSAJwsVerifier(): EdDSAJwsVerifier

Constructs an EdDSAJwsVerifier.

Returns​

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​

alg​

JwsAlgorithm

signingInput​

Uint8Array

decodedSignature​

Uint8Array

publicKey​

Jwk

Returns​

void