-
Notifications
You must be signed in to change notification settings - Fork 219
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
chore: remove temporary workaround for issue 1354 in swcurve.nr
and tecurve.nr
#2473
Conversation
The bit arrays don't need to be mutable anymore. Can you remove this? |
It appears that this pull request is dependent on the resolution of issue #2336. minimal example: fn hello<N>(array: [u1; N]) {
for i in 0..N {}
}
fn main() {
let slice: [u1] = [].push_back(1).push_back(2);
hello(slice);
}
|
2336 has been closed as completed, please merge master into this branch |
@f01dab1e can this be updated? I see that Jake's message in the issue you opened had not been resolved |
@kevaundray, It seems that the array is actually a slice, and we cannot determine its size, which is why the error The "to_le_bits" function returns a slice. The "bit_mul" function accepts an array (we are trying to convert a slice to an array), and at this point, we encounter a failure because we don't know the size: |
Thank you for your contribution to the Noir language. Please do not force push to this branch after the Noir team have started review of this PR. Doing so will only delay us merging your PR as we will need to start the review process from scratch. Thanks for your understanding. |
Description
In the
curvegroup::mul
function of bothswcurve.nr
andtecurve.nr
, we previously had a temporary workaround for issue 1354. This workaround involved manually copying bits from a bit representation of the field elementn
into an arrayn_as_bits
. However, this workaround is no longer necessary as issue 1354 has been resolved.PR Checklist
cargo fmt
on default settings.