pub trait PartialDecryptionKey<PK: EncryptionKey> {
type DecryptionShare: DecryptionShare<PK>;
fn partial_decrypt_raw(
&self,
public_key: &PK,
ciphertext: &PK::Ciphertext
) -> Self::DecryptionShare;
fn partial_decrypt<'pk>(
&self,
ciphertext: &AssociatedCiphertext<'pk, PK::Ciphertext, PK>
) -> Self::DecryptionShare { ... }
}
Expand description
A partial decryption key partially decrypts ciphertexts to return a decryption share. If enough decryption shares of different keys are combined, they output the correct decryption.
Required Associated Types
The type of the decryption share. If enough decryption shares of different keys are combined, they output the correct decryption.
Required Methods
fn partial_decrypt_raw(
&self,
public_key: &PK,
ciphertext: &PK::Ciphertext
) -> Self::DecryptionShare
fn partial_decrypt_raw(
&self,
public_key: &PK,
ciphertext: &PK::Ciphertext
) -> Self::DecryptionShare
Partially decrypts a ciphertext, returning a valid decryption share.
Provided Methods
fn partial_decrypt<'pk>(
&self,
ciphertext: &AssociatedCiphertext<'pk, PK::Ciphertext, PK>
) -> Self::DecryptionShare
fn partial_decrypt<'pk>(
&self,
ciphertext: &AssociatedCiphertext<'pk, PK::Ciphertext, PK>
) -> Self::DecryptionShare
Partially decrypts a ciphertext, returning a valid decryption share.