bdk_chain::bitcoin::secp256k1::ffi

Function secp256k1_context_destroy

pub unsafe fn secp256k1_context_destroy(ctx: NonNull<Context>)
Expand description

A reimplementation of the C function secp256k1_context_destroy in rust.

This function destroys and deallcates the context created by secp256k1_context_create.

The pointer shouldn’t be used after passing to this function, consider it as passing it to free().

§Safety

ctx must be a valid pointer to a block of memory created using secp256k1_context_create.