Skip to content

Commit

Permalink
Remove the unnecessary module (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix authored Dec 4, 2024
1 parent d21bb97 commit 4d6c2bb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 80 deletions.
24 changes: 0 additions & 24 deletions tools/srs-utils/go.mod

This file was deleted.

49 changes: 0 additions & 49 deletions tools/srs-utils/go.sum

This file was deleted.

4 changes: 2 additions & 2 deletions tools/srs-utils/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"os"

"github.com/bxue-l2/srs-verification/parser"
"github.com/bxue-l2/srs-verification/verifier"
"github.com/Layr-Labs/eigenda/tools/srs-utils/parser"
"github.com/Layr-Labs/eigenda/tools/srs-utils/verifier"
"github.com/urfave/cli"
)

Expand Down
10 changes: 8 additions & 2 deletions tools/srs-utils/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,19 @@ func ParsePtauChallenge(config Config) {
fmt.Println("main err", err)
}

WriteG1PointsForEigenDA(g1Points, from, to)
err = WriteG1PointsForEigenDA(g1Points, from, to)
if err != nil {
fmt.Println("main err", err)
}

g2Points, err := ParseG2PointSection(config.PtauPath, p, 1)
if err != nil {
fmt.Println("main err", err)
}
WriteG2PointsForEigenDA(g2Points, from, to)
err = WriteG2PointsForEigenDA(g2Points, from, to)
if err != nil {
fmt.Println("main err", err)
}
fmt.Printf("Batch %v takes %v\n", i, time.Since(batchBegin))
}

Expand Down
2 changes: 1 addition & 1 deletion tools/srs-utils/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package parser_test
import (
"testing"

"github.com/bxue-l2/srs-verification/parser"
"github.com/Layr-Labs/eigenda/tools/srs-utils/parser"
"github.com/consensys/gnark-crypto/ecc/bn254"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions tools/srs-utils/verifier/verifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/bxue-l2/srs-verification/verifier"
"github.com/Layr-Labs/eigenda/tools/srs-utils/verifier"
"github.com/consensys/gnark-crypto/ecc/bn254"
)

Expand Down Expand Up @@ -64,7 +64,7 @@ func TestCheckG1(t *testing.T) {
func TestCheckG2(t *testing.T) {
numSRS := uint64(10)
g1SRS, g2SRS := GetGeneratorPoints(numSRS)

numWorker := 1
results := make(chan error, numWorker)
go verifier.G2CheckWorker(g1SRS, g2SRS, &g1SRS[0], &g2SRS[0], 0, 10, results)
Expand Down

0 comments on commit 4d6c2bb

Please sign in to comment.