pub struct SignersContainer(/* private fields */);๐Deprecated since 2.2.0: PSBT signing was moved to
bitcoin::psbt moduleExpand description
Container for multiple signers
Implementationsยง
Sourceยงimpl SignersContainer
impl SignersContainer
Sourcepub fn as_key_map(&self, secp: &Secp256k1<All>) -> KeyMap
๐Deprecated since 2.2.0: PSBT signing was moved to bitcoin::psbt module
pub fn as_key_map(&self, secp: &Secp256k1<All>) -> KeyMap
bitcoin::psbt moduleCreate a map of public keys to secret keys
Sourcepub fn build(
keymap: KeyMap,
descriptor: &Descriptor<DescriptorPublicKey>,
secp: &Secp256k1<All>,
) -> SignersContainer
๐Deprecated since 2.2.0: PSBT signing was moved to bitcoin::psbt module
pub fn build( keymap: KeyMap, descriptor: &Descriptor<DescriptorPublicKey>, secp: &Secp256k1<All>, ) -> SignersContainer
bitcoin::psbt moduleBuild a new signer container from a KeyMap
Also looks at the corresponding descriptor to determine the SignerContext to attach to
the signers
Sourceยงimpl SignersContainer
impl SignersContainer
Sourcepub fn new() -> Self
๐Deprecated since 2.2.0: PSBT signing was moved to bitcoin::psbt module
pub fn new() -> Self
bitcoin::psbt moduleDefault constructor
Sourcepub fn add_external(
&mut self,
id: SignerId,
ordering: SignerOrdering,
signer: Arc<dyn TransactionSigner>,
) -> Option<Arc<dyn TransactionSigner>>
๐Deprecated since 2.2.0: PSBT signing was moved to bitcoin::psbt module
pub fn add_external( &mut self, id: SignerId, ordering: SignerOrdering, signer: Arc<dyn TransactionSigner>, ) -> Option<Arc<dyn TransactionSigner>>
bitcoin::psbt moduleAdds an external signer to the container for the specified id. Optionally returns the signer that was previously in the container, if any
Sourcepub fn remove(
&mut self,
id: SignerId,
ordering: SignerOrdering,
) -> Option<Arc<dyn TransactionSigner>>
๐Deprecated since 2.2.0: PSBT signing was moved to bitcoin::psbt module
pub fn remove( &mut self, id: SignerId, ordering: SignerOrdering, ) -> Option<Arc<dyn TransactionSigner>>
bitcoin::psbt moduleRemoves a signer from the container and returns it
Sourcepub fn ids(&self) -> Vec<&SignerId>
๐Deprecated since 2.2.0: PSBT signing was moved to bitcoin::psbt module
pub fn ids(&self) -> Vec<&SignerId>
bitcoin::psbt moduleReturns the list of identifiers of all the signers in the container
Sourcepub fn signers(&self) -> Vec<&Arc<dyn TransactionSigner>>
๐Deprecated since 2.2.0: PSBT signing was moved to bitcoin::psbt module
pub fn signers(&self) -> Vec<&Arc<dyn TransactionSigner>>
bitcoin::psbt moduleReturns the list of signers in the container, sorted by lowest to highest ordering
Trait Implementationsยง
Sourceยงimpl Clone for SignersContainer
impl Clone for SignersContainer
Sourceยงfn clone(&self) -> SignersContainer
fn clone(&self) -> SignersContainer
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 Debug for SignersContainer
impl Debug for SignersContainer
Sourceยงimpl Default for SignersContainer
impl Default for SignersContainer
Sourceยงfn default() -> SignersContainer
fn default() -> SignersContainer
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for SignersContainer
impl !RefUnwindSafe for SignersContainer
impl Send for SignersContainer
impl Sync for SignersContainer
impl Unpin for SignersContainer
impl !UnwindSafe for SignersContainer
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