@@ -12,22 +12,38 @@ var caml_pasta_fp_plonk_proof_create = function (
1212 prev_sgs
1313) {
1414 var w = new plonk_wasm . WasmVecVecFp ( witness_cols . length - 1 ) ;
15+ var ww = new w . WasmVecVecFp ( witness_cols . length - 1 )
1516 for ( var i = 1 ; i < witness_cols . length ; i ++ ) {
16- w . push ( tsRustConversionNative . fp . vectorToRust ( witness_cols [ i ] ) ) ;
17+ ww . push ( tsRustConversionNative . fp . vectorToRust ( witness_cols [ i ] ) ) ;
1718 }
18- witness_cols = w ;
19+
20+ witness_cols = ww ;
1921 prev_challenges = tsRustConversionNative . fp . vectorToRust ( prev_challenges ) ;
2022 var wasm_runtime_tables =
2123 tsRustConversionNative . fp . runtimeTablesToRust ( caml_runtime_tables ) ;
2224 prev_sgs = tsRustConversionNative . fp . pointsToRust ( prev_sgs ) ;
25+
26+ /*
27+ index: &External<$NapiIndex>,
28+ witness: $NapiVecVec,
29+ runtime_tables: NapiVector<JsRuntimeTableF>,
30+ prev_challenges: NapiFlatVector<$NapiF>,
31+ prev_sgs: NapiVector<$NapiG>,
32+ */
2333
34+ console . log ( 'index: ' , index ) ;
35+ console . log ( 'witness cols: ' , witness_cols )
36+ console . log ( "wasm_runtime_tables: " , wasm_runtime_tables )
37+ console . log ( 'prev challenges: ' , prev_challenges )
38+ console . log ( 'prev_sgs: ' , prev_sgs )
2439 var proof = plonk_wasm . caml_pasta_fp_plonk_proof_create (
2540 index ,
2641 witness_cols ,
2742 wasm_runtime_tables ,
2843 prev_challenges ,
2944 prev_sgs
3045 ) ;
46+ console . log ( 'proof?' )
3147 return tsRustConversionNative . fp . proofFromRust ( proof ) ;
3248} ;
3349
@@ -112,7 +128,7 @@ var caml_pasta_fq_plonk_proof_verify = function (index, proof) {
112128var caml_pasta_fq_plonk_proof_batch_verify = function ( indexes , proofs ) {
113129 indexes = tsRustConversionNative . mapMlArrayToRustVector (
114130 indexes ,
115- tsRustConversionNatsRustConversionNativetive . fq . verifierIndexToRust
131+ tsRustConversionNative . fq . verifierIndexToRust
116132 ) ;
117133 proofs = tsRustConversionNative . mapMlArrayToRustVector (
118134 proofs ,
0 commit comments