19 lines
499 B
Go
19 lines
499 B
Go
package kzg
|
|
|
|
import (
|
|
bls12381 "github.com/consensys/gnark-crypto/ecc/bls12-381"
|
|
"github.com/consensys/gnark-crypto/ecc/bls12-381/fr"
|
|
)
|
|
|
|
// A polynomial in lagrange form
|
|
//
|
|
// Note: This is intentionally not in the `poly` package as
|
|
// all methods, we want to do on the lagrange form as `kzg`
|
|
// related.
|
|
type Polynomial = []fr.Element
|
|
|
|
// A commitment to a polynomial
|
|
// Excluding tests, this will be produced
|
|
// by committing to a polynomial in lagrange form
|
|
type Commitment = bls12381.G1Affine
|