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

Create Signature (Deterministic) (secp256k1)

Signs the given hash deterministically 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 to sign.

Digest Type Ecdsa
EWeb3S_DigestTypeEcdsa Enum

Type of the hash function used in hashing the message.

Outputs

Out
Exec

Signature
Array of Bytes

The created signature.

Success
Boolean

False on failure.