mirror of
https://github.com/pseXperiments/icicle.git
synced 2026-01-07 22:53:56 -05:00
more go fmt
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user