@@ -148,6 +148,7 @@ macro_rules! impl_gate_support {
148148
149149 #[ napi]
150150 pub fn [ <caml_pasta_ $field_name: snake _plonk_gate_vector_create>] ( ) -> [ <Napi $field_name: camel GateVector >] {
151+ println!( "from native rust creating gate vector" ) ;
151152 [ <Napi $field_name: camel GateVector >] ( Vec :: new( ) )
152153 }
153154
@@ -156,6 +157,7 @@ macro_rules! impl_gate_support {
156157 vector: & mut [ <Napi $field_name: camel GateVector >] ,
157158 gate: [ <Napi $field_name: camel Gate >] ,
158159 ) -> Result <( ) > {
160+ println!( "from native rust adding gate to vector" ) ;
159161 vector. 0 . push( gate. into_inner( ) ?) ;
160162 Ok ( ( ) )
161163 }
@@ -165,13 +167,15 @@ macro_rules! impl_gate_support {
165167 vector: & [ <Napi $field_name: camel GateVector >] ,
166168 index: i32 ,
167169 ) -> [ <Napi $field_name: camel Gate >] {
170+ println!( "from native rust getting gate from vector" ) ;
168171 [ <Napi $field_name: camel Gate >] :: from_inner( & vector. 0 [ index as usize ] )
169172 }
170173
171174 #[ napi]
172175 pub fn [ <caml_pasta_ $field_name: snake _plonk_gate_vector_len>] (
173176 vector: & [ <Napi $field_name: camel GateVector >] ,
174177 ) -> i32 {
178+ println!( "from native rust getting gate vector length" ) ;
175179 vector. 0 . len( ) as i32
176180 }
177181
@@ -181,6 +185,7 @@ macro_rules! impl_gate_support {
181185 target: NapiWire ,
182186 head: NapiWire ,
183187 ) {
188+ println!( "from native rust wrapping wire in gate vector" ) ;
184189 vector. 0 [ target. row as usize ] . wires[ target. col as usize ] = KimchiWire :: from( head) ;
185190 }
186191
@@ -189,6 +194,7 @@ macro_rules! impl_gate_support {
189194 public_input_size: i32 ,
190195 vector: & [ <Napi $field_name: camel GateVector >] ,
191196 ) -> Uint8Array {
197+ println!( "from native rust computing gate vector digest" ) ;
192198 let bytes = Circuit :: new( public_input_size as usize , & vector. 0 )
193199 . digest( )
194200 . to_vec( ) ;
@@ -200,6 +206,7 @@ macro_rules! impl_gate_support {
200206 public_input_size: i32 ,
201207 vector: & [ <Napi $field_name: camel GateVector >] ,
202208 ) -> Result <String > {
209+ println!( "from native rust serializing gate vector to json" ) ;
203210 let circuit = Circuit :: new( public_input_size as usize , & vector. 0 ) ;
204211 serde_json:: to_string( & circuit) . map_err( |err| {
205212 Error :: new(
0 commit comments