INNER CODE UNIT · Go
PrecomputeLattice
Consensys/gnark-crypto · ecc/utils.go:110
func PrecomputeLattice(r, lambda *big.Int, res *Lattice) {
var rst [2][3]big.Int
var tmp [3]big.Int
var quotient, remainder, sqroot, _r, _t big.Int
rst[0][0].Set(r)
rst[0][1].SetUint64(1)
rst[0][2].SetUint64(0)
rst[1][0].Set(lambda)
rst[1][1].SetUint64(0)
rst[1][2].SetUint64(1)
sqroot.Sqrt(r)
var one big.Int
one.SetUint64(1)