mirror of
https://github.com/pseXperiments/icicle.git
synced 2026-01-09 23:48:10 -05:00
go fmt
This commit is contained in:
@@ -41,7 +41,6 @@ func (p *Projective) FromLimbs(x, y, z []uint32) Projective {
|
|||||||
|
|
||||||
func (p *Projective) FromAffine(a Affine) Projective {
|
func (p *Projective) FromAffine(a Affine) Projective {
|
||||||
|
|
||||||
|
|
||||||
cA := (*C.affine_t)(unsafe.Pointer(&a))
|
cA := (*C.affine_t)(unsafe.Pointer(&a))
|
||||||
cP := (*C.projective_t)(unsafe.Pointer(p))
|
cP := (*C.projective_t)(unsafe.Pointer(p))
|
||||||
C.bls12_377_from_affine(cA, cP)
|
C.bls12_377_from_affine(cA, cP)
|
||||||
@@ -106,7 +105,7 @@ func (a *Affine) FromLimbs(x, y []uint32) Affine {
|
|||||||
|
|
||||||
func (a Affine) ToProjective() Projective {
|
func (a Affine) ToProjective() Projective {
|
||||||
var p Projective
|
var p Projective
|
||||||
|
|
||||||
cA := (*C.affine_t)(unsafe.Pointer(&a))
|
cA := (*C.affine_t)(unsafe.Pointer(&a))
|
||||||
cP := (*C.projective_t)(unsafe.Pointer(&p))
|
cP := (*C.projective_t)(unsafe.Pointer(&p))
|
||||||
C.bls12_377_from_affine(cA, cP)
|
C.bls12_377_from_affine(cA, cP)
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ func (p *Projective) FromLimbs(x, y, z []uint32) Projective {
|
|||||||
|
|
||||||
func (p *Projective) FromAffine(a Affine) Projective {
|
func (p *Projective) FromAffine(a Affine) Projective {
|
||||||
|
|
||||||
|
|
||||||
cA := (*C.affine_t)(unsafe.Pointer(&a))
|
cA := (*C.affine_t)(unsafe.Pointer(&a))
|
||||||
cP := (*C.projective_t)(unsafe.Pointer(p))
|
cP := (*C.projective_t)(unsafe.Pointer(p))
|
||||||
C.bn254_from_affine(cA, cP)
|
C.bn254_from_affine(cA, cP)
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ func (p *Projective) FromLimbs(x, y, z []uint32) Projective {
|
|||||||
|
|
||||||
func (p *Projective) FromAffine(a Affine) Projective {
|
func (p *Projective) FromAffine(a Affine) Projective {
|
||||||
|
|
||||||
|
|
||||||
cA := (*C.affine_t)(unsafe.Pointer(&a))
|
cA := (*C.affine_t)(unsafe.Pointer(&a))
|
||||||
cP := (*C.projective_t)(unsafe.Pointer(p))
|
cP := (*C.projective_t)(unsafe.Pointer(p))
|
||||||
C.bw6_761_from_affine(cA, cP)
|
C.bw6_761_from_affine(cA, cP)
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ func (p *Projective) FromLimbs(x, y, z []uint32) Projective {
|
|||||||
|
|
||||||
func (p *Projective) FromAffine(a Affine) Projective {
|
func (p *Projective) FromAffine(a Affine) Projective {
|
||||||
|
|
||||||
|
|
||||||
cA := (*C.affine_t)(unsafe.Pointer(&a))
|
cA := (*C.affine_t)(unsafe.Pointer(&a))
|
||||||
cP := (*C.projective_t)(unsafe.Pointer(p))
|
cP := (*C.projective_t)(unsafe.Pointer(p))
|
||||||
C.grumpkin_from_affine(cA, cP)
|
C.grumpkin_from_affine(cA, cP)
|
||||||
|
|||||||
Reference in New Issue
Block a user