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

Unable to generate proof with ts/js #29

Open
manylov opened this issue Mar 19, 2024 · 1 comment
Open

Unable to generate proof with ts/js #29

manylov opened this issue Mar 19, 2024 · 1 comment

Comments

@manylov
Copy link

manylov commented Mar 19, 2024

I've created repo, reproducing the issue.

https://github.com/manylov/noir-trie-proofs-js-issue

it is a simple storage proof, verifying evm storage value.

nargo prove/verify works good.

but when i try to do await backends.main.generateProof(witness); in ts

i got error

Error [RuntimeError]: unreachable
    at wasm://wasm/01fd9442:wasm-function[17622]:0x78a386
    at wasm://wasm/01fd9442:wasm-function[223]:0x31f23
    at wasm://wasm/01fd9442:wasm-function[218]:0x31dac
    at wasm://wasm/01fd9442:wasm-function[181]:0x31048
    at BarretenbergWasmMain.call (/Users/maksimmanylov/dev/noir/noir-trie-proofs-js-issue/node_modules/@aztec/bb.js/src/barretenberg_wasm/barretenberg_wasm_base/index.ts:101:34)
    at BarretenbergWasmMain.callWasmExport (/Users/maksimmanylov/dev/noir/noir-trie-proofs-js-issue/node_modules/@aztec/bb.js/src/barretenberg_wasm/barretenberg_wasm_main/index.ts:109:10)
    at callback (/Users/maksimmanylov/dev/noir/noir-trie-proofs-js-issue/node_modules/comlink/src/comlink.ts:329:36)
    at MessagePort.l (/Users/maksimmanylov/dev/noir/noir-trie-proofs-js-issue/node_modules/@aztec/bb.js/src/barretenberg_wasm/helpers/node/node_endpoint.ts:12:11)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:814:20)
    at exports.emitMessage (node:internal/per_context/messageport:23:28)

note: i've tried ./issue/storage-inputs.ts as numbers values, and as hexified ones - with the same error.

@LogvinovLeon
Copy link
Contributor

Please run nargo info. The most probable cause is that your circuit has more than 500k (2^19) constraints and therefore wasm prover can not be used

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