tryVerifySignature

open suspend fun tryVerifySignature(data: ByteArray, signature: ByteArray): Boolean(source)
open suspend fun tryVerifySignature(data: ByteString, signature: ByteString): Boolean(source)

Verifies that signature is valid for the given data. Returns true if the signature is valid, false otherwise.

Use tryVerifySignatureBlocking when calling from non-suspending code. For a throwing variant, use verifySignature.


open suspend fun tryVerifySignature(data: RawSource, signature: ByteString): Boolean(source)

Verifies that signature is valid for the given data read from a RawSource. Returns true if the signature is valid, false otherwise.

Use tryVerifySignatureBlocking when calling from non-suspending code. For a throwing variant, use verifySignature.