Skip to content

Commit 64ec606

Browse files
committed
pad proof with first proof
1 parent dfe1f8a commit 64ec606

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

circuits/aggregator/inputs.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ func (ai *AggregatorInputs) GenerateAssignment(innerCCS constraint.ConstraintSys
5353
assignment.BallotHashes[i] = ai.ProofsInputHash[i]
5454
assignment.Proofs[i] = ai.Proofs[i]
5555
}
56+
if len(ai.AggBallots) > 0 {
57+
for i := len(ai.AggBallots); i < params.VotesPerBatch; i++ {
58+
assignment.Proofs[i] = ai.Proofs[0]
59+
}
60+
}
5661
return assignment, nil
5762
}
5863

0 commit comments

Comments
 (0)