INNER CODE UNIT · Go

PrecomputeLattice4

Consensys/gnark-crypto · ecc/utils.go:187

func PrecomputeLattice4(res *Lattice4) {
	var cof [4]big.Int
	// cofactors for row 0
	cof[0] = det3(
		&res.V[1][1], &res.V[2][1], &res.V[3][1],
		&res.V[1][2], &res.V[2][2], &res.V[3][2],
		&res.V[1][3], &res.V[2][3], &res.V[3][3],
	)
	cof[1] = det3(
		&res.V[0][1], &res.V[2][1], &res.V[3][1],
		&res.V[0][2], &res.V[2][2], &res.V[3][2],
		&res.V[0][3], &res.V[2][3], &res.V[3][3],
	)
	cof[1].Neg(&cof[1])
	cof[2] = det3(
		&res.V[0][1], &res.V[1][1], &res.V[3][1],
		&res.V[0][2], &res.V[1][2], &res.V[3][2],
		&res.V[0][3], &res.V[1][3], &res.V[3][3],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…