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

nargo test throws an error #16

Open
iammadab opened this issue Oct 29, 2024 · 1 comment
Open

nargo test throws an error #16

iammadab opened this issue Oct 29, 2024 · 1 comment

Comments

@iammadab
Copy link

Nargo version information

nargo version = 0.36.0
noirc version = 0.36.0+801c71880ecf8386a26737a5d8bb5b4cb164b2ab
(git version hash: 801c71880ecf8386a26737a5d8bb5b4cb164b2ab, is dirty: false)

nargo compile works fine

nargo test returns the following:

error: Function expects 1 parameter but 2 were given
    ┌─ /Users/madab/nargo/github.com/noir-lang/noir-bignumv0.3.5/src/runtime_bignum.nr:179:9
    │
179 │         most_significant_byte.assert_max_bit_size(max_bits_in_most_significant_byte as u32);
    │         -----------------------------------------------------------------------------------
    │

error: Function expects 1 parameter but 2 were given
    ┌─ /Users/madab/nargo/github.com/noir-lang/noir-bignumv0.3.5/src/runtime_bignum.nr:229:13
    │
229 │             self.limbs[i].assert_max_bit_size(120);
    │             --------------------------------------
    │

error: Function expects 1 parameter but 2 were given
    ┌─ /Users/madab/nargo/github.com/noir-lang/noir-bignumv0.3.5/src/runtime_bignum.nr:232:9
    │
232 │         self.limbs[N - 1].assert_max_bit_size(final_limb_bits as u32);
    │         -------------------------------------------------------------
    │

error: Function expects 1 parameter but 2 were given
    ┌─ /Users/madab/nargo/github.com/noir-lang/noir-bignumv0.3.5/src/runtime_bignum.nr:250:13
    │
250 │             self.limbs[i].assert_max_bit_size(120);
    │             --------------------------------------
    │

error: Function expects 1 parameter but 2 were given
    ┌─ /Users/madab/nargo/github.com/noir-lang/noir-bignumv0.3.5/src/runtime_bignum.nr:254:9
    │
254 │         self.limbs[N - 1].assert_max_bit_size(final_limb_bits as u32);
    │         -------------------------------------------------------------
    │

error: Function expects 1 parameter but 2 were given
    ┌─ /Users/madab/nargo/github.com/noir-lang/noir-bignumv0.3.5/src/runtime_bignum.nr:498:9
    │
498 │         borrow_flags[0].assert_max_bit_size(1);
    │         --------------------------------------
    │

error: Function expects 1 parameter but 2 were given
    ┌─ /Users/madab/nargo/github.com/noir-lang/noir-bignumv0.3.5/src/runtime_bignum.nr:501:13
    │
501 │             borrow_flags[i].assert_max_bit_size(1);
    │             --------------------------------------
    │

error: Function expects 1 parameter but 2 were given
    ┌─ /Users/madab/nargo/github.com/noir-lang/noir-bignumv0.3.5/src/runtime_bignum.nr:523:13
    │
523 │             product_limbs[i].assert_max_bit_size(126); // N.B. is this sufficient? going beyond 126 costs us 1 gate per limb
    │             -----------------------------------------
@jp4g
Copy link
Contributor

jp4g commented Nov 4, 2024

Working on it, noir_rsa requires upgrades that are wip themselves can't get all the test vectors passing yet

@jp4g jp4g closed this as completed Nov 4, 2024
@jp4g jp4g reopened this Nov 4, 2024
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

No branches or pull requests

2 participants