zk: add Debug trait to ZkCircuit and fill configure trait

This commit is contained in:
oars
2026-01-03 15:37:38 +03:00
parent f7db85c0a9
commit 7c42e3020d
3 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ pub enum DebugOpValue {
Void,
}
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct ZkTracer {
pub opvalues: Arc<Mutex<Option<Vec<DebugOpValue>>>>,
init_allowed: bool,

View File

@@ -278,7 +278,7 @@ pub struct ZkParams {
init_zerocond: bool,
}
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct ZkCircuit {
constants: Vec<String>,
pub(super) witnesses: Vec<Witness>,
@@ -320,8 +320,8 @@ impl Circuit<pallas::Base> for ZkCircuit {
}
}
fn configure(_meta: &mut ConstraintSystem<pallas::Base>) -> Self::Config {
unreachable!();
fn configure(meta: &mut ConstraintSystem<pallas::Base>) -> Self::Config {
Self::configure_with_params(meta, ZkParams::default())
}
fn params(&self) -> Self::Params {

View File

@@ -41,7 +41,7 @@ use crate::{
/// These represent the witness types outside of the circuit
#[allow(clippy::large_enum_variant)]
#[derive(Clone)]
#[derive(Clone, Debug)]
pub enum Witness {
EcPoint(Value<pallas::Point>),
EcNiPoint(Value<pallas::Point>),