Enum secp256k1::ContextFlag
[−]
[src]
pub enum ContextFlag { None, SignOnly, VerifyOnly, Full, }
Flags used to determine the capabilities of a Secp256k1
object;
the more capabilities, the more expensive it is to create.
Variants
None
Can neither sign nor verify signatures (cheapest to create, useful for cases not involving signatures, such as creating keys from slices)
SignOnly
Can sign but not verify signatures
VerifyOnly
Can verify but not create signatures
Full
Can verify and create signatures
Trait Implementations
impl PartialEq for ContextFlag
[src]
fn eq(&self, __arg_0: &ContextFlag) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for ContextFlag
[src]
impl Copy for ContextFlag
[src]
impl Clone for ContextFlag
[src]
fn clone(&self) -> ContextFlag
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ContextFlag
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more