Sunscreen
Sunscreen copied to clipboard
Sending an array of CipherTexts should allow sending [encrypt(1), encrypt(2)] rather than encrypt([1,2])
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.