Skip to content

Commit

Permalink
core/vm: simplify your life
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVanDerWijden committed Apr 8, 2024
1 parent 1443107 commit 0af03ee
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,13 +688,7 @@ func (c *bls12381G1Add) Run(input []byte) ([]byte, error) {
}

// Compute r = p_0 + p_1
//r := new(bls12381.G1Affine)
//r.Add(p0, p1)

r := new(bls12381.G1Jac)
r.FromAffine(p0)
r.AddMixed(p1)
p0.FromJacobian(r)
p0.Add(p0, p1)

// Encode the G1 point result into 128 bytes
return encodePointG1(p0), nil
Expand Down

0 comments on commit 0af03ee

Please sign in to comment.