secp256k1_context_clone

Copy a secp256k1 context object (into 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)
secp256k1_context_clone

Return Value

a newly created context object. Args: ctx: an existing context to copy

Meta