-
Notifications
You must be signed in to change notification settings - Fork 20.5k
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
crypto/cloudflare/bn256: fix in-place addition and unmarshalling #23419
Conversation
} | ||
m := p.Add(p, p).Marshal() | ||
if _, err := p.Unmarshal(m); err != nil { | ||
t.Fatalf("p.Add(p, p) ∉ G₂: %v", err) |
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.
That error message is a bit crazy imo
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.
LGTM
For reference: https://github.com/cloudflare/bn256/pull/12/files |
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.
LGTM
@gballet for some reason I can't find this PR in the travis build history, can you maybe rebase it to trigger travis again? |
3b1e6cf
to
d64771e
Compare
Fixes #23346
There were two upstream fixes required: one is for in-place addition and the second one was for in-place unmarshalling