pub struct ReshareSession { /* private fields */ }Expand description
Re-sharing session.
Implementations§
Sourcepub fn new(params: ReshareParams) -> Self
pub fn new(params: ReshareParams) -> Self
Create a new re-sharing session.
Sourcepub fn state(&self) -> ReshareState
pub fn state(&self) -> ReshareState
Current state.
Sourcepub fn mark_contributions_computed(&mut self) -> Result<(), ReshareError>
pub fn mark_contributions_computed(&mut self) -> Result<(), ReshareError>
Mark contributions as computed (after T-old shares are processed).
Sourcepub fn mark_distributed(&mut self) -> Result<(), ReshareError>
pub fn mark_distributed(&mut self) -> Result<(), ReshareError>
Mark shares distributed to new committee.
Sourcepub fn mark_verified(&mut self) -> Result<(), ReshareError>
pub fn mark_verified(&mut self) -> Result<(), ReshareError>
Mark new committee verified (test signature validates under same public key).
Sourcepub fn created_at(&self) -> DateTime<Utc>
pub fn created_at(&self) -> DateTime<Utc>
When the session was created.
Sourcepub fn params(&self) -> &ReshareParams
pub fn params(&self) -> &ReshareParams
Reference to params.
Auto Trait Implementations§
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