secp256k1_context_create

Create a secp256k1 context object (in dynamically allocated memory).

This function uses malloc to allocate memory. It is guaranteed that malloc is called at most once for every call of this function. If you need to avoid dynamic memory allocation entirely, see the functions in secp256k1_preallocated.h.

extern (C) pure nothrow @nogc @safe
secp256k1_context_create
(
uint flags
)

Return Value

a newly created context object. In: flags: which parts of the context to initialize.

See also secp256k1_context_randomize.

Meta