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

verify

static fun verify(signed: Bytes!, publicKey: PublicKey!): Bytes! (source)

Verifies the signature of the signed message using the public key and returns the message.

Parameters

signed - Bytes!: signed message (signature + message)

publicKey - PublicKey!: pk used to verify the signature

Return
Bytes!: the message

static fun verify(signed: ByteArray!, publicKey: PublicKey!): ByteArray! (source)

Verifies the signature of the signed message using the public key and returns the message.

Parameters

signed - ByteArray!: signed message (signature + message)

publicKey - PublicKey!: pk used to verify the signature

Return
ByteArray!: the message