pub struct SessionParams {
pub scheme: String,
pub parties: PartyList,
pub threshold: u32,
pub this_party_idx: usize,
pub local_share: Option<Share>,
pub message: Option<Vec<u8>>,
}Expand description
Parameters handed to Session::create.
message is the per-session input artifact: the message to sign for
Signature schemes, the ciphertext to decapsulate for Kem
schemes, or None for Dkg schemes (which have no external input).
Fields§
§scheme: StringCanonical scheme name, e.g. "FROST-ed25519".
parties: PartyListOrdered roster of all N parties.
threshold: u32Threshold T — minimum cooperating party count.
this_party_idx: usizeIndex into parties identifying which party we are.
Pre-existing share (for signing / decapsulation sessions). None
for DKG sessions that produce a share on output.
message: Option<Vec<u8>>External input to the session — the message to sign, the ciphertext to decapsulate, etc.
Trait Implementations§
Source§impl Clone for SessionParams
impl Clone for SessionParams
Source§fn clone(&self) -> SessionParams
fn clone(&self) -> SessionParams
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 moreAuto Trait Implementations§
impl Freeze for SessionParams
impl RefUnwindSafe for SessionParams
impl Send for SessionParams
impl Sync for SessionParams
impl Unpin for SessionParams
impl UnsafeUnpin for SessionParams
impl UnwindSafe for SessionParams
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