pub struct DecryptionSession {
pub session_id: String,
pub threshold: u32,
pub party_count: u32,
pub ciphertext: Vec<u8>,
pub shares: HashMap<u32, DecryptionShare>,
}Expand description
A threshold decryption session.
Fields§
§session_id: String§threshold: u32§party_count: u32§ciphertext: Vec<u8>Implementations§
Source§impl DecryptionSession
impl DecryptionSession
pub fn new( session_id: &str, threshold: u32, party_count: u32, ciphertext: &[u8], ) -> Self
Submit a decryption share.
Number of shares collected.
Collect the shares in party-index order for combination.
Sourcepub fn missing_parties(&self) -> Vec<u32>
pub fn missing_parties(&self) -> Vec<u32>
Missing party indices (those that haven’t submitted).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DecryptionSession
impl RefUnwindSafe for DecryptionSession
impl Send for DecryptionSession
impl Sync for DecryptionSession
impl Unpin for DecryptionSession
impl UnsafeUnpin for DecryptionSession
impl UnwindSafe for DecryptionSession
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