pub struct DecryptionShare<S: VerificationStatus> { /* private fields */ }
Expand description
A share of a decryption of a particular Ciphertext
.
The VerificationStatus
type parameter tracks whether the decryption has
been verified, so that attempting to perform decryption with unverified
shares is a compile error.
Implementations§
Sourcepub fn verify(
&self,
ctxt: &Ciphertext,
pub_key_share: &PublicKeyShare,
transcript: &mut Transcript,
) -> Result<DecryptionShare<Verified>>
pub fn verify( &self, ctxt: &Ciphertext, pub_key_share: &PublicKeyShare, transcript: &mut Transcript, ) -> Result<DecryptionShare<Verified>>
Verify this decryption share against the PublicKeyShare
that
(supposedly) generated it, so that it can be used in decryption.
Trait Implementations§
Source§fn clone(&self) -> DecryptionShare<S>
fn clone(&self) -> DecryptionShare<S>
Returns a duplicate 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§
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