Enum secp256k1zkp::ContextFlag
source · pub enum ContextFlag {
None,
SignOnly,
VerifyOnly,
Full,
Commit,
}
Expand description
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
Commit
Can do all of the above plus pedersen commitments
Trait Implementations§
source§impl Clone for ContextFlag
impl Clone for ContextFlag
source§fn clone(&self) -> ContextFlag
fn clone(&self) -> ContextFlag
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContextFlag
impl Debug for ContextFlag
source§impl Display for ContextFlag
impl Display for ContextFlag
source§impl PartialEq for ContextFlag
impl PartialEq for ContextFlag
source§fn eq(&self, other: &ContextFlag) -> bool
fn eq(&self, other: &ContextFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ContextFlag
impl Eq for ContextFlag
impl StructuralPartialEq for ContextFlag
Auto Trait Implementations§
impl Freeze for ContextFlag
impl RefUnwindSafe for ContextFlag
impl Send for ContextFlag
impl Sync for ContextFlag
impl Unpin for ContextFlag
impl UnwindSafe for ContextFlag
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