openpassport-org / openpassport

Generate privacy-preserving ID proofs
https://openpassport.app
346 stars 59 forks source link

LinkError when running groth16.fullProve in Hardhat test #219

Open motemotech opened 1 month ago

motemotech commented 1 month ago

Description

I met this error when I tried to run groth16.fullProve for dsc_rsa_65537_sha256_4096 circuit. LinkError: WebAssembly.instantiate(): Import #4 module="runtime" function="printDebug" error: function import requires a callable at Object.builder [as WitnessCalculatorBuilder] However, I did not met this error when I run groth16.fullProve for prove_rsa_65537_sha256 circuit.

Since dsc_rsa_65537_sha256_4096 circuit is quate large, I can't build this circuit in my M1 MacBook Air 16gb, therefore I built this circuit on wsl on my other pc and share thoroght google drive. Also, I tried to run groth16.fullProve in my wsl, but in both circuits (prove_rsa_65537_sha256 and dsc_rsa_65537_sha256_4096) there is that error which I provided above. prove_rsa_65537_sha256 circuit is built in my M1 MacBook Air 16gb, and now working well. Thank you assist from @remicolin.

Environment

For package versions of each dir, pls just refer package.json.