mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
core/vm: simplify your life
This commit is contained in:
parent
14431072f3
commit
0af03ee0d1
1 changed files with 1 additions and 7 deletions
|
|
@ -688,13 +688,7 @@ func (c *bls12381G1Add) Run(input []byte) ([]byte, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compute r = p_0 + p_1
|
// Compute r = p_0 + p_1
|
||||||
//r := new(bls12381.G1Affine)
|
p0.Add(p0, p1)
|
||||||
//r.Add(p0, p1)
|
|
||||||
|
|
||||||
r := new(bls12381.G1Jac)
|
|
||||||
r.FromAffine(p0)
|
|
||||||
r.AddMixed(p1)
|
|
||||||
p0.FromJacobian(r)
|
|
||||||
|
|
||||||
// Encode the G1 point result into 128 bytes
|
// Encode the G1 point result into 128 bytes
|
||||||
return encodePointG1(p0), nil
|
return encodePointG1(p0), nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue