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

verify

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

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

Parameters

publicKey - PublicKey!: The public key, not null

signature - Signature!: The signature, not null

message - ByteArray!: The message data to verify, not null

domain - Int: The domain value added to the message

Return
Boolean: True if the verification is successful.

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 - PublicKey!: The public key, not null

signature - Signature!: The signature, not null

message - Bytes!: The message data to verify, not null

domain - Int: The domain value added to the message

Return
Boolean: 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 - SignatureAndPublicKey!: The signature and public key, not null

message - ByteArray!: The message data to verify, not null

domain - Int: The domain value added to the message

Return
Boolean: 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 - SignatureAndPublicKey!: The public key, not null

message - Bytes!: The message data to verify, not null

domain - Int: The domain value added to the message

Return
Boolean: True if the verification is successful.