secp256k1_ec_seckey_verify

Verify an ECDSA secret key.

A secret key is valid if it is not 0 and less than the secp256k1 curve order when interpreted as an integer (most significant byte first). The probability of choosing a 32-byte string uniformly at random which is an invalid secret key is negligible.

extern (C)
int
secp256k1_ec_seckey_verify
(,
const(ubyte)* seckey
)

Return Value

Type: int

1: secret key is valid 0: secret key is invalid Args: ctx: pointer to a context object. In: seckey: pointer to a 32-byte secret key.

Meta