-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[o1js-main] Add o1js-stub to Mina repo in place of SnarkyJS #14461
Changes from 10 commits
5dfb734
6118445
1d47673
1d89857
287fdc4
2109210
591b5bf
536d242
4066dc1
32e266f
356d7da
e4ba43a
6b55520
528e0bf
439ec8f
daeaf73
43dec12
d850951
16716c9
47e96fd
f07fa96
e59e805
3403057
1ba5689
645a768
b6a842a
2d7a523
b3f59d4
e0286bd
d45ab3e
535358f
b829895
0ebb8a6
5b1cfc4
51347a5
ea04bcb
7ae9412
587a888
13b8d9f
94bc10b
ad4d4d0
e4249f5
7fa9a22
2012e2d
6287942
892a941
ae94ff0
c633177
8438840
07ba705
3180007
d4314b0
b6a14e0
f7a0abc
cb151f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
``` | ||
|
||
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
src/lib/marlin_plonk_bindings/js/test/web/copy_over.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same |
||
``` | ||
|
||
and then visit `http://localhost:8000` from a browser. |
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be changed to the right repo.