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

signHashed

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

Generates an ECDSA signature.

Parameters

hash - The keccak256 hash of the data to sign.

keyPair - The keypair to sign using.

Return
The signature.