Skip to content

Commit c19a049

Browse files
committed
jsoo: override proof deep copy
1 parent 277525f commit c19a049

File tree

2 files changed

+22
-27
lines changed
  • src/lib/crypto/kimchi_bindings/js

2 files changed

+22
-27
lines changed
Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +0,0 @@
1-
/* global plonk_wasm, tsRustConversion
2-
*/
3-
4-
5-
6-
// Provides: caml_pasta_fp_plonk_proof_deep_copy
7-
// Requires: plonk_wasm, tsRustConversion
8-
var caml_pasta_fp_plonk_proof_deep_copy = function (proof) {
9-
return tsRustConversion.fp.proofFromRust(
10-
plonk_wasm.caml_pasta_fp_plonk_proof_deep_copy(
11-
tsRustConversion.fp.proofToRust(proof)
12-
)
13-
);
14-
};
15-
16-
17-
// Provides: caml_pasta_fq_plonk_proof_deep_copy
18-
// Requires: plonk_wasm, tsRustConversion
19-
var caml_pasta_fq_plonk_proof_deep_copy = function (proof) {
20-
return tsRustConversion.fq.proofFromRust(
21-
plonk_wasm.caml_pasta_fq_plonk_proof_deep_copy(
22-
tsRustConversion.fq.proofToRust(proof)
23-
)
24-
);
25-
};
26-

src/lib/crypto/kimchi_bindings/js/native/native-overrides/proof.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ var caml_pasta_fp_plonk_proof_dummy = function () {
6060
);
6161
};
6262

63+
// Provides: caml_pasta_fp_plonk_proof_deep_copy
64+
// Requires: plonk_wasm, tsRustConversionNative
65+
var caml_pasta_fp_plonk_proof_deep_copy = function (proof) {
66+
return tsRustConversionNative.fp.proofFromRust(
67+
plonk_wasm.caml_pasta_fp_plonk_proof_deep_copy(
68+
tsRustConversionNative.fp.proofToRust(proof)
69+
)
70+
);
71+
};
72+
6373
// Provides: caml_pasta_fq_plonk_proof_create
6474
// Requires: plonk_wasm, tsRustConversionNative
6575
var caml_pasta_fq_plonk_proof_create = function (
@@ -116,4 +126,15 @@ var caml_pasta_fq_plonk_proof_dummy = function () {
116126
return tsRustConversionNative.fq.proofFromRust(
117127
plonk_wasm.caml_pasta_fq_plonk_proof_dummy()
118128
);
119-
};
129+
};
130+
131+
// Provides: caml_pasta_fq_plonk_proof_deep_copy
132+
// Requires: plonk_wasm, tsRustConversionNative
133+
var caml_pasta_fq_plonk_proof_deep_copy = function (proof) {
134+
return tsRustConversionNative.fq.proofFromRust(
135+
plonk_wasm.caml_pasta_fq_plonk_proof_deep_copy(
136+
tsRustConversionNative.fq.proofToRust(proof)
137+
)
138+
);
139+
};
140+

0 commit comments

Comments
 (0)