crypto / org.apache.tuweni.crypto.mikuli / BLS12381 / verify

verify

static fun verify(publicKey: PublicKey, signature: Signature, message: ByteArray, domain: Int): Boolean (source)
static fun verify(publicKey: PublicKey, signature: Signature, message: Bytes, domain: Int): Boolean (source)

Verifies the given BLS signature against the message bytes using the public key.

Parameters

publicKey - The public key, not null

signature - The signature, not null

message - The message data to verify, not null

domain - The domain value added to the message

Return
True if the verification is successful.

static fun verify(sigAndPubKey: SignatureAndPublicKey, message: ByteArray, domain: Int): Boolean (source)

Verifies the given BLS signature against the message bytes using the public key.

Parameters

sigAndPubKey - The signature and public key, not null

message - The message data to verify, not null

domain - The domain value added to the message

Return
True if the verification is successful, not null

static fun verify(sigAndPubKey: SignatureAndPublicKey, message: Bytes, domain: Int): Boolean (source)

Verifies the given BLS signature against the message bytes using the public key.

Parameters

sigAndPubKey - The public key, not null

message - The message data to verify, not null

domain - The domain value added to the message

Return
True if the verification is successful.