Skip to content

Commit

Permalink
feat: expose transcript_repr of VerifyingKey and reduce the trait…
Browse files Browse the repository at this point in the history
… constraint
  • Loading branch information
han0110 committed Aug 30, 2023
1 parent 0a8646b commit cdf7c6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions halo2_proofs/src/plonk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ impl<C: CurveAffine> VerifyingKey<C> {
pub fn cs(&self) -> &ConstraintSystem<C::Scalar> {
&self.cs
}

/// Returns representative of this `VerifyingKey` in transcripts
pub fn transcript_repr(&self) -> C::Scalar {
self.transcript_repr
}
}

/// Minimal representation of a verification key that can be used to identify
Expand Down

0 comments on commit cdf7c6d

Please sign in to comment.