struct RoastSigner {
key_package: KeyPackage,
data: Option<Vec<u8>>,
coordinators: BTreeMap<Identifier, SigningNonces>,
requests: VecDeque<(Identifier, RoastSignerRequest)>,
}
Fields§
§key_package: KeyPackage
§data: Option<Vec<u8>>
§coordinators: BTreeMap<Identifier, SigningNonces>
§requests: VecDeque<(Identifier, RoastSignerRequest)>
Implementations§
Source§impl RoastSigner
impl RoastSigner
Sourcepub fn new(key_package: KeyPackage) -> Self
pub fn new(key_package: KeyPackage) -> Self
Creates a new RoastSigner
instance with the given key package.
Sourcepub fn commit(&mut self, coordinator: Identifier) -> SigningCommitments
pub fn commit(&mut self, coordinator: Identifier) -> SigningCommitments
Commits to the signing process for a coordinator.
Sourcepub fn sign(&mut self, coordinator: Identifier, request: RoastSignerRequest)
pub fn sign(&mut self, coordinator: Identifier, request: RoastSignerRequest)
Handles a signing request from a coordinator.
Sourcepub fn message(
&mut self,
span: &Span,
) -> Option<(Identifier, RoastSignerResponse)>
pub fn message( &mut self, span: &Span, ) -> Option<(Identifier, RoastSignerResponse)>
Generates a message with the signature share for a coordinator.
Auto Trait Implementations§
impl Freeze for RoastSigner
impl RefUnwindSafe for RoastSigner
impl Send for RoastSigner
impl Sync for RoastSigner
impl Unpin for RoastSigner
impl UnwindSafe for RoastSigner
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