pub struct KeyRefreshProtocol { /* private fields */ }Implementations§
Source§impl KeyRefreshProtocol
impl KeyRefreshProtocol
pub fn new(threshold: u32, party_count: u32) -> Self
pub fn submit_contribution( &self, party_idx: u32, contribution: Vec<u8>, ) -> Result<(), String>
pub fn is_complete(&self) -> bool
pub fn compute_refresh_delta(&self) -> Option<Vec<u8>>
pub fn missing_parties(&self) -> Vec<u32>
pub fn contribution_count(&self) -> usize
Auto Trait Implementations§
impl !Freeze for KeyRefreshProtocol
impl RefUnwindSafe for KeyRefreshProtocol
impl Send for KeyRefreshProtocol
impl Sync for KeyRefreshProtocol
impl Unpin for KeyRefreshProtocol
impl UnsafeUnpin for KeyRefreshProtocol
impl UnwindSafe for KeyRefreshProtocol
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