github.com/consensys/gnark-crypto@v0.14.0/internal/generator/fft/template/imports.go.tmpl (about)

     1  {{ define "import_fr" }}
     2  
     3  {{ if eq .Name "bls12-378"}}
     4  	"github.com/consensys/gnark-crypto/ecc/bls12-378/fr"
     5  {{ else if eq .Name "bls12-377"}}
     6  	"github.com/consensys/gnark-crypto/ecc/bls12-377/fr"
     7  {{ else if eq .Name "bls12-381"}}
     8  	"github.com/consensys/gnark-crypto/ecc/bls12-381/fr"
     9  {{ else if eq .Name "bn254"}}
    10  	"github.com/consensys/gnark-crypto/ecc/bn254/fr"
    11  {{ else if eq .Name "bw6-761"}}
    12  	"github.com/consensys/gnark-crypto/ecc/bw6-761/fr"
    13  {{ else if eq .Name "bw6-756"}}
    14  	"github.com/consensys/gnark-crypto/ecc/bw6-756/fr"
    15  {{ else if eq .Name "bw6-633"}}
    16  	"github.com/consensys/gnark-crypto/ecc/bw6-633/fr"
    17  {{ else if eq .Name "bls24-315"}}
    18  	"github.com/consensys/gnark-crypto/ecc/bls24-315/fr"
    19  {{ else if eq .Name "bls24-317"}}
    20  	"github.com/consensys/gnark-crypto/ecc/bls24-317/fr"
    21  {{ else if eq .Name "secp256k1"}}
    22  	"github.com/consensys/gnark-crypto/ecc/secp256k1/fr"
    23  {{end}}
    24  
    25  {{end}}
    26  
    27  {{ define "import_curve" }}
    28  {{if eq .Name "bls12-378"}}
    29  	curve "github.com/consensys/gnark-crypto/ecc/bls12-378"
    30  {{else if eq .Name "bls12-377"}}
    31  	curve "github.com/consensys/gnark-crypto/ecc/bls12-377"
    32  {{else if eq .Name "bls12-381"}}
    33  	curve "github.com/consensys/gnark-crypto/ecc/bls12-381"
    34  {{else if eq .Name "bn254"}}
    35  	curve "github.com/consensys/gnark-crypto/ecc/bn254"
    36  {{else if eq .Name "bw6-761"}}
    37  	curve "github.com/consensys/gnark-crypto/ecc/bw6-761"
    38  {{else if eq .Name "bw6-756"}}
    39  	curve "github.com/consensys/gnark-crypto/ecc/bw6-756"
    40  {{else if eq .Name "bw6-633"}}
    41  	curve "github.com/consensys/gnark-crypto/ecc/bw6-633"
    42  {{ else if eq .Name "bls24-315"}}
    43  	curve "github.com/consensys/gnark-crypto/ecc/bls24-315"
    44  {{ else if eq .Name "bls24-317"}}
    45  	curve "github.com/consensys/gnark-crypto/ecc/bls24-317"
    46  {{ else if eq .Name "secp256k1"}}
    47  	curve "github.com/consensys/gnark-crypto/ecc/secp256k1"
    48  {{end}}
    49  
    50  
    51  {{end}}