Skip to content

Commit

Permalink
samll fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jul 16, 2024
1 parent 73efd4b commit 2a6acaa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions encoding/kzg/prover/parametrized_prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ type ParametrizedProver struct {
*rs.Encoder

*kzg.KzgConfig
Ks *kzg.KZGSettings

Fs *fft.FFTSettings
Ks *kzg.KZGSettings
Expand Down Expand Up @@ -164,7 +163,7 @@ func (g *ParametrizedProver) Encode(inputFr []fr.Element) (*bn254.G1Affine, *bn2
lengthCommitmentResult.Duration,
lengthProofResult.Duration,
proofsResult.Duration,
len(g.Srs.G2),
g.SRSOrder,
g.SRSOrder-uint64(len(inputFr)),
)
}
Expand Down
4 changes: 2 additions & 2 deletions encoding/kzg/prover/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ func (g *Prover) newProver(params encoding.EncodingParams) (*ParametrizedProver,
return &ParametrizedProver{
Encoder: encoder,
KzgConfig: g.KzgConfig,
Srs: g.Srs,
G2Trailing: g.G2Trailing,
Fs: fs,
Ks: ks,
SFs: sfs,
FFTPointsT: fftPointsT,
UseGpu: g.UseGpu,
Computer: computer,
Expand Down
2 changes: 1 addition & 1 deletion encoding/test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestKzgRs() {
// create encoding object
p, _ := prover.NewProver(kzgConfig, true)

p.UseGpu = false
p.UseGpu = true

params := encoding.EncodingParams{NumChunks: numNode, ChunkLength: uint64(numSymbols) / uint64(numSys)}
enc, _ := p.GetKzgEncoder(params)
Expand Down

0 comments on commit 2a6acaa

Please sign in to comment.