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

Use power of 2 for blob length #912

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

mooselumph
Copy link
Collaborator

Why are these changes needed?

Checks

  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@mooselumph mooselumph marked this pull request as draft November 19, 2024 22:57
@ian-shim ian-shim marked this pull request as ready for review November 20, 2024 00:54
@@ -128,7 +128,7 @@ func (g *ParametrizedProver) GetCommitments(inputFr []fr.Element) (*bn254.G1Affi
start := time.Now()
commit, err := g.Computer.ComputeCommitment(inputFr)
commitmentChan <- commitmentResult{
Commitment: *commit,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes a nil-pointer dereference error when there is an error.

@@ -32,19 +32,19 @@ type rsEncodeResult struct {
}

type lengthCommitmentResult struct {
LengthCommitment bn254.G2Affine
LengthCommitment *bn254.G2Affine
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any issue with using pointers here?

@mooselumph mooselumph merged commit fef9ec6 into Layr-Labs:master Nov 20, 2024
6 checks passed
@ian-shim
Copy link
Contributor

ian-shim commented Nov 20, 2024

@cody-littley FYI, this is the change that will make Length power of 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants