Skip to content

Commit

Permalink
bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed May 15, 2023
1 parent cbf8136 commit 95a61f1
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 11 deletions.
20 changes: 14 additions & 6 deletions compiled/node_bindings/snarky_js_node.bc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -66733,7 +66733,7 @@
[0,
caml_string_of_jsbytes
("src/lib/snarkyjs/src/bindings/ocaml/lib/snarky_js_bindings_lib.ml"),
1041,
1066,
6],
_gEr_=caml_string_of_jsbytes(""),
_gEj_=caml_string_of_jsbytes("y"),
Expand All @@ -66759,14 +66759,14 @@
[0,
caml_string_of_jsbytes
("src/lib/snarkyjs/src/bindings/ocaml/lib/snarky_js_bindings_lib.ml"),
414,
438,
21],
_gDw_=caml_string_of_jsbytes("Expected array of length 1"),
_gDr_=
[0,
caml_string_of_jsbytes
("src/lib/snarkyjs/src/bindings/ocaml/lib/snarky_js_bindings_lib.ml"),
402,
426,
34],
_gDj_=caml_string_of_jsbytes(""),
_gDk_=caml_string_of_jsbytes("ofField"),
Expand Down Expand Up @@ -66927,7 +66927,7 @@
caml_string_of_jsbytes("keypair")],
_gCR_=
caml_string_of_jsbytes
("\n (function(asFieldValue) {\n return function(x) {\n this.value = asFieldValue(x);\n return this;\n };\n })\n "),
("\n (function(asFieldValue, toString) {\n let constr = function(x) {\n this.value = asFieldValue(x);\n return this;\n };\n constr.prototype.toString = function() {\n return toString(this.value);\n };\n constr.prototype.toBigInt = function() {\n return BigInt(toString(this.value));\n };\n constr.prototype.toJSON = function() {\n return toString(this.value);\n };\n constr.prototype.isConstant = function() {\n return this.value[0] === 0;\n };\n constr.toJSON = function(value) {\n return value.toJSON();\n };\n constr.fromJSON = function(value) {\n return new constr(value);\n };\n return constr;\n })\n "),
_gCX_=
caml_string_of_jsbytes
("\n (function(asBoolValue) {\n return function(x) {\n this.value = asBoolValue(x);\n return this;\n }\n })\n "),
Expand Down Expand Up @@ -426981,8 +426981,16 @@
var value=value$0 | 0;
return value?include$142[38]:include$142[39]}
return of_string_exn(value$0.toString())},
to_string$51=
function(x)
{if(0 === x[0])
var x$0=x[1],x$1=x$0;
else
var x$1=caml_call1(As_prover[3],x);
return caml_jsstring_of_string
(caml_call1(include$142[1][41],x$1))},
f$18=caml_js_eval_string(_gCR_),
t154=f$18(caml_js_wrap_callback(t16)),
t154=f$18(caml_js_wrap_callback(t16),to_string$51),
to_field_obj=
function(x)
{var match=caml_string_of_jsstring(typeof t16);
Expand Down Expand Up @@ -427941,7 +427949,7 @@
return [0,less,less_or_equal]},
to_bits$5=
function(length,x)
{return of_list(caml_call2(include$142[23],x,length))},
{return of_list(caml_call2(include$142[27],x,length))},
from_bits=
function(bits)
{var _gKM_=to_list(bits);
Expand Down
2 changes: 1 addition & 1 deletion compiled/node_bindings/snarky_js_node.bc.map

Large diffs are not rendered by default.

27 changes: 23 additions & 4 deletions compiled/web_bindings/snarky_js_web.bc.js

Large diffs are not rendered by default.

0 comments on commit 95a61f1

Please sign in to comment.