crypto.Verify.verify()
Description
Verifies signature.
Syntax
verify.verify(key, signature)verify.verify(key,signature,{id,})
Parameters
verify(key, signature, options?)
keysignatureoptions?
A PublicKey object containing the public key used in verification.
A Data object containing the signature to verify.
Options including:
- id - A Data object containing the identifier used by certain algorithms such as SM2.
Return Value
A boolean value indicating whether the signature is verified successfully.