From 0af03ee0d11abcdba68d6f1d88100c8e27c92949 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Mon, 8 Apr 2024 15:59:43 +0200 Subject: [PATCH] core/vm: simplify your life --- core/vm/contracts.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 4a9e4643674b..e97049cefd48 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -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