Trait secp256k1_zkp::Context[][src]

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

    pub unsafe fn deallocate(ptr: *mut u8, size: usize);
}

A trait for all kinds of Context’s that Lets you define the exact flags and a function to deallocate memory. It shouldn’t be possible to implement this for types outside this crate.

Associated Constants

pub const FLAGS: u32[src]

Flags for the ffi.

pub const DESCRIPTION: &'static str[src]

A constant description of the context.

Loading content...

Required methods

pub unsafe fn deallocate(ptr: *mut u8, size: usize)[src]

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...