verify

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

Utility to simplify the act of verifying a signature.

Throws

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

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