[−][src]Struct bdk::wallet::signer::SignersContainer
Container for multiple signers
Implementations
impl SignersContainer<DescriptorPublicKey>
[src]
pub fn as_key_map(&self) -> KeyMap
[src]
impl<Pk: MiniscriptKey> SignersContainer<Pk>
[src]
pub fn new() -> Self
[src]
Default constructor
pub fn add_external(
&mut self,
id: SignerId<Pk>,
ordering: SignerOrdering,
signer: Arc<Box<dyn Signer>>
) -> Option<Arc<Box<dyn Signer>>>
[src]
&mut self,
id: SignerId<Pk>,
ordering: SignerOrdering,
signer: Arc<Box<dyn Signer>>
) -> Option<Arc<Box<dyn Signer>>>
Adds an external signer to the container for the specified id. Optionally returns the signer that was previosuly in the container, if any
pub fn remove(
&mut self,
id: SignerId<Pk>,
ordering: SignerOrdering
) -> Option<Arc<Box<dyn Signer>>>
[src]
&mut self,
id: SignerId<Pk>,
ordering: SignerOrdering
) -> Option<Arc<Box<dyn Signer>>>
Removes a signer from the container and returns it
pub fn ids(&self) -> Vec<&SignerId<Pk>>
[src]
Returns the list of identifiers of all the signers in the container
pub fn signers(&self) -> Vec<&Arc<Box<dyn Signer>>>
[src]
Returns the list of signers in the container, sorted by lowest to highest ordering
pub fn find(&self, id: SignerId<Pk>) -> Option<&Arc<Box<dyn Signer>>>
[src]
Finds the signer with lowest ordering for a given id in the container.
Trait Implementations
impl<Pk: Clone + MiniscriptKey> Clone for SignersContainer<Pk>
[src]
fn clone(&self) -> SignersContainer<Pk>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<Pk: Debug + MiniscriptKey> Debug for SignersContainer<Pk>
[src]
impl<Pk: Default + MiniscriptKey> Default for SignersContainer<Pk>
[src]
fn default() -> SignersContainer<Pk>
[src]
impl From<HashMap<DescriptorPublicKey, DescriptorSecretKey, RandomState>> for SignersContainer<DescriptorPublicKey>
[src]
fn from(keymap: KeyMap) -> SignersContainer<DescriptorPublicKey>
[src]
Auto Trait Implementations
impl<Pk> !RefUnwindSafe for SignersContainer<Pk>
impl<Pk> !Send for SignersContainer<Pk>
impl<Pk> !Sync for SignersContainer<Pk>
impl<Pk> Unpin for SignersContainer<Pk> where
<Pk as MiniscriptKey>::Hash: Unpin,
<Pk as MiniscriptKey>::Hash: Unpin,
impl<Pk> !UnwindSafe for SignersContainer<Pk>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,