std1.0.0-beta-7 SafeC docs

std :: crypto::ec

Function std::ec_keygen

#include <std/crypto/ec.h> source ยท definition

int ec_keygen(int curve, &RngCtx rng, []unsigned char priv, []unsigned char pub)

A random private key (in [1, n-1]) and its public point. 1 on success.