Skip to content

Commit

Permalink
log vk.transcript_repr; fix debug format of LookupTracker
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Mar 30, 2024
1 parent c90df71 commit 7179a60
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion halo2_proofs/src/plonk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ where

// Hash in final Blake2bState
vk.transcript_repr = C::Scalar::from_uniform_bytes(hasher.finalize().as_array());

log::info!("vk.transcript_repr {:?}", vk.transcript_repr);
vk
}

Expand Down
11 changes: 10 additions & 1 deletion halo2_proofs/src/plonk/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1583,13 +1583,22 @@ impl<F: Field> Gate<F> {
}

/// TODO doc
#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct LookupTracker<F: Field> {
pub(crate) name: String,
pub(crate) table: Vec<Expression<F>>,
pub(crate) inputs: Vec<Vec<Expression<F>>>,
}

impl<F: Field> std::fmt::Debug for LookupTracker<F> where F: std::fmt::Debug {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("LookupTracker")
.field("table", &self.table)
.field("inputs", &self.inputs)
.finish()
}
}

/// This is a description of the circuit environment, such as the gate, column and
/// permutation arrangements.
#[derive(Debug, Clone)]
Expand Down

0 comments on commit 7179a60

Please sign in to comment.