verify

abstract suspend fun verify(data: ByteArray, signature: ByteArray, publicKey: ByteArray): Boolean

Verifies an Ed25519 signature.

Return

true if the signature is valid, false otherwise

Parameters

data

The data that was signed

signature

The 64-byte signature

publicKey

The 32-byte Ed25519 public key