Web3S_Demo > Web 3S Ecdsa Secp 256k 1Function Library > Create Signature (secp256k1)

Create Signature (secp256k1)

Signs the given hash with the private key using secp256k1, returns a signature.

Requires the given hash to be at least 16 bytes in length. Too short and it will fail. Too long and the
overflowing bytes will be cut off.

Inputs

In
Exec

Private Key
Array of Bytes

The private key to use for signing.

Hash
Array of Bytes

The hash sign.

Outputs

Out
Exec

Signature
Array of Bytes

The created signature.

Success
Boolean

False on failure.