pub struct SignersContainer(_);
Expand description
Container for multiple signers
Implementations
sourceimpl SignersContainer
impl SignersContainer
sourcepub fn as_key_map(&self, secp: &Secp256k1<All>) -> KeyMap
pub fn as_key_map(&self, secp: &Secp256k1<All>) -> KeyMap
Create a map of public keys to secret keys
sourceimpl SignersContainer
impl SignersContainer
sourcepub fn add_external(
&mut self,
id: SignerId,
ordering: SignerOrdering,
signer: Arc<dyn Signer>
) -> Option<Arc<dyn Signer>>
pub fn add_external(
&mut self,
id: SignerId,
ordering: SignerOrdering,
signer: Arc<dyn Signer>
) -> Option<Arc<dyn Signer>>
Adds 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 Signer>>
pub fn remove(
&mut self,
id: SignerId,
ordering: SignerOrdering
) -> Option<Arc<dyn Signer>>
Removes a signer from the container and returns it
sourcepub fn ids(&self) -> Vec<&SignerId>
pub fn ids(&self) -> Vec<&SignerId>
Returns the list of identifiers of all the signers in the container
Trait Implementations
sourceimpl Clone for SignersContainer
impl Clone for SignersContainer
sourcefn clone(&self) -> SignersContainer
fn clone(&self) -> SignersContainer
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 more
sourceimpl Debug for SignersContainer
impl Debug for SignersContainer
sourceimpl Default for SignersContainer
impl Default for SignersContainer
sourcefn default() -> SignersContainer
fn default() -> SignersContainer
Returns the “default value” for a type. Read more
sourceimpl From<HashMap<DescriptorPublicKey, DescriptorSecretKey, RandomState>> for SignersContainer
impl From<HashMap<DescriptorPublicKey, DescriptorSecretKey, RandomState>> for SignersContainer
sourcefn from(keymap: KeyMap) -> SignersContainer
fn from(keymap: KeyMap) -> SignersContainer
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SignersContainer
impl Send for SignersContainer
impl Sync for SignersContainer
impl Unpin for SignersContainer
impl !UnwindSafe for SignersContainer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more