use crate::types::{
intern::{FheLiteral, FheProgramNode},
Cipher, FheType,
};
pub trait GraphCipherMul {
type Left: FheType;
type Right: FheType;
fn graph_cipher_mul(
a: FheProgramNode<Cipher<Self::Left>>,
b: FheProgramNode<Cipher<Self::Right>>,
) -> FheProgramNode<Cipher<Self::Left>>;
}
pub trait GraphCipherPlainMul {
type Left: FheType;
type Right: FheType;
fn graph_cipher_plain_mul(
a: FheProgramNode<Cipher<Self::Left>>,
b: FheProgramNode<Self::Right>,
) -> FheProgramNode<Cipher<Self::Left>>;
}
pub trait GraphCipherConstMul {
type Left: FheType + TryFrom<Self::Right>;
type Right: FheLiteral;
fn graph_cipher_const_mul(
a: FheProgramNode<Cipher<Self::Left>>,
b: Self::Right,
) -> FheProgramNode<Cipher<Self::Left>>;
}