-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bb.js): (breaking change) bundles bb.js properly so that it works…
… in the browser and in node (#1855) * Reverts prior work and builds upon original webpack. * Bundles works and wasms into the output bundle. ~12MB but compresses with e.g. brotli to about 1.5MB (consumers responsbility). This required a fair bit of refactoring of the bb_wasm ts code into `base`, `main` and `thread` to avoid what webpack saw as circular dependency. * Manually testing and working with consumers, zero config webpack, vite, next.js, hardhat. * Automatically tests: * bb: all acir test vectors through prove_and_verify * bb and bb.js: all command line interface commands. * bb.js: a single test through single and multithreaded on chrome and webkit. * bootstrap_docker.sh can be used to build and run these tests as per CCI. --------- Co-authored-by: ludamad <adam.domurad@gmail.com>
- Loading branch information
1 parent
681553f
commit 1aa6f59
Showing
121 changed files
with
5,855 additions
and
2,277 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./circuits/cpp/barretenberg |
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.