You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let ark_proof = Groth16::<T,CircomReduction>::create_proof_with_reduction_and_matrices(
&pkey,
r,
s,
&matrices,
matrices.num_instance_variables,
matrices.num_constraints,
witness_fr.as_slice(),
);
We can maintain our own circom-prover to perform these functions.
We have several adapters (now or in the future). We need to easily switch between adapters
We are doing research on GPU acceleration: https://github.com/zkmopro/gpu-acceleration
If it improves the performance enough, we can switch from ark-groth16 to e.g. gpu-groth16
We can maintain our own circom-prover for cross-platform solution, and we can publish our packages.
In the future, we can encourage ZK applications (e.g. Semaphore) to use the crate circom-prover instead of circom-compat for cross-platform proving.
Details
Similar to circom-compat
It maintains the functions we need in mopro-ffi
Problem
Related to #224
ark-circom
version but we need to patch it to get the correct version: zkmopro/circom-compatwasmer
withrust-witness
. So we remove wholewasmer
dependencies in zkmopro/circom-compatwasmer
in mobile. Checkout issuesmopro
and we writeprove
in mopro withark-groth16
mopro/mopro-ffi/src/circom/mod.rs
Lines 16 to 18 in e424efd
mopro/mopro-ffi/src/circom/mod.rs
Lines 198 to 206 in e424efd
circom-prover
to perform these functions.If it improves the performance enough, we can switch from
ark-groth16
to e.g.gpu-groth16
We can maintain our own
circom-prover
for cross-platform solution, and we can publish our packages.In the future, we can encourage ZK applications (e.g. Semaphore) to use the crate
circom-prover
instead ofcircom-compat
for cross-platform proving.Details
Similar to
circom-compat
It maintains the functions we need in mopro-ffi
mopro/mopro-ffi/src/circom/mod.rs
Lines 16 to 18 in e424efd
mopro/mopro-ffi/src/circom/serialization.rs
Line 3 in e424efd
It can also export functions called
prove
,verify
like it does in mopro-ffi
mopro/mopro-ffi/src/circom/mod.rs
Lines 198 to 206 in e424efd
mopro/mopro-ffi/src/circom/mod.rs
Lines 248 to 252 in e424efd
so we can remove duplicated dependencies e.g.
ark_groth16
,ark_ec
inmopro-ffi
Acceptance criteria
circom-prover
(or other name)ark-circom
dependency inmopro-ffi
withcircom-prover
Next steps (optional)
Publish the crate so we can close #224
The text was updated successfully, but these errors were encountered: