struct RoastSession {
commitments: BTreeMap<Identifier, SigningCommitments>,
signature_shares: HashMap<Identifier, SignatureShare>,
}
Expand description
Manages a single signing session, tracking commitments and signature shares.
Fields§
§commitments: BTreeMap<Identifier, SigningCommitments>
Implementations§
Source§impl RoastSession
impl RoastSession
Sourcefn new(commitments: BTreeMap<Identifier, SigningCommitments>) -> Self
fn new(commitments: BTreeMap<Identifier, SigningCommitments>) -> Self
Creates a new RoastSession
instance with the given commitments.
Handles a signature share from a peer.
Sourcefn is_complete(&self) -> bool
fn is_complete(&self) -> bool
Checks if the session is complete, i.e., if all required signature shares have been received.
Auto Trait Implementations§
impl Freeze for RoastSession
impl RefUnwindSafe for RoastSession
impl Send for RoastSession
impl Sync for RoastSession
impl Unpin for RoastSession
impl UnwindSafe for RoastSession
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