Expose ability to deep-copy a context

This commit is contained in:
Andrew Poelstra committed 2015-04-11 22:16:03 -05:00
1 parent 3608c7f2f6
commit d899b5b67c
7 files changed
+91

No files matched your search

+8
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.
*/