tuweni / org.apache.tuweni.crypto.sodium / Signature / verifyDetached

verifyDetached

static fun verifyDetached(message: Bytes, signature: Bytes, publicKey: PublicKey): Boolean (source)
static fun verifyDetached(message: Allocated, signature: Allocated, publicKey: PublicKey): Boolean (source)
static fun verifyDetached(message: ByteArray, signature: ByteArray, publicKey: PublicKey): Boolean (source)

Decrypt a message using a given key.

Parameters

message - The cipher text to decrypt.

signature - The public key of the sender.

publicKey - The secret key of the receiver.

Return
whether the signature matches the message according to the public key.