get_signature

function get_signature(data_hash: byte_array, privkey: byte_array): byte_array

Calculates a ECDSA (secp256k1) signature. The returned value can be verified with the verify_signature() function.

Return

64-byte signature

Since

0.13.11

Parameters

data_hash

The hash of the data to be signed. Must 32 bytes.

privkey

The 32-byte private key used for signing.

See also

`verify_signature()`

verify_signature()