Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strict dependencies cause conflict with other libraries #1

Closed
seemenkina opened this issue Jan 29, 2025 · 3 comments · Fixed by #2
Closed

Strict dependencies cause conflict with other libraries #1

seemenkina opened this issue Jan 29, 2025 · 3 comments · Fixed by #2

Comments

@seemenkina
Copy link

There is a situation where ark-zkey is forced to depend on a rather old version of num-traits, which is now not compatible with some of the other library which are already written for 2.19 by default.

Unfortunately it doesn't depend on it directly, so I can't open direct PR:

https://github.com/vimwitch/circom-compat.git - fork from old ark-circom which restrict version on 2.15
ark-zkey use this fork and also restrict version on 2.15

I'll be really appreciate if we can solve this issue and bump dependencies because zerokit also have to update this deps or I can't use it at all in our new project

@vivianjeng
Copy link
Contributor

Hi thank you for reporting this issue

I am not sure what's your purpose of using ark-zkey. Size or read_arkzkey performance?
But we have already improved read_zkey much more than arkworks/circom-compat
you can refer to this

@seemenkina
Copy link
Author

Thank you for your quick response and help

The Idea was that we need only part related to reading ark-zkey in zerokit and using mopro caused this issue: zkmopro/mopro#131

So for us much easier work with separate crate

@vivianjeng
Copy link
Contributor

I see!
thank you for your response!

I think you can just import circom-compat to use read_zkey
because now we also use the dependency of ark-circom to read zkeys

ark-circom = { version = "0.5.0"}

(and now there is no wasmer patch in mopro anymore)

and we are building another crate circom-prover: zkmopro/mopro#299
https://github.com/zkmopro/mopro/tree/main/circom-prover
which provides better performance than ark-circom
and including read_zkey (but still WIP)

I will keep you updated when we finish this 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants