mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
core/vm: add comments
This commit is contained in:
parent
e3e8eac891
commit
3e296323b6
1 changed files with 4 additions and 0 deletions
|
|
@ -705,6 +705,8 @@ func (c *bls12381G1Add) Run(input []byte) ([]byte, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No need to check the subgroup here, as specified by EIP-2537
|
||||||
|
|
||||||
// Compute r = p_0 + p_1
|
// Compute r = p_0 + p_1
|
||||||
p0.Add(p0, p1)
|
p0.Add(p0, p1)
|
||||||
|
|
||||||
|
|
@ -837,6 +839,8 @@ func (c *bls12381G2Add) Run(input []byte) ([]byte, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No need to check the subgroup here, as specified by EIP-2537
|
||||||
|
|
||||||
// Compute r = p_0 + p_1
|
// Compute r = p_0 + p_1
|
||||||
r := new(bls12381.G2Affine)
|
r := new(bls12381.G2Affine)
|
||||||
r.Add(p0, p1)
|
r.Add(p0, p1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue