pub struct KemSessionParams {
pub algorithm: String,
pub quorum_id: String,
pub threshold: u32,
pub num_parties: u32,
pub this_party_idx: u32,
pub encapsulated_key: EncapsulatedKey,
}Expand description
Parameters for a decapsulation session.
Fields§
§algorithm: StringAlgorithm identifier (must match encapsulated key).
quorum_id: StringQuorum identifier (which quorum’s shares are being used).
threshold: u32Threshold T.
num_parties: u32Total number of parties N.
this_party_idx: u32This party’s index (0-based).
encapsulated_key: EncapsulatedKeyThe encapsulated key to decapsulate.
Trait Implementations§
Source§impl Clone for KemSessionParams
impl Clone for KemSessionParams
Source§fn clone(&self) -> KemSessionParams
fn clone(&self) -> KemSessionParams
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 KemSessionParams
impl Debug for KemSessionParams
Source§impl<'de> Deserialize<'de> for KemSessionParams
impl<'de> Deserialize<'de> for KemSessionParams
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 KemSessionParams
impl RefUnwindSafe for KemSessionParams
impl Send for KemSessionParams
impl Sync for KemSessionParams
impl Unpin for KemSessionParams
impl UnsafeUnpin for KemSessionParams
impl UnwindSafe for KemSessionParams
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