-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(acvm_js): Execute program (#4694)
# Description ## Problem\* Resolves #4645 ## Summary\* In order to have a recursive `execute_circuit` function we now have a recursive async call. This requires boxing a future and having to making `execute_circuit` immutable in order to attach the final main witness to the witness stack. In our normal execution flow we could move the `ProgramExecutor` after our recursive async call to execute_circuit, we now need a lifetime on `self`. I also switched all `execute_circuit` methods in ACVM JS to use `execute_program` under the hood so that we do not have a breaking change yet but can still test `execute_program` using all of our already existing tests. I then added a couple extra acvm js tests for multiple acir calls and full witness stack (de)/compression. ## Additional Context ## Documentation\* Check one: - [ ] No documentation needed. - [ ] Documentation included in this PR. - [X] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [X] I have tested the changes locally. - [X] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings. --------- Co-authored-by: Tom French <tom@tomfren.ch>
- Loading branch information
1 parent
463fb77
commit 386f6d0
Showing
10 changed files
with
518 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.