Skip to content

Commit 21c38f0

Browse files
committed
Merge branch 'native/napi' into florian/native-proof
2 parents 4c4df14 + c53b209 commit 21c38f0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/lib/crypto/kimchi_bindings/js/native/header-d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ type NapiPastaFqPlonkIndex = {};
1111
type NapiPastaFp = {};
1212
type NapiPastaFq = {};
1313
type NapiLookupInfo = {};
14-
type WasmPastaFqPlonkIndex = {};
1514
type WasmPastaFpPlonkIndex = {};
15+
type WasmPastaFqPlonkIndex = {};
1616
type Proof = {}
1717
type NapiVector<T> = {};
1818
type NapiFlatVector<T> = {};
19-
type WasmVecVecFq = {};
2019
type WasmVecVecFp = {};
20+
type WasmVecVecFq = {};
2121
type Self = {};
2222

2323
// Header section end

src/lib/crypto/kimchi_bindings/js/node_js/node_backend.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ var plonk_wasm = (function() {
1818
"caml_pasta_fp_poseidon_block_cipher",
1919
"caml_pasta_fq_poseidon_block_cipher",
2020
"caml_pasta_fp_plonk_proof_create",
21+
"caml_pasta_fq_plonk_proof_create",
2122
"caml_pasta_fp_plonk_verifier_index_shifts",
2223
"caml_pasta_fq_plonk_verifier_index_shifts",
2324
"caml_pasta_fp_plonk_gate_vector_create",
@@ -99,9 +100,7 @@ var plonk_wasm = (function() {
99100
wasm.native = true;
100101
} catch (e) {
101102
if (process.env.O1JS_REQUIRE_NATIVE_BINDINGS) {
102-
console.error(e)
103-
console.log("native didn't load")
104-
process.exit(1);
103+
throw e
105104
}
106105
}
107106
return wasm

0 commit comments

Comments
 (0)