Skip to content

Commit

Permalink
fix: use G1 generator from SRS (#1035)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokub committed Feb 5, 2024
1 parent ac3580b commit e043c9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/commitments/kzg/verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ func (v *Verifier[FR, G1El, G2El, GTEl]) FoldProofsMultiPoint(digests []Commitme
}

// compute commitment to folded Eval [∑ᵢλᵢfᵢ(aᵢ)]G₁
foldedEvalsCommit := v.curve.ScalarMulBase(foldedEvals)
foldedEvalsCommit := v.curve.ScalarMul(&vk.G1, foldedEvals)

// compute foldedDigests = ∑ᵢλᵢ[fᵢ(α)]G₁ - [∑ᵢλᵢfᵢ(aᵢ)]G₁
tmp := v.curve.Neg(foldedEvalsCommit)
Expand Down

0 comments on commit e043c9f

Please sign in to comment.