pub trait DecryptionShare<PK: EncryptionKey>: Sized {
    fn combine(
        decryption_shares: &[Self],
        public_key: &PK
    ) -> Result<PK::Plaintext, DecryptionError>; }
Expand description

A DecryptionShare is the result of decrypting with a partial key. When enough of these shares are combined, they reveal the actual decryption.

Required Methods

Combine $t$ decryption shares belonging to distinct partial keys to finish decryption. It is the responsibility of the programmer to supply the right number of decryption shares to this function.

Implementors