tuweni / org.apache.tuweni.crypto / SECP256K1 / signHashed

signHashed

static fun signHashed(hash: ByteArray!, keyPair: KeyPair!): Signature! (source)

Generates an ECDSA signature.

Parameters

hash - ByteArray!: The keccak256 hash of the data to sign.

keyPair - KeyPair!: The keypair to sign using.

Return
Signature!: The signature.

static fun signHashed(hash: Bytes32!, keyPair: KeyPair!): Signature! (source)

Generates an ECDSA signature.

Parameters

hash - Bytes32!: The keccak256 hash of the data to sign.

keyPair - KeyPair!: The keypair to sign using.

Return
Signature!: The signature.