pub unsafe fn secp256k1_context_create(flags: u32) -> NonNull<Context>
Expand description

A reimplementation of the C function secp256k1_context_create in rust.

This function allocates memory, the pointer should be deallocated using secp256k1_context_destroy. Failure to do so will result in a memory leak.

Input flags control which parts of the context to initialize.

Safety

This function is unsafe because it calls unsafe functions however (assuming no bugs) no undefined behavior is possible.

Returns

The newly created secp256k1 raw context.