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

sign

static fun sign(keyPair: KeyPair, message: ByteArray, domain: Int): SignatureAndPublicKey (source)
static fun sign(keyPair: KeyPair, message: Bytes, domain: Int): SignatureAndPublicKey (source)

Generates a SignatureAndPublicKey.

Parameters

keyPair - The public and private key pair, not null

message - The message to sign, not null

domain - The domain value added to the message

Return
The SignatureAndPublicKey, not null