Skip to content

Commit 3747ee2

Browse files
committed
bindings: remove extra plonk index conversions
1 parent 8437493 commit 3747ee2

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/lib/crypto/kimchi_bindings/js/native/native-overrides/verifier-index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@
33
// Provides: caml_pasta_fp_plonk_verifier_index_create
44
// Requires: plonk_wasm, tsRustConversionNative
55
var caml_pasta_fp_plonk_verifier_index_create = function (x) {
6-
7-
console.log("creating caml_pasta_fp_plonk_verifier_index_create", x)
8-
var bytes = plonk_wasm.prover_index_fp_to_bytes(x);
9-
console.log("bytes", bytes)
10-
var index = plonk_wasm.prover_index_fp_from_bytes(bytes);
11-
console.log("index", index)
12-
var vk = plonk_wasm.caml_pasta_fp_plonk_verifier_index_create(index);
6+
console.log("jsoo caml_pasta_fp_plonk_verifier_index_create x", x);
7+
var vk = plonk_wasm.caml_pasta_fp_plonk_verifier_index_create(x);
138
console.log("vk", vk)
149
return tsRustConversionNative.fp.verifierIndexFromRust(vk);
1510
};

0 commit comments

Comments
 (0)