Skip to content

Commit

Permalink
fix assemble
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Sep 27, 2024
1 parent e9e12ac commit dfb650d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@

record TrustedSetup(List<Bytes> g1Lagrange, List<Bytes> g2Monomial, List<Bytes> g1Monomial) {

public TrustedSetup {
public TrustedSetup(
final List<Bytes> g1Lagrange, final List<Bytes> g2Monomial, final List<Bytes> g1Monomial) {
g1Lagrange.forEach(this::validateG1Point);
this.g1Lagrange = g1Lagrange;
g2Monomial.forEach(this::validateG2Point);
this.g2Monomial = g2Monomial;
g1Monomial.forEach(this::validateG1Point);
this.g1Monomial = g1Monomial;
}

private void validateG1Point(final Bytes g1Point) {
Expand Down

0 comments on commit dfb650d

Please sign in to comment.