pub struct FrostSession {
pub session_id: SessionId,
pub scheme: FrostScheme,
pub threshold: u32,
pub party_count: u32,
pub message_hash_hex: String,
pub partial_signatures: Vec<PartialFrostSig>,
}Expand description
FROST session metadata.
Fields§
§session_id: SessionId§scheme: FrostScheme§threshold: u32§party_count: u32§message_hash_hex: String§partial_signatures: Vec<PartialFrostSig>Implementations§
Source§impl FrostSession
impl FrostSession
pub fn new( session_id: &str, scheme: FrostScheme, threshold: u32, party_count: u32, message: &[u8], ) -> Self
pub fn submit_partial(&mut self, partial: PartialFrostSig) -> Result<(), String>
pub fn is_ready(&self) -> bool
pub fn missing_parties(&self) -> Vec<u32>
pub fn ordered_partials(&self) -> Vec<&PartialFrostSig>
Trait Implementations§
Source§impl Clone for FrostSession
impl Clone for FrostSession
Source§fn clone(&self) -> FrostSession
fn clone(&self) -> FrostSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrostSession
impl Debug for FrostSession
Source§impl<'de> Deserialize<'de> for FrostSession
impl<'de> Deserialize<'de> for FrostSession
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FrostSession
impl RefUnwindSafe for FrostSession
impl Send for FrostSession
impl Sync for FrostSession
impl Unpin for FrostSession
impl UnsafeUnpin for FrostSession
impl UnwindSafe for FrostSession
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