pub struct SignerWrapper<S: Sized + Debug + Clone> { /* private fields */ }👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleExpand 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
👎Deprecated since 2.2.0: PSBT signing was moved to bitcoin::psbt module
pub fn new(signer: S, ctx: SignerContext) -> Self
bitcoin::psbt moduleCreate 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 duplicate 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>
👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleSign 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>
👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleSign 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>
👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleSign a single psbt input
Source§impl SignerCommon for SignerWrapper<DescriptorMultiXKey<Xpriv>>
impl SignerCommon for SignerWrapper<DescriptorMultiXKey<Xpriv>>
Source§fn id(&self, secp: &Secp256k1<All>) -> SignerId
fn id(&self, secp: &Secp256k1<All>) -> SignerId
👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleSource§fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleReturn the secret key for the signer Read more
Source§impl SignerCommon for SignerWrapper<DescriptorXKey<Xpriv>>
impl SignerCommon for SignerWrapper<DescriptorXKey<Xpriv>>
Source§fn id(&self, secp: &Secp256k1<All>) -> SignerId
fn id(&self, secp: &Secp256k1<All>) -> SignerId
👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleSource§fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleReturn the secret key for the signer Read more
Source§impl SignerCommon for SignerWrapper<PrivateKey>
impl SignerCommon for SignerWrapper<PrivateKey>
Source§fn id(&self, secp: &Secp256k1<All>) -> SignerId
fn id(&self, secp: &Secp256k1<All>) -> SignerId
👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleSource§fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
fn descriptor_secret_key(&self) -> Option<DescriptorSecretKey>
👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleReturn the secret key for the signer Read more
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>
👎Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleSign all the inputs of the psbt