Skip to content

Commit

Permalink
rm wrong validationa and expose log (#250)
Browse files Browse the repository at this point in the history
Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
bxue-l2 and Ubuntu authored Feb 7, 2024
1 parent 9697d1c commit c038525
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
6 changes: 2 additions & 4 deletions pkg/encoding/encoder/encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ func (g *Encoder) Encode(inputFr []bls.Fr) (*GlobalPoly, []Frame, []uint32, erro
return nil, nil, nil, err
}

if g.verbose {
log.Printf(" SUMMARY: Encode %v byte among %v numNode takes %v\n",
len(inputFr)*bls.BYTES_PER_COEFFICIENT, g.NumChunks, time.Since(start))
}
log.Printf(" SUMMARY: Encode %v byte among %v numNode takes %v\n",
len(inputFr)*bls.BYTES_PER_COEFFICIENT, g.NumChunks, time.Since(start))

return poly, frames, indices, nil
}
Expand Down
5 changes: 4 additions & 1 deletion pkg/encoding/kzgEncoder/multiframe.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ func (group *KzgEncoderGroup) UniversalVerify(params rs.EncodingParams, samples
}
}

verifier, _ := group.GetKzgVerifier(params)
verifier, err := group.GetKzgVerifier(params)
if err != nil {
return err
}
ks := verifier.Ks

D := params.ChunkLen
Expand Down
6 changes: 0 additions & 6 deletions pkg/kzg/kzg.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
package kzg

import (
"errors"

bls "github.com/Layr-Labs/eigenda/pkg/kzg/bn254"
)

Expand All @@ -42,10 +40,6 @@ type KZGSettings struct {

func NewKZGSettings(fs *FFTSettings, srs *SRS) (*KZGSettings, error) {

if uint64(len(srs.G1)) < fs.MaxWidth {
return nil, errors.New("srs length is not sufficient")
}

ks := &KZGSettings{
FFTSettings: fs,
Srs: srs,
Expand Down

0 comments on commit c038525

Please sign in to comment.