mirror of
https://github.com/arnaucube/circom-compat.git
synced 2026-01-11 16:31:28 +01:00
inline code
This commit is contained in:
@@ -115,14 +115,6 @@ impl WitnessCalculator {
|
|||||||
) -> Result<Vec<BigInt>> {
|
) -> Result<Vec<BigInt>> {
|
||||||
self.instance.init(store, sanity_check)?;
|
self.instance.init(store, sanity_check)?;
|
||||||
|
|
||||||
self.calculate_witness_circom2(store, inputs)
|
|
||||||
}
|
|
||||||
|
|
||||||
fn calculate_witness_circom2<I: IntoIterator<Item = (String, Vec<BigInt>)>>(
|
|
||||||
&mut self,
|
|
||||||
store: &mut Store,
|
|
||||||
inputs: I,
|
|
||||||
) -> Result<Vec<BigInt>> {
|
|
||||||
let n32 = self.instance.get_field_num_len32(store)?;
|
let n32 = self.instance.get_field_num_len32(store)?;
|
||||||
|
|
||||||
// allocate the inputs
|
// allocate the inputs
|
||||||
|
|||||||
Reference in New Issue
Block a user