Skip to content

Commit

Permalink
feat(galois): wontfix partial doubleAndAdd (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen authored May 2, 2024
2 parents a8e8417 + 143a03d commit 2906611
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions galoisd/pkg/emulated/g2.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,10 @@ func (e *EmulatedAPI) Psi(q *gadget.G2Affine) *gadget.G2Affine {
return &point
}

// Scalar multiplication by bn254 seed.
// The input point must not be the infinity point.

// NOTE: we only use this function in cofactor clearing in hashing to curve.
func (e *EmulatedAPI) ScalarMulBySeed(q *gadget.G2Affine) *gadget.G2Affine {
z := e.Double(q)
t0 := e.Add(q, z)
Expand Down

0 comments on commit 2906611

Please sign in to comment.