pub mod circuit;
mod errors;
#[cfg(test)]
mod format_fingerprint;
pub mod gate;
pub mod ops;
use serde::{Deserialize, Serialize};
use crate::circuit::latest;
pub type GateIndex = latest::GateIndex;
pub type BatchSize = GateIndex;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize, PartialOrd, Ord)]
#[repr(C)]
pub enum FieldType {
BaseField,
ScalarField,
Mersenne107,
}
impl From<FieldType> for latest::FieldType {
fn from(value: FieldType) -> Self {
match value {
FieldType::BaseField => latest::FieldType::BaseField,
FieldType::ScalarField => latest::FieldType::ScalarField,
FieldType::Mersenne107 => latest::FieldType::MpcField,
}
}
}
pub type AlgebraicType = latest::AlgebraicType;
pub type Slice = latest::Slice;