Struct wasm_multisig::MultisigWallet
source · pub struct MultisigWallet {
pub signers: HashMap<String, bool>,
pub threshold: usize,
}Fields§
§signers: HashMap<String, bool>§threshold: usizeImplementations§
source§impl MultisigWallet
impl MultisigWallet
pub fn new(signers: Vec<String>, threshold: usize) -> Self
pub fn add_signer(&mut self, signer: String)
pub fn remove_signer(&mut self, signer: &String)
pub fn update_threshold(&mut self, new_threshold: usize)
pub fn collect_signatures(&self) -> bool
Auto Trait Implementations§
impl Freeze for MultisigWallet
impl RefUnwindSafe for MultisigWallet
impl Send for MultisigWallet
impl Sync for MultisigWallet
impl Unpin for MultisigWallet
impl UnwindSafe for MultisigWallet
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