core_utils/circuit/
constants.rs1use derive_more::derive::From;
2use enum_try_as_inner::EnumTryAsInner;
3use primitives::algebra::{
4 elliptic_curve::{BaseFieldElement, Point, Scalar},
5 field::Bit,
6};
7use serde::{Deserialize, Serialize};
8
9#[derive(Debug, Copy, Clone, EnumTryAsInner, From, PartialEq, Eq, Serialize, Deserialize)]
10pub enum Plaintext<T> {
11 Fixed(T),
12 Input,
13}
14
15pub type ScalarPlaintext<C> = Plaintext<Scalar<C>>;
16pub type BaseFieldPlaintext<C> = Plaintext<BaseFieldElement<C>>;
17pub type PointPlaintext<C> = Plaintext<Point<C>>;
18pub type BitPlaintext = Plaintext<Bit>;