Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add crsPath to BackendOptions (#8775)
- The default CRS download path of `$HOME/.bb-crs` might not be always available in all deployments - for example in a serverless function (NextJS API, AWS Lambda) only `/tmp` is available for writing files. - In this PR, `crsPath` param is added to `BackendOptions` and used when calling `Crs.new()` - so they can be used in backend and verifiers ([ref1](https://github.com/AztecProtocol/aztec-packages/blob/master/noir/noir-repo/tooling/noir_js_backend_barretenberg/src/verifier.ts#L37-L43), [ref2](https://github.com/AztecProtocol/aztec-packages/blob/master/barretenberg/ts/src/barretenberg/verifier.ts#L32-L33)). Co-authored-by: ludamad <[email protected]>
- Loading branch information