-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14649 from MinaProtocol/feat/add-o1js-stubs-develop
[develop] Add o1js-stub to Mina repo in place of SnarkyJS
- Loading branch information
Showing
74 changed files
with
10,733 additions
and
197 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
This library provides a wrapper around the WebAssembly prover code, which | ||
allows `js_of_ocaml` to compile the mina project against the WebAssembly | ||
backend. | ||
|
||
The different versions of the backend are generated in subdirectories; e.g. the | ||
NodeJS backend is generated in `node_js/` and the Web backend is generated | ||
in `web/`. To use a backend, run `dune build backend/plonk_wasm.js` and copy | ||
`backend/plonk_wasm*` to the project directory. | ||
|
||
Note that the backend code is not automatically compiled while linking against | ||
the backend library. You should always manually issue a build command for the | ||
`plonk_wasm.js` for the desired backend to ensure that it has been generated. | ||
For example, to run the nodejs tests in the `test/nodejs` directory you will | ||
need to run | ||
|
||
``` | ||
dune build src/lib/marlin_plonk_bindings/js/test/nodejs/nodejs_test.bc.js | ||
src/lib/marlin_plonk_bindings/js/test/nodejs/copy_over.sh | ||
``` | ||
|
||
Similarly, to run the web tests in `test/web`, you can run | ||
|
||
``` | ||
dune build src/lib/marlin_plonk_bindings/js/test/web/web_test.bc.js | ||
src/lib/marlin_plonk_bindings/js/test/web/copy_over.sh | ||
``` | ||
|
||
and then visit `http://localhost:8000` from a browser. |
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,50 @@ | ||
/* global tsBindings | ||
*/ | ||
|
||
// Provides: caml_bigint_256_of_numeral | ||
// Requires: tsBindings | ||
var caml_bigint_256_of_numeral = tsBindings.caml_bigint_256_of_numeral; | ||
|
||
// Provides: caml_bigint_256_of_decimal_string | ||
// Requires: tsBindings | ||
var caml_bigint_256_of_decimal_string = tsBindings.caml_bigint_256_of_decimal_string; | ||
|
||
// Provides: caml_bigint_256_num_limbs | ||
// Requires: tsBindings | ||
var caml_bigint_256_num_limbs = tsBindings.caml_bigint_256_num_limbs; | ||
|
||
// Provides: caml_bigint_256_bytes_per_limb | ||
// Requires: tsBindings | ||
var caml_bigint_256_bytes_per_limb = tsBindings.caml_bigint_256_bytes_per_limb; | ||
|
||
// Provides: caml_bigint_256_div | ||
// Requires: tsBindings | ||
var caml_bigint_256_div = tsBindings.caml_bigint_256_div; | ||
|
||
// Provides: caml_bigint_256_compare | ||
// Requires: tsBindings | ||
var caml_bigint_256_compare = tsBindings.caml_bigint_256_compare; | ||
|
||
// Provides: caml_bigint_256_print | ||
// Requires: tsBindings | ||
var caml_bigint_256_print = tsBindings.caml_bigint_256_print; | ||
|
||
// Provides: caml_bigint_256_to_string | ||
// Requires: tsBindings | ||
var caml_bigint_256_to_string = tsBindings.caml_bigint_256_to_string; | ||
|
||
// Provides: caml_bigint_256_test_bit | ||
// Requires: tsBindings | ||
var caml_bigint_256_test_bit = tsBindings.caml_bigint_256_test_bit; | ||
|
||
// Provides: caml_bigint_256_to_bytes | ||
// Requires: tsBindings | ||
var caml_bigint_256_to_bytes = tsBindings.caml_bigint_256_to_bytes; | ||
|
||
// Provides: caml_bigint_256_of_bytes | ||
// Requires: tsBindings | ||
var caml_bigint_256_of_bytes = tsBindings.caml_bigint_256_of_bytes; | ||
|
||
// Provides: caml_bigint_256_deep_copy | ||
// Requires: tsBindings | ||
var caml_bigint_256_deep_copy = tsBindings.caml_bigint_256_deep_copy |
Oops, something went wrong.