Struct bdk::wallet::signer::SignerWrapper
source · Expand description
Wrapper structure to pair a signer with its context
Implementations
sourceimpl<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
sourceimpl<S: Clone + Sized + Debug + Clone> Clone for SignerWrapper<S>
impl<S: Clone + Sized + Debug + Clone> Clone for SignerWrapper<S>
sourcefn clone(&self) -> SignerWrapper<S>
fn clone(&self) -> SignerWrapper<S>
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 moresourceimpl InputSigner for SignerWrapper<DescriptorXKey<ExtendedPrivKey>>
impl InputSigner for SignerWrapper<DescriptorXKey<ExtendedPrivKey>>
sourcefn sign_input(
&self,
psbt: &mut PartiallySignedTransaction,
input_index: usize,
sign_options: &SignOptions,
secp: &Secp256k1<All>
) -> Result<(), SignerError>
fn sign_input(
&self,
psbt: &mut PartiallySignedTransaction,
input_index: usize,
sign_options: &SignOptions,
secp: &Secp256k1<All>
) -> Result<(), SignerError>
Sign a single psbt input
sourceimpl InputSigner for SignerWrapper<PrivateKey>
impl InputSigner for SignerWrapper<PrivateKey>
sourcefn sign_input(
&self,
psbt: &mut PartiallySignedTransaction,
input_index: usize,
sign_options: &SignOptions,
secp: &Secp256k1<All>
) -> Result<(), SignerError>
fn sign_input(
&self,
psbt: &mut PartiallySignedTransaction,
input_index: usize,
sign_options: &SignOptions,
secp: &Secp256k1<All>
) -> Result<(), SignerError>
Sign a single psbt input
sourceimpl SignerCommon for SignerWrapper<DescriptorXKey<ExtendedPrivKey>>
impl SignerCommon for SignerWrapper<DescriptorXKey<ExtendedPrivKey>>
sourcefn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
Return the secret key for the signer Read more
sourceimpl SignerCommon for SignerWrapper<PrivateKey>
impl SignerCommon for SignerWrapper<PrivateKey>
sourcefn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
Return the secret key for the signer Read more
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> TransactionSigner for Twhere
T: InputSigner,
impl<T> TransactionSigner for Twhere
T: InputSigner,
sourcefn sign_transaction(
&self,
psbt: &mut PartiallySignedTransaction,
sign_options: &SignOptions,
secp: &Secp256k1<All>
) -> Result<(), SignerError>
fn sign_transaction(
&self,
psbt: &mut PartiallySignedTransaction,
sign_options: &SignOptions,
secp: &Secp256k1<All>
) -> Result<(), SignerError>
Sign all the inputs of the psbt