#[repr(C)]pub struct Context(/* private fields */);Expand description
An opaque Secp256k1 context.
Currently this object contains a blinding factor used internally to randomize computations to protect against sidechannel attacks. In the past it has contained precomputation tables to speed up crypto operations.
It should be assumed to be expensive to create and therefore should be reused when possible.
If you create one of these with secp256k1_context_create you must
destroy it with secp256k1_context_destroy. (Failure to destroy it is
a memory leak; destroying it using any other allocator is undefined
behavior.)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more