INNER CODE UNIT · Go
func
Consensys/gnark-crypto · ecc/ecc_field.go:29
func (id ID) ScalarField() *big.Int {
f := new(big.Int)
switch id {
case BLS12_377:
f.SetString("8444461749428370424248824938781546531375899335154063827935233455917409239041", 10)
case BLS12_381:
f.SetString("52435875175126190479447740508185965837690552500527637822603658699938581184513", 10)
case BLS24_315:
f.SetString("11502027791375260645628074404575422495959608200132055716665986169834464870401", 10)
case BLS24_317:
f.SetString("30869589236456844204538189757527902584594726589286811523515204428962673459201", 10)
case BN254:
f.SetString("21888242871839275222246405745257275088548364400416034343698204186575808495617", 10)
case BW6_633:
f.SetString("39705142709513438335025689890408969744933502416914749335064285505637884093126342347073617133569", 10)
case BW6_761:
f.SetString("258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177", 10)
case GRUMPKIN: