Skip to content

Commit

Permalink
revert indexed label due to lifetime restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
alxiong committed Aug 6, 2024
1 parent 31035cd commit b927d37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plonk/src/transcript/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ pub trait PlonkTranscript<F> {
E: Pairing<BaseField = F, G1Affine = Affine<P>>,
P: SWParam<BaseField = F>,
{
for (i, comm) in comms.iter().enumerate() {
self.append_commitment(format_args!("{}-{}", label, i).as_str().unwrap(), comm)?;
for comm in comms {
self.append_commitment(label, comm)?;
}
Ok(())
}
Expand Down Expand Up @@ -136,8 +136,8 @@ pub trait PlonkTranscript<F> {
where
E: Pairing<BaseField = F>,
{
for (i, f) in fields.iter().enumerate() {
self.append_field::<E>(format_args!("{}-{}", label, i).as_str().unwrap(), f)?;
for f in fields {
self.append_field::<E>(label, f)?;
}
Ok(())
}
Expand Down

0 comments on commit b927d37

Please sign in to comment.