[][src]Struct bdk::wallet::signer::SignersContainer

pub struct SignersContainer<Pk: MiniscriptKey>(_);

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]

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]

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]

impl<Pk: Debug + MiniscriptKey> Debug for SignersContainer<Pk>[src]

impl<Pk: Default + MiniscriptKey> Default for SignersContainer<Pk>[src]

impl From<HashMap<DescriptorPublicKey, DescriptorSecretKey, RandomState>> for 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

impl<Pk> !UnwindSafe for SignersContainer<Pk>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,