more go fmt

This commit is contained in:
Vlad
2024-07-15 16:55:40 +02:00
parent 91ac666e06
commit 877018c84c
5 changed files with 1 additions and 6 deletions

View File

@@ -28,7 +28,6 @@ func (p *MockProjective) FromLimbs(x, y, z []uint32) MockProjective {
return *p
}
type MockAffine struct {
X, Y MockBaseField
}
@@ -54,4 +53,3 @@ func (a *MockAffine) FromLimbs(x, y []uint32) MockAffine {
return *a
}

View File

@@ -41,7 +41,6 @@ func (p *G2Projective) FromLimbs(x, y, z []uint32) G2Projective {
func (p *G2Projective) FromAffine(a G2Affine) G2Projective {
cA := (*C.g2_affine_t)(unsafe.Pointer(&a))
cP := (*C.g2_projective_t)(unsafe.Pointer(p))
C.bls12_377_g2_from_affine(cA, cP)

View File

@@ -105,7 +105,7 @@ func (a *G2Affine) FromLimbs(x, y []uint32) G2Affine {
func (a G2Affine) ToProjective() G2Projective {
var p G2Projective
cA := (*C.g2_affine_t)(unsafe.Pointer(&a))
cP := (*C.g2_projective_t)(unsafe.Pointer(&p))
C.bls12_381_g2_from_affine(cA, cP)

View File

@@ -41,7 +41,6 @@ func (p *G2Projective) FromLimbs(x, y, z []uint32) G2Projective {
func (p *G2Projective) FromAffine(a G2Affine) G2Projective {
cA := (*C.g2_affine_t)(unsafe.Pointer(&a))
cP := (*C.g2_projective_t)(unsafe.Pointer(p))
C.bn254_g2_from_affine(cA, cP)

View File

@@ -41,7 +41,6 @@ func (p *G2Projective) FromLimbs(x, y, z []uint32) G2Projective {
func (p *G2Projective) FromAffine(a G2Affine) G2Projective {
cA := (*C.g2_affine_t)(unsafe.Pointer(&a))
cP := (*C.g2_projective_t)(unsafe.Pointer(p))
C.bw6_761_g2_from_affine(cA, cP)