Home
last modified time | relevance | path

Searched refs:PointG2 (Results 1 – 6 of 6) sorted by relevance

/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/crypto/bls12381/
H A Dg2.go28 type PointG2 [3]fe2
31 func (p *PointG2) Set(p2 *PointG2) *PointG2 {
39 func (p *PointG2) Zero() *PointG2 {
194 p := &PointG2{}
253 func (g *G2) Affine(p *PointG2) *PointG2 {
270 func (g *G2) Add(r, p1, p2 *PointG2) *PointG2 {
318 func (g *G2) Double(r, p *PointG2) *PointG2 {
350 func (g *G2) Neg(r, p *PointG2) *PointG2 {
358 func (g *G2) Sub(c, a, b *PointG2) *PointG2 {
367 q, n := &PointG2{}, &PointG2{}
[all …]
H A Dg2_test.go12 func (g *G2) one() *PointG2 {
24 func (g *G2) rand() *PointG2 {
29 return g.MulScalar(&PointG2{}, g.one(), k)
65 p := &PointG2{*one, *one, *one}
183 var bases [2]*PointG2
186 bases[0], bases[1] = new(PointG2).Set(one), new(PointG2).Set(one)
199 bases := make([]*PointG2, n)
260 a, b, c := g2.rand(), g2.rand(), PointG2{}
269 a, e, c := g2.rand(), q, PointG2{}
H A Dpairing.go21 g2 *PointG2
24 func newPair(g1 *PointG1, g2 *PointG2) pair { argument
69 func (e *Engine) AddPair(g1 *PointG1, g2 *PointG2) *Engine {
79 func (e *Engine) AddPairInv(g1 *PointG1, g2 *PointG2) *Engine {
100 func (e *Engine) doublingStep(coeff *[3]fe2, r *PointG2) {
134 func (e *Engine) additionStep(coeff *[3]fe2, r, q *PointG2) {
165 func (e *Engine) preCompute(ellCoeffs *[68][3]fe2, twistPoint *PointG2) {
170 r := new(PointG2).Set(twistPoint)
H A Dbls12_381.go102 var g2One = PointG2{
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/tests/fuzzers/bls12381/
H A Dbls12381_fuzz.go119 kp := bls12381.PointG2{}
212 func getG2Points(input io.Reader) (*bls12381.PointG2, *gnark.G2Affine, error) {
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/core/vm/
H A Dcontracts.go776 var p0, p1 *bls12381.PointG2
814 var p0 *bls12381.PointG2
865 points := make([]*bls12381.PointG2, k)