formatting

This commit is contained in:
Kevaundray Wedderburn 2024-10-14 15:07:57 +01:00
parent 177c7a1532
commit dbf770342a
2 changed files with 7 additions and 7 deletions

View file

@ -56,7 +56,7 @@ func (g *GT) Marshal() []byte {
return bytes[:]
}
// Exp exponentiates `base` to the power of `exponent`
// Exp raises `base` to the power of `exponent`
//
// Note: This method is not explicitly used in mainline code.
// It is needed for fuzzing.

View file

@ -44,11 +44,11 @@ func PairingCheck(a_ []*G1, b_ []*G2) bool {
//
// These methods are used for two reasons:
//
// - We use a new type `G1`, so we need to convert from
// []*G1 to []*bn254.G1Affine
// - The gnark API accepts slices of values and not slices of
// pointers to values, so we need to return []bn254.G1Affine
// instead of []*bn254.G1Affine.
// - We use a new type `G1`, so we need to convert from
// []*G1 to []*bn254.G1Affine
// - The gnark API accepts slices of values and not slices of
// pointers to values, so we need to return []bn254.G1Affine
// instead of []*bn254.G1Affine.
func getInnerG1s(pointerSlice []*G1) []bn254.G1Affine {
gnarkValues := make([]bn254.G1Affine, 0, len(pointerSlice))
for _, ptr := range pointerSlice {
@ -61,7 +61,7 @@ func getInnerG1s(pointerSlice []*G1) []bn254.G1Affine {
// getInnerG2s gets the inner gnark G2 elements.
//
// The rationale for this method is the same as getInnerG1s.
// The rationale for this method is the same as `getInnerG1s`.
func getInnerG2s(pointerSlice []*G2) []bn254.G2Affine {
gnarkValues := make([]bn254.G2Affine, 0, len(pointerSlice))
for _, ptr := range pointerSlice {