Skip to content

Commit bc35972

Browse files
committed
backend: overwrite polycomm group and vector structs
1 parent 8e111e8 commit bc35972

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,14 @@ function override(functionName) {
2323
}
2424

2525
// Overwrite only the functions that are already available in native
26-
override('caml_pasta_fp_poseidon_block_cipher');
27-
override('caml_pasta_fq_poseidon_block_cipher');
26+
[
27+
'caml_pasta_fp_poseidon_block_cipher', // Poseidon
28+
'caml_pasta_fq_poseidon_block_cipher', // Poseidon
29+
'WasmFpPolyComm', // PolyComm
30+
'WasmFqPolyComm', // PolyComm
31+
'WasmGPallas', // Group
32+
'WasmGVesta', // Group
33+
'WasmVecVecFp', // Vector
34+
'WasmVecVecFq', // Vector
35+
].forEach(override);
36+

0 commit comments

Comments
 (0)