-
Notifications
You must be signed in to change notification settings - Fork 106
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
Arkworks 0.4.2: fix test vectors serialization issue #2594
Arkworks 0.4.2: fix test vectors serialization issue #2594
Conversation
8d33f7a
to
c271f38
Compare
c271f38
to
18a63c3
Compare
205, 238, 73, 116, 220, 196, 21, 134, 120, 39, 171, 177, 119, 25, | ||
], | ||
]; | ||
|
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.
Can you add the commit the values have been generated with? It is a good practice when adding regression tests. In particular, the commit should be one before the test has been written.
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.
Feel free to do it in a follow-up.
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.
Done!
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.
Modulo the comment. I approve based on the hypothesis the regression test has been generated before the change in the codebase.
@dannywillems thanks! Yes, I did |
18a63c3
to
3e2e36f
Compare
Problem: in
export_test_vectors
instead of (f_elem.into_repr() -> f_elem.into_bigint()
) the renaming during the arkworks upgrade was mistakenly (f_elem.into_repr() -> f_elem.0
), which also returns a bigint, but it's a different bigint!I also scanned for all
into_repr()
renamings in the original arkworks PR diff and only found another similar issue infield_helpers
, but there it's immaterial (fixed anyway).Regression test confirmed to work on
1494cf973d40fb276465929eb7db1952c5de7bdc
(last commit ondevelop
before arkworks 0.4.2).