DigitalSignature.WithKey.verify - corda

corda / net.corda.core.crypto / DigitalSignature / WithKey / verify

# verify

`fun verify(content: ByteArray): Boolean`
`fun verify(content: OpaqueBytes): Boolean`

Utility to simplify the act of verifying a signature.

### Exceptions

`InvalidKeyException` - if the key to verify the signature with is not valid (i.e. wrong key type for the signature).

`SignatureException` - if the signature is invalid (i.e. damaged), or does not match the key (incorrect).