Struct bdk_wallet::signer::SignerWrapper
source · pub struct SignerWrapper<S: Sized + Debug + Clone> { /* private fields */ }
Expand description
Wrapper to pair a signer with its context
Implementations§
source§impl<S: Sized + Debug + Clone> SignerWrapper<S>
impl<S: Sized + Debug + Clone> SignerWrapper<S>
sourcepub fn new(signer: S, ctx: SignerContext) -> Self
pub fn new(signer: S, ctx: SignerContext) -> Self
Create a wrapped signer from a signer and a context
Trait Implementations§
source§impl<S: Clone + Sized + Debug + Clone> Clone for SignerWrapper<S>
impl<S: Clone + Sized + Debug + Clone> Clone for SignerWrapper<S>
source§fn clone(&self) -> SignerWrapper<S>
fn clone(&self) -> SignerWrapper<S>
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 InputSigner for SignerWrapper<DescriptorMultiXKey<Xpriv>>
impl InputSigner for SignerWrapper<DescriptorMultiXKey<Xpriv>>
source§fn sign_input(
&self,
psbt: &mut Psbt,
input_index: usize,
sign_options: &SignOptions,
secp: &Secp256k1<All>
) -> Result<(), SignerError>
fn sign_input( &self, psbt: &mut Psbt, input_index: usize, sign_options: &SignOptions, secp: &Secp256k1<All> ) -> Result<(), SignerError>
Sign a single psbt input
source§impl InputSigner for SignerWrapper<DescriptorXKey<Xpriv>>
impl InputSigner for SignerWrapper<DescriptorXKey<Xpriv>>
source§fn sign_input(
&self,
psbt: &mut Psbt,
input_index: usize,
sign_options: &SignOptions,
secp: &Secp256k1<All>
) -> Result<(), SignerError>
fn sign_input( &self, psbt: &mut Psbt, input_index: usize, sign_options: &SignOptions, secp: &Secp256k1<All> ) -> Result<(), SignerError>
Sign a single psbt input
source§impl InputSigner for SignerWrapper<PrivateKey>
impl InputSigner for SignerWrapper<PrivateKey>
source§fn sign_input(
&self,
psbt: &mut Psbt,
input_index: usize,
sign_options: &SignOptions,
secp: &Secp256k1<All>
) -> Result<(), SignerError>
fn sign_input( &self, psbt: &mut Psbt, input_index: usize, sign_options: &SignOptions, secp: &Secp256k1<All> ) -> Result<(), SignerError>
Sign a single psbt input
source§impl SignerCommon for SignerWrapper<DescriptorMultiXKey<Xpriv>>
impl SignerCommon for SignerWrapper<DescriptorMultiXKey<Xpriv>>
source§impl SignerCommon for SignerWrapper<DescriptorXKey<Xpriv>>
impl SignerCommon for SignerWrapper<DescriptorXKey<Xpriv>>
source§impl SignerCommon for SignerWrapper<PrivateKey>
impl SignerCommon for SignerWrapper<PrivateKey>
Auto Trait Implementations§
impl<S> Freeze for SignerWrapper<S>where
S: Freeze,
impl<S> RefUnwindSafe for SignerWrapper<S>where
S: RefUnwindSafe,
impl<S> Send for SignerWrapper<S>where
S: Send,
impl<S> Sync for SignerWrapper<S>where
S: Sync,
impl<S> Unpin for SignerWrapper<S>where
S: Unpin,
impl<S> UnwindSafe for SignerWrapper<S>where
S: UnwindSafe,
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
source§impl<T> TransactionSigner for Twhere
T: InputSigner,
impl<T> TransactionSigner for Twhere
T: InputSigner,
source§fn sign_transaction(
&self,
psbt: &mut Psbt,
sign_options: &SignOptions,
secp: &Secp256k1<All>
) -> Result<(), SignerError>
fn sign_transaction( &self, psbt: &mut Psbt, sign_options: &SignOptions, secp: &Secp256k1<All> ) -> Result<(), SignerError>
Sign all the inputs of the psbt