aztec-packages icon indicating copy to clipboard operation
aztec-packages copied to clipboard

[BUG] JS example with Noir and Barretenberg fails

Open movsiienko opened this issue 2 months ago • 0 comments

What are you trying to do?

I'm trying to replicate https://noir-lang.org/docs/tutorials/noirjs_app#setting-up-our-noir-program , but with simple ts scripts on a server. When I run I'm getting this:

✦ ❯ bun index.ts
{
  noir_version: "1.0.0-beta.15+83245db91dcf63420ef4bcbbd85b98f397fee663",
  hash: "17276967250492140691",
  abi: {
    parameters: [
      [Object ...]
    ],
    return_type: null,
    error_types: {},
  },
  bytecode: "H4sIAAAAAAAA/51SsQrCMBBNUpXSOjk6ddRN8RNEcBJHFylig2SwaqmCYz9B/AG/QvRzurnp4lxbzEGMNTY9KK93fe/uXRqM3lHhuJwxn6RY5TlOH4NjFqbAJeg7gOdw7HijIO6e2pfx4BxFk2mrdxvur+tDP34eHxJXHbiRV3VQIe2HV/BIIIEFs4IpSQ1pkM5CKu49STDW6EtQuYPS/SGip7+TNDhNjh4L6DxkO+oyP6QLGrib7Spk1A/h5AEtoYNR3BUBvV1Oj2o5NUt4t+WBHCs5OvwjJxKquFjRt57zDXrCNRD9wh4vOJ5XTfcDAAA=",
  debug_symbols: "dZDBCsMgDIbfJWcP7brB6KuMUaxNixBUUh2M0ndflLl1h13+mPx+iXGDCce0DNbNfoX+tsHIlsguA3mjo/VOqtuuoKZDZEQpwcEXKmhGF6F3iUjBQ1Mql9agXYlRs7iNAnSTRGk4W8J82tWXbv6jXWW76we+CH2XTBvLP++FFvpWwaloV/Qsuuf2bPVI+N5qTs4clozPUJ36DYG9wSkx5gHFk5Ev",
  file_map: {
    "50": {
      source: "fn main(age: u8) {\n    assert(age > 18)\n}\n",
      path: "/home/movsiienko/Projects/personal/noir_test/circuits/src/main.nr",
    },
  },
  expression_width: {
    Bounded: {
      width: 4,
    },
  },
}
Generating witness...
Generating proof...
unknown compression method

Both node and bun produces same results

Code Reference

I have put the code I used in this repo https://github.com/movsiienko/noir_test

Aztec Version

OS

No response

Browser (if relevant)

No response

Node Version

No response

Additional Context

No response

movsiienko avatar Nov 07 '25 15:11 movsiienko