|
1 | | -/* global plonk_wasm, tsRustConversion, |
2 | | - |
3 | | - */ |
| 1 | +/* global plonk_wasm, tsRustConversion,*/ |
4 | 2 |
|
5 | 3 | // Provides: fp_oracles_create |
6 | 4 | // Requires: plonk_wasm, tsRustConversion |
@@ -75,31 +73,3 @@ function caml_pasta_fp_poseidon_params_create() { |
75 | 73 | function caml_pasta_fq_poseidon_params_create() { |
76 | 74 | return [0]; |
77 | 75 | } |
78 | | - |
79 | | -// Provides: caml_pasta_fp_poseidon_block_cipher |
80 | | -// Requires: plonk_wasm, tsRustConversion, tsRustConversion |
81 | | -function caml_pasta_fp_poseidon_block_cipher(_fake_params, fp_vector) { |
82 | | - // 1. get permuted field vector from rust |
83 | | - var wasm_flat_vector = plonk_wasm.caml_pasta_fp_poseidon_block_cipher( |
84 | | - tsRustConversion.fp.vectorToRust(fp_vector) |
85 | | - ); |
86 | | - var new_fp_vector = tsRustConversion.fp.vectorFromRust(wasm_flat_vector); |
87 | | - // 2. write back modified field vector to original one |
88 | | - new_fp_vector.forEach(function (a, i) { |
89 | | - fp_vector[i] = a; |
90 | | - }); |
91 | | -} |
92 | | - |
93 | | -// Provides: caml_pasta_fq_poseidon_block_cipher |
94 | | -// Requires: plonk_wasm, tsRustConversion, tsRustConversion |
95 | | -function caml_pasta_fq_poseidon_block_cipher(_fake_params, fq_vector) { |
96 | | - // 1. get permuted field vector from rust |
97 | | - var wasm_flat_vector = plonk_wasm.caml_pasta_fq_poseidon_block_cipher( |
98 | | - tsRustConversion.fq.vectorToRust(fq_vector) |
99 | | - ); |
100 | | - var new_fq_vector = tsRustConversion.fq.vectorFromRust(wasm_flat_vector); |
101 | | - // 2. write back modified field vector to original one |
102 | | - new_fq_vector.forEach(function (a, i) { |
103 | | - fq_vector[i] = a; |
104 | | - }); |
105 | | -} |
0 commit comments