pub struct Participant<S, V> { /* private fields */ }
Available on crate features
cggmp
or frost-ed25519
only.Expand description
Participant in a protocol session.
Implementations§
Source§impl<S, V> Participant<S, V>
impl<S, V> Participant<S, V>
Sourcepub fn new(
signing_key: S,
verifying_key: V,
party: PartyOptions<V>,
) -> Result<Self>
pub fn new( signing_key: S, verifying_key: V, party: PartyOptions<V>, ) -> Result<Self>
Create a new participant.
Sourcepub fn signing_key(&self) -> &S
pub fn signing_key(&self) -> &S
Participant signing key.
Sourcepub fn party(&self) -> &PartyOptions<V>
pub fn party(&self) -> &PartyOptions<V>
Participant party information.
Trait Implementations§
Source§impl<S: Clone, V: Clone> Clone for Participant<S, V>
impl<S: Clone, V: Clone> Clone for Participant<S, V>
Source§fn clone(&self) -> Participant<S, V>
fn clone(&self) -> Participant<S, V>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<S, V> Freeze for Participant<S, V>where
S: Freeze,
impl<S, V> RefUnwindSafe for Participant<S, V>where
S: RefUnwindSafe,
V: RefUnwindSafe,
impl<S, V> Send for Participant<S, V>
impl<S, V> Sync for Participant<S, V>
impl<S, V> Unpin for Participant<S, V>
impl<S, V> UnwindSafe for Participant<S, V>where
S: UnwindSafe,
V: UnwindSafe,
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