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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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