feat(compiler): adds Aztec noir compiler#438
Conversation
|
|
spalladino
left a comment
There was a problem hiding this comment.
LGTM! I left a bunch of comments, none of them a dealbreaker.
Currently, this noir compiler uses noir master branch. It's not compatible yet with the test contracts for Aztec that are in the noir-contracts package, that need to be built following its README.md instructions.
What would it take to have this compiler use a different branch..?
| return compile({ | ||
| contracts: true, | ||
| optional_dependencies_set: Object.keys(dependenciesMap), // eslint-disable-line camelcase | ||
| }); |
There was a problem hiding this comment.
Hold on, is the noirResolver a global object, and not an instance that we pass onto the compiler? Can we change that in noir? Global objects are always a pain.
There was a problem hiding this comment.
I'm afraid it is ): I'll check if it's possible to do in a different way on noir side, because it interacts with autogenerated code from wasm-bindgen
…ting circuit (#438) * Add way to make verifiers data valid by replacing zeroes with valid public keys and signatures Co-authored-by: Zachary James Williamson <zac-williamson@users.noreply.github.com> * Update cpp/src/barretenberg/dsl/acir_format/ecdsa_secp256k1.test.cpp * replace templates with concrete methods * add comment * PR review * add comments * change to use boolean flag, so dummy_ecdsa method lives in ecdsa * ad true as default --------- Co-authored-by: Zachary James Williamson <zac-williamson@users.noreply.github.com>
…ting circuit (#438) * Add way to make verifiers data valid by replacing zeroes with valid public keys and signatures Co-authored-by: Zachary James Williamson <zac-williamson@users.noreply.github.com> * Update cpp/src/barretenberg/dsl/acir_format/ecdsa_secp256k1.test.cpp * replace templates with concrete methods * add comment * PR review * add comments * change to use boolean flag, so dummy_ecdsa method lives in ecdsa * ad true as default --------- Co-authored-by: Zachary James Williamson <zac-williamson@users.noreply.github.com>
Description
Closes #392
Added a noir compiler CLI tool that allows to compile noir contracts using master
noir_wasmand outputs aztec formatted ABIs.Currently, this noir compiler uses noir master branch. It's not compatible yet with the test contracts for Aztec that are in the
noir-contractspackage, that need to be built following its README.md instructions.Checklist: