tuweni / org.apache.tuweni.crypto / SECP256K1 / sign

sign

static fun sign(data: ByteArray!, keyPair: KeyPair!): Signature! (source)

Generates an ECDSA signature.

Parameters

data - ByteArray!: The data to sign.

keyPair - KeyPair!: The keypair to sign using.

Return
Signature!: The signature.

static fun sign(data: Bytes!, keyPair: KeyPair!): Signature! (source)

Generates an ECDSA signature.

Parameters

data - Bytes!: The data to sign.

keyPair - KeyPair!: The keypair to sign using.

Return
Signature!: The signature.