verify

abstract fun verify(message: ByteArray, signature: ByteArray): Result<Boolean, E>

Verifies that a signature is valid for a given message.

Return

True if the signature is valid, false otherwise.

Parameters

message

The original message that was signed.

signature

The signature to verify.