Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update docs #973

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions encoding/kzg/prover/gnark/multiframe_proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ func (p *KzgMultiProofGnarkBackend) GetSlicesCoeff(polyFr []fr.Element, dimE, j,
return tm.GetFFTCoeff()
}

/*
returns the power of 2 which is immediately bigger than the input
*/
// returns the power of 2 which is immediately bigger than the input
func CeilIntPowerOf2Num(d uint64) uint64 {
nextPower := math.Ceil(math.Log2(float64(d)))
return uint64(math.Pow(2.0, nextPower))
Expand Down
44 changes: 21 additions & 23 deletions encoding/test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,27 @@ func main() {
//readpoints()
}

/*
func readpoints() {
kzgConfig := &kzg.KzgConfig{
G1Path: "../../inabox/resources/kzg/g1.point",
G2Path: "../../inabox/resources/kzg/g2.point",
CacheDir: "SRSTables",
SRSOrder: 3000,
SRSNumberToLoad: 3000,
NumWorker: uint64(runtime.GOMAXPROCS(0)),
}

// create encoding object
kzgGroup, _ := prover.NewProver(kzgConfig, true)
fmt.Println("there are ", len(kzgGroup.Srs.G1), "points")
for i := 0; i < len(kzgGroup.Srs.G1); i++ {

fmt.Printf("%v %v\n", i, string(kzgGroup.Srs.G1[i].String()))
}
if kzgGroup.Srs.G1[0].X == kzg.GenG1.X && kzgGroup.Srs.G1[0].Y == kzg.GenG1.Y {
fmt.Println("start with gen")
}
}
*/
// func readpoints() {
// kzgConfig := &kzg.KzgConfig{
// G1Path: "../../inabox/resources/kzg/g1.point",
// G2Path: "../../inabox/resources/kzg/g2.point",
// CacheDir: "SRSTables",
// SRSOrder: 3000,
// SRSNumberToLoad: 3000,
// NumWorker: uint64(runtime.GOMAXPROCS(0)),
// }
//
// // create encoding object
// kzgGroup, _ := prover.NewProver(kzgConfig, true)
// fmt.Println("there are ", len(kzgGroup.Srs.G1), "points")
// for i := 0; i < len(kzgGroup.Srs.G1); i++ {
//
// fmt.Printf("%v %v\n", i, string(kzgGroup.Srs.G1[i].String()))
// }
// if kzgGroup.Srs.G1[0].X == kzg.GenG1.X && kzgGroup.Srs.G1[0].Y == kzg.GenG1.Y {
// fmt.Println("start with gen")
// }
// }

func TestKzgRs() {
numSymbols := 1024
Expand Down
Loading