Sunscreen icon indicating copy to clipboard operation
Sunscreen copied to clipboard

Sending an array of CipherTexts should allow sending [encrypt(1), encrypt(2)] rather than encrypt([1,2])

Open nsingal opened this issue 2 years ago • 0 comments

pub enum FheProgramInput { /** * The argument is a ciphertext. */ Ciphertext(Ciphertext),

/**
 * The argument is a plaintext.
 */
Plaintext(Box<dyn FheProgramInputTrait>),

}

The issue is this enum here. We need to change Ciphertext(Ciphertext) to something like Ciphertext(Box<dyn CiphertextInput>). We can then impl this trait for Ciphertext and [Ciphertext; N] and I think we'll be in business. Open an issue for this.

nsingal avatar Jun 22 '23 18:06 nsingal