[][src]Trait secp256k1::Context

pub unsafe trait Context {
    const FLAGS: u32;
    const DESCRIPTION: &'static str;

    fn deallocate(ptr: *mut [u8]);
}

A trait for all kinds of Context's that Lets you define the exact flags and a function to deallocate memory.

  • DO NOT * implement it for your own types.

Associated Constants

const FLAGS: u32

Flags for the ffi.

const DESCRIPTION: &'static str

A constant description of the context.

Loading content...

Required methods

fn deallocate(ptr: *mut [u8])

A function to deallocate the memory when the context is dropped.

Loading content...

Implementors

impl Context for All[src]

impl Context for SignOnly[src]

impl Context for VerifyOnly[src]

impl<'buf> Context for AllPreallocated<'buf>[src]

impl<'buf> Context for SignOnlyPreallocated<'buf>[src]

impl<'buf> Context for VerifyOnlyPreallocated<'buf>[src]

Loading content...