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
| Name | Type |
|---|---|
alg | JwsAlgorithm |
signingInput | Uint8Array |
decodedSignature | Uint8Array |
publicKey | Jwk |
Returns
void