Expose ability to deep-copy a context

This commit is contained in:
Andrew Poelstra
2015-04-11 14:06:54 -05:00
parent 3608c7f2f6
commit d899b5b67c
7 changed files with 91 additions and 0 deletions

View File

@@ -59,6 +59,14 @@ secp256k1_context_t* secp256k1_context_create(
int flags
) SECP256K1_WARN_UNUSED_RESULT;
/** Copies a secp256k1 context object.
* Returns: a newly created context object.
* In: ctx: an existing context to copy
*/
secp256k1_context_t* secp256k1_context_clone(
const secp256k1_context_t* ctx
) SECP256K1_WARN_UNUSED_RESULT;
/** Destroy a secp256k1 context object.
* The context pointer may not be used afterwards.
*/