-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Use power of 2 for blob length #912
Conversation
@@ -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, |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
@cody-littley FYI, this is the change that will make |
Why are these changes needed?
Checks