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
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
signingInput
Uint8Array
decodedSignature
Uint8Array
publicKey
Returns
void