zkmopro / mopro

Making client-side proving on mobile simple.
Apache License 2.0
102 stars 28 forks source link

Support Multiple Circuits #171

Closed doutv closed 6 days ago

doutv commented 1 week ago

Current mopro-config.toml only support one circuit. Is it possible to support multiple circuits?

vivianjeng commented 1 week ago

You can try to use https://github.com/zkmopro/mopro/blob/56290d888af441d0cd74f648d9c1d25686b9a50e/mopro-core/src/middleware/circom/mod.rs#L294 so you can init 2 moproCircom state and put different wasm/zkey inside

vivianjeng commented 1 week ago

https://github.com/zkmopro/mopro-ios/blob/e34c62e91924e4995e1d924df4cd03ce32f89120/MoproKit/Example/MoproKit/KeccakSetupViewController.swift#L124 https://github.com/zkmopro/mopro-ios/blob/e34c62e91924e4995e1d924df4cd03ce32f89120/MoproKit/Example/MoproKit/KeccakSetupViewController.swift#L169