pub enum SignerContext {
Legacy,
Segwitv0,
Tap {
is_internal_key: bool,
},
}
Expand description
Signing context
Used by our software signers to determine the type of signatures to make
Variants
Legacy
Legacy context
Segwitv0
Segwit v0 context (BIP 143)
Tap
Fields
is_internal_key: bool
Whether the signer can sign for the internal key or not
Taproot context (BIP 340)
Trait Implementations
sourceimpl Clone for SignerContext
impl Clone for SignerContext
sourcefn clone(&self) -> SignerContext
fn clone(&self) -> SignerContext
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SignerContext
impl Debug for SignerContext
sourceimpl PartialEq<SignerContext> for SignerContext
impl PartialEq<SignerContext> for SignerContext
sourcefn eq(&self, other: &SignerContext) -> bool
fn eq(&self, other: &SignerContext) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SignerContext) -> bool
fn ne(&self, other: &SignerContext) -> bool
This method tests for !=
.
impl Copy for SignerContext
impl Eq for SignerContext
impl StructuralEq for SignerContext
impl StructuralPartialEq for SignerContext
Auto Trait Implementations
impl RefUnwindSafe for SignerContext
impl Send for SignerContext
impl Sync for SignerContext
impl Unpin for SignerContext
impl UnwindSafe for SignerContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more